mapnik-org/mapnik — Issue #736: Make sure pkg-config failures happen immediately and don't trip up SCons
Author: artemp
Created: 2011-10-11 08:09:54+00:00
State: open
Labels: Core_Library

{{{
Found icu version... 4.2

(cached) Searching for boost libs and headers... (cached)
*libs found: /usr/local/lib
*headers found: /usr/local/include
*no lib naming extension found
Checking for Boost version >= 1.41... yes
Found boost lib version... 1_46_1
Checking for C++ library boost_system... yes
Checking for C++ library boost_filesystem... yes
Checking for C++ library boost_regex... yes
Checking for C++ library boost_iostreams... yes
Checking for C++ library boost_program_options... yes
Checking for C++ library boost_thread... yes
Checking if boost_regex was built with ICU unicode support... (cached) yes
Checking for requested plugins dependencies...
Checking for pg_config... yes
Checking for pkg-config... yes
Checking for cairomm-1.0... 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:
- 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)

Checking for C header file Python.h... yes
Bindings Python version... 2.6
Python 2.6 prefix... /usr
Python bindings will install in... /usr/lib/python2.6/dist-packages

*Configure complete*
Now run "python scons/scons.py" to build or "python scons/scons.py install" to install
devseed@febp:~/mapnik$ python scons/scons.py
scons: Reading SConscript files ...
Using previous successful configuration...
Re-configure by running "python scons/scons.py configure".

Welcome to Mapnik...

*********************************************
You are compiling Mapnik trunk (aka Mapnik2)
See important details at:
http://trac.mapnik.org/wiki/Mapnik2
*********************************************

Package sigc++-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sigc++-2.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'sigc++-2.0', required by 'cairomm', not found
OSError: 'pkg-config --libs cairomm-1.0' exited 1:
File "/home/devseed/mapnik/SConstruct", line 1461:
SConscript('bindings/python/SConscript')
File "/home/devseed/mapnik/scons/scons-local-1.2.0/SCons/Script/SConscript.py", line 612:
return apply(method, args, kw)
File "/home/devseed/mapnik/scons/scons-local-1.2.0/SCons/Script/SConscript.py", line 549:
return apply(_SConscript, [self.fs,] + files, subst_kw)
File "/home/devseed/mapnik/scons/scons-local-1.2.0/SCons/Script/SConscript.py", line 259:
exec _file_ in call_stack[-1].globals
File "/home/devseed/mapnik/bindings/python/SConscript", line 196:
py_env.ParseConfig('pkg-config --libs cairomm-1.0')
File "/home/devseed/mapnik/scons/scons-local-1.2.0/SCons/Environment.py", line 1447:
return function(self, self.backtick(command))
File "/home/devseed/mapnik/scons/scons-local-1.2.0/SCons/Environment.py", line 585:
raise OSError("'%s' exited %d" % (command, status))
devseed@febp:~/mapnik$ sudo python scons/scons.py install
scons: Reading SConscript files ...
Using previous successful configuration...
Re-configure by running "python scons/scons.py configure".

Welcome to Mapnik...

*********************************************
You are compiling Mapnik trunk (aka Mapnik2)
See important details at:
http://trac.mapnik.org/wiki/Mapnik2
*********************************************

Package sigc++-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sigc++-2.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'sigc++-2.0', required by 'cairomm', not found
OSError: 'pkg-config --libs cairomm-1.0' exited 1:
File "/home/devseed/mapnik/SConstruct", line 1461:
SConscript('bindings/python/SConscript')
File "/home/devseed/mapnik/scons/scons-local-1.2.0/SCons/Script/SConscript.py", line 612:
return apply(method, args, kw)
File "/home/devseed/mapnik/scons/scons-local-1.2.0/SCons/Script/SConscript.py", line 549:
return apply(_SConscript, [self.fs,] + files, subst_kw)
File "/home/devseed/mapnik/scons/scons-local-1.2.0/SCons/Script/SConscript.py", line 259:
exec _file_ in call_stack[-1].globals
File "/home/devseed/mapnik/bindings/python/SConscript", line 196:
py_env.ParseConfig('pkg-config --libs cairomm-1.0')
File "/home/devseed/mapnik/scons/scons-local-1.2.0/SCons/Environment.py", line 1447:
return function(self, self.backtick(command))
File "/home/devseed/mapnik/scons/scons-local-1.2.0/SCons/Environment.py", line 585:
raise OSError("'%s' exited %d" % (command, status))
}}}