mapnik-org/mapnik — Issue #785: mapnik-config --cflags does not include cairomm
Author: artemp
Created: 2011-10-11 08:12:04+00:00
State: open
Labels: Core_Library

Debian, for example, puts the includes for cairomm into /usr/include/cairomm-1.0/

{{{mapnik-config --cflags}}} output on my system:

{{{-I/usr/local/include -DHAVE_JPEG -DBOOST_REGEX_HAS_ICU -ansi -Wall -pthread -ftemplate-depth-200 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -DNDEBUG -I/usr/local/include -I/usr/include/ -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/gdal -I/usr/include/postgresql -DHAVE_CAIRO -DLIBTOOL_SUPPORTS_ADVISE}}}

The correct flags can be obtained by pkg-config --cflags cairomm-1.0, example output:

{{{-pthread -I/usr/include/freetype2 -I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include -I/usr/include/cairo -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12}}}