Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Os X 10.7.4 compilation with cairo fails #1317

Closed
127 opened this Issue Jul 13, 2012 · 9 comments

Comments

Projects
None yet
2 participants

127 commented Jul 13, 2012

Fails to compile ompositing and master branch with cairo.
Steps:

  1. Do as described here in install from source section https://github.com/mapnik/mapnik/wiki/MacInstallation_Homebrew
  2. cloned compositing and master branch
    Compilation errors:

Configuring build environment...
Configuring on Darwin in release mode...
Checking for freetype-config... yes
Checking for xml2-config... yes
Sorting lib and inc compiler paths...(cached) yes
Checking for C library m... yes
Checking for C library ltdl... yes
Checking for C library png... yes
Checking for C library tiff... yes
Checking for C library z... yes
Checking for C library proj... yes
Checking for C++ library icuuc... yes
Checking for C library jpeg... yes
Checking for ICU version >= 4.2... found: icu 4.8
(cached) Searching for boost libs and headers... (cached)
*libs found: /usr/local/lib
*headers found: /usr/local/include
*lib naming extension found: -mt
Checking for Boost version >= 1.41... yes
Found boost lib version... 1_49
Checking for C++ library boost_system-mt... yes
Checking for C++ library boost_filesystem-mt... yes
Checking for C++ library boost_regex-mt... yes
Checking for C++ library boost_program_options-mt... yes
Checking for C++ library boost_thread-mt... yes
Checking if boost_regex was built with ICU unicode support... (cached) no
Checking for requested plugins dependencies...
Checking for C library sqlite3... yes
Checking if SQLite supports RTREE... (cached) yes
Checking if gdal is ogr enabled... yes
Checking for name of ogr library... gdal
Checking for C library curl... yes
Checking for gdal-config --libs... yes
Checking for gdal-config --cflags... yes
Checking for name of gdal library... gdal
Checking for pg_config... yes
Checking for pkg-config... yes
Checking for cairo... no
Checking for C++ header file boost/python/detail/config.hpp... yes
Checking for pkg-config... yes
Checking for pycairo... yes

All Required dependencies found!

Saving new file 'config.py'...
Will hold custom path variables from commandline and python config file(s)...

Note: will build without these OPTIONAL dependencies:

  • boost_regex_icu (libboost_regex built with optional ICU unicode support is needed for unicode regex support in mapnik.)
  • cairo (Cairo C library | configured using pkg-config | try setting PKG_CONFIG_PATH SCons option)

Checking for C header file Python.h... yes
Bindings Python version... 2.7
Python 2.7 prefix... /System/Library/Frameworks/Python.framework/Versions/2.7
Python bindings will install in... /Library/Python/2.7/site-packages

127 commented Jul 13, 2012

By the way Ubuntu 12.04 LTS (last) tutorial (https://github.com/mapnik/mapnik/wiki/UbuntuInstallation) of building from source fails to — it's obsolete. But I've found the workaround:

  1. Do as described «Install from packages» (nightly)
  2. sudo apt-get uninstall mapnik-utils
  3. Do as described in «Set up build environment» skipping the previous boost part.
    This way it does compile mapnik with cairo etc.

127 commented Jul 13, 2012

brew link cairo cairomm — gives another kind of fail

Checking for cairo... yes
Checking for cairomm-1.0... yes
Checking for at least version 1.8.0 for cairomm-1.0... yes
Package pixman-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `pixman-1.pc'
to the PKG_CONFIG_PATH environment variable
Package 'pixman-1', required by 'cairo', not found
Checking for cairo/cairomm lib and include paths... no
pkg-config reported: 'pkg-config --libs --cflags cairomm-1.0' exited 1
Checking for C++ header file boost/python/detail/config.hpp... yes
Checking for pkg-config... yes
Checking for pycairo... yes

All Required dependencies found!

Overwriting and re-saving file 'config.py'...
Will hold custom path variables from commandline and python config file(s)...

Note: will build without these OPTIONAL dependencies:

  • boost_regex_icu (libboost_regex built with optional ICU unicode support is needed for unicode regex support in mapnik.)
  • cairo (Cairo C library | configured using pkg-config | try setting PKG_CONFIG_PATH SCons option)
  • cairomm (Cairomm C++ bindings to Cairo library | configured using pkg-config | try setting PKG_CONFIG_PATH SCons option)

127 commented Jul 13, 2012

linking pixman fails to.
Checking for at least version 1.8.0 for cairomm-1.0... yes
Package fontconfig was not found in the pkg-config search path.
Perhaps you should add the directory containing `fontconfig.pc'
to the PKG_CONFIG_PATH environment variable
Package 'fontconfig', required by 'cairo', not found
Checking for cairo/cairomm lib and include paths... no
pkg-config reported: 'pkg-config --libs --cflags cairomm-1.0' exited 1
Checking for C++ header file boost/python/detail/config.hpp... yes

Owner

springmeyer commented Jul 13, 2012

These are NOT compile failures. Mapnik should build just fine if you continue on and do sudo make install.

What you are describing are lacking or misconfigured dependencies of Cairo, which are optional. Do you actually need Cairo rendering support? If you do not know, then don't worry about it. It is only used in Mapnik for PDF/SVG output.

Owner

springmeyer commented Jul 13, 2012

btw, what "fails" in the Ubuntu steps? We cannot help you unless you paste the output.

127 commented Jul 13, 2012

Yes, sure. I understand that.
It looks like it is the only reason agg-stack-blur and other filters (I really need these features) fail to work while rendering maps. Or may be this is not the reason for that?

In Ubuntu there were some compilation errors during making. I haven't kept the log, sorry :/

Owner

springmeyer commented Jul 13, 2012

agg-stack-blur has nothing to do with cairo.

127 commented Jul 13, 2012

So what can be done to make it work?

Owner

springmeyer commented Jul 13, 2012

I have no idea since you've not told us what is wrong with agg-stack-blur.

I'm going to close this. If your problem is the behavior of agg-stack-blur then you need to create a new issue that actually describes the problem. Not what you think the cause is. But the actual error or unexpected output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment