You should not need to remove the '#if defined(HAVE_CAIRO)'. The error below indicates that you either have two versions of mapnik installed or otherwise have rundemo linked against a libmapnik compiled without cairo support.
I would manually remove any traces of previously installed mapnik libraries, then clean the built targets and reinstall. To clean your built targets do: python scons/scons.py -c Dane On Feb 1, 2010, at 5:01 AM, Anisha Kaul wrote: > Hi, > > When I run rundemo.cpp no cairo-demo.png files get generated, > instead I get the following error: > __________________________________ > ./rundemo: symbol lookup error: ./rundemo: undefined symbol: > _ZN6mapnik14cairo_rendererIN5Cairo7SurfaceEEC1ERKNS_3MapERKNS1_6RefPtrIS2_EEjj > __________________________________ > > > I have removed the pre-processor statements like '#if > defined(HAVE_CAIRO)' from rundemo.cpp and > > I have Cairo library installed which is evident from the following > verbose compilation : > > __________________________________ > ani...@linux:~/mapnik-0.6.0> python scons/scons.py configure > DEMO=True CAIRO=True > scons: Reading SConscript files ... > > Welcome to Mapnik... > > Configuring build environment... > SCons CONFIG found: 'config.py', variables will be inherited... > OPTIMIZATION=3 DEBUG=True INPUT_PLUGINS=all PROJ_INCLUDES=/usr/ > include PROJ_LIBS=/usr/lib > SYSTEM_FONTS=/usr/share/fonts/truetype/ttf-dejavu/ BINDINGS=all > DEMO=True > Configuring on Linux in *debug mode*... > Checking for freetype-config... yes > Checking for xml2-config... yes > 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 icuuc... yes > Checking for C++ library icudata... yes > Checking for Boost version >= 1.33... yes > Found boost lib version... 1_39 > 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_iostreams-mt... yes > Checking for C++ library boost_program_options-mt... yes > Checking for C++ library boost_thread-mt... yes > Checking for requested plugins dependencies... > Checking for C library sqlite3... yes > Checking for gdal-config --libs... error: no result > no > Checking for C++ library ociei... no > Checking for pg_config... yes > Checking if gdal is ogr enabled... 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! > > Overwriting and re-saving file 'config.py'... > Will hold custom path variables from commandline and python config > file(s)... > > However, these optional dependencies were not found: > - gdal-config --libs > - ociei > - ogr > __________________________________ > > I have attached my rundemo.cpp here.. > > Kindly guide !! > > > -- > Regards, > Anisha Kaul > <rundemo.cpp> > > ------------------------------------- > Hi-Tech Gears Limited, Gurgaon, India > > _______________________________________________ > Mapnik-users mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/mapnik-users _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

