mapnik-org/mapnik — Issue #670: compilation errors in svg_output_grammars.hpp
Author: artemp
Created: 2011-10-11 08:07:27+00:00
State: open

When I try to compile mapnik (trunk, ie. mapnik2), I get a compilation error in the mentioned file. This seems to have been introduced between revisions 2298 (which compiles fine) and revision 2303 (which yields errors):

{{{
[...]
g++ -o src/svg/svg_renderer.os -c -DHAVE_JPEG -ansi -Wall -pthread -ftemplate-depth-200 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O2 -finline-functions -Wno-inline -DNDEBUG -DSVG_RENDERER -fPIC -Iagg/include -I. -Iinclude -I/usr/local/include -I/usr/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/gdal -I/usr/include/postgresql src/svg/svg_renderer.cpp
In file included from include/mapnik/svg/svg_generator.hpp:30,
from include/mapnik/svg_renderer.hpp:30,
from src/svg/svg_renderer.cpp:25:
include/mapnik/svg/svg_output_grammars.hpp:60: error: ‘vertex_vector2’ is not a member of ‘mapnik’
include/mapnik/svg/svg_output_grammars.hpp:60: error: ‘vertex_vector2’ is not a member of ‘mapnik’
include/mapnik/svg/svg_output_grammars.hpp:60: error: template argument 1 is invalid
include/mapnik/svg/svg_output_grammars.hpp:60: error: expected unqualified-id before ‘>’ token
[...]
}}}

My configuration:
{{{
numenor@elendil:~/software/mapnik$ python scons/scons.py configure DEBUG=no INPUT_PLUGINS=raster,sqlite,gdal,shape,postgis,ogr,osm SVG_RENDERER=yes CAIRO=yes CAIRO_INCLUDES=/usr/include/cairo PGSQL_INCLUDES=/usr/include/postgresql ICU_INCLUDES=/usr/local/include ICONV_INCLUDES=/usr/include GDAL_INCLUDES=/usr/include PROJ_INCLUDES=/usr/include PROJ_LIBS=/usr/lib XMLPARSER=libxml2 PKG_CONFIG_PATH=/usr/lib/pkgconfig PGSQL2SQLITE=yes
scons: Reading SConscript files ...

Welcome to Mapnik...

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

Configuring build environment...
SCons CONFIG found: 'config.py', variables will be inherited...
INPUT_PLUGINS=gdal,ogr,osm,postgis,raster,shape,sqlite BOOST_INCLUDES=/usr/local/include BOOST_LIBS=/usr/local/lib ICU_INCLUDES=/usr/local/include PROJ_INCLUDES=/usr/include PROJ_LIBS=/usr/lib PKG_CONFIG_PATH=/usr/lib/pkgconfig SVG_RENDERER=True CAIRO=True BINDINGS=all PGSQL2SQLITE=True
Configuring on Linux in *release mode*...
Checking for freetype-config... yes
Checking for xml2-config... yes
Sorting lib and inc compiler paths by priority... internal,other,frameworks,user,system(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
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_44
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 for requested plugins dependencies...
Checking for C library sqlite3... yes
Checking for gdal-config --libs... yes
Checking for gdal-config --cflags... yes
Checking for name of gdal library... gdal1.7.0
Checking for pg_config... yes
Checking if gdal is ogr enabled... yes
Checking for name of ogr library... gdal1.7.0
Checking for C library curl... yes
Checking for pkg-config... yes
Checking for cairomm-1.0... yes
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)...
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
}}}