artemp/mapnik — Issue #220: scons fails if gdal not present
Author: artemp
Created: 2011-10-11 16:05:38+00:00
State: open
Labels: Scons_Build_Scripts

I get this failure when compiling the latest svn code on the OSM tile server:
{{{
jburgess@tile:~/mapnik$ python scons/scons.py PROJ_LIBS=/usr/lib64 PGSQL_INCLUDES=/usr/include/postgresql -c
scons: Reading SConscript files ...
Constructing build environment...
SCons CONFIG found: 'config.py', variables will be inherited...
Building on Linux in *release mode*...
Checking for pkg-config... yes
Checking for cairomm-1.0... 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 jpeg... yes
Checking for C library proj... yes
Checking for C library pq... yes
Checking for C++ library icuuc... yes
Checking for C++ library icudata... yes
Checking for C++ library gdal... no
Could not find optional header or shared library for ogr
Checking for C++ library ociei... no
Could not find optional header or shared library for ociei
Checking for C++ library gdal... no
ValueError: list.remove(x): x not in list:
File "/home/jburgess/mapnik/SConstruct", line 388:
remove_plugin_path(libinfo[0])
File "/home/jburgess/mapnik/SConstruct", line 53:
env['CPPPATH'].remove(env[incpath])
}}}