On Jan 19, 2010, at 1:54 PM, Hrvoje Prgeša wrote: > On Tue, Jan 19, 2010 at 04:07, Dane Springmeyer <[email protected]> > wrote: >> >> Try passing these extra CFLAGS: >> -ansi -Wall -ftemplate-depth-100 -DLINUX -DBOOST_SPIRIT_THREADSAFE >> -DMAPNIK_THREADSAFE -O2 -finline-functions -Wno-inline -DNDEBUG >> my guess is that its the -ftemplate-depth-100 that is needed, but >> all I know >> is that set of flags was left off the shapefile plugin compiler >> lines at one >> point (0.6.1 release) and I hit that exact same boost error >> whenever the >> shapefile plugin was touched, until those compiler flags were re- >> instated. >> Dane > > This solved the problem completely! Thank you. >
Great. > So, for future reference, the following works with ubuntu 9.10 (fresh > installation + upgrades + mapnik): > > INCLUDEPATH += /usr/local/include/mapnik > INCLUDEPATH += /usr/include/ > INCLUDEPATH += /usr/include/X11 > INCLUDEPATH += /usr/include/freetype2 > INCLUDEPATH += . > > QMAKE_CXXFLAGS +=' -ansi -Wall -ftemplate-depth-100 -DLINUX > -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O2 -finline-functions > -Wno-inline -DNDEBUG -Wno-missing-field-initializers' > unix:LIBS = -L/usr/local/lib/mapnik -L/usr/lib/X11 -lmapnik > -lfreetype -L/usr/local/lib -licuuc > unix:LIBS += -lboost_system -lboost_filesystem -lboost_regex -L/usr/ > lib > > Some of the flags are probably not needed but they don't get in the > way. > Since the ubuntu instalation tutorial uses > "SYSTEM_FONTS=/usr/share/fonts/truetype/ttf-dejavu" when configuring > mapnik I just copied the fonts to "/usr/local/lib/mapnik/fonts" > Variable "mapnik_dir" is set to "/usr/local/" inside main.cpp (viewer > instructions mention modifying whole paths to fonts but this is > clearly outdated). > > Devs might consider linking to this discussion under > http://trac.mapnik.org/wiki/MapnikViewer#FurtherReading. > Nope, the wiki is for users (too)! http://trac.mapnik.org/register Dane _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

