Hello everyone,

Got
the latest mapnik (checked out Wednesday night) compiled on Mac OS X
10.5 with boost 1.37 (macports), but did encounter one or two things
not on the wiki page so thought I'd share them.

Firstly,
couldn't get mapnik 0.5.1 to build, the SConscript couldn't find the
boost shared libraries, even though I gave the path and the -mt
matched. However, the SVN version worked fine.

Secondly the
"+python2.5" specification when installing Boost actually did pull in
Python, and in turn, ncurses, from MacPorts - even though I already
have Python 2.5 and ncurses installed (in /usr). It also pulled in
gmake 3.81 which I also have already, though it only seemed to need
this for installing python and I could remove it afterwards.

Thirdly
to compile the rundemo.cpp I needed to add the option -lboost_thread-mt
to link the boost-thread library in. Didn't have to do it for any of
the other boost libraries though.

Finally,
to compile the OSM plugin I needed to link against all the ICU
libraries, not sure if this is a Mac specific thing (last time I
compiled it was on SuSE 10.3) or a Mapnik update - to compile the OSM
plugin I needed to modify the makefile to look like:

CXXFLAGS = `xml2-config --cflags` `freetype-config --cflags` 
-I/usr/local/include/mapnik -I/opt/local/include  -fPIC -g
MAPNIK_OSM_OBJ = osmparser.o osm.o osm_datasource.o osm_featureset.o
osm.input: $(MAPNIK_OSM_OBJ)
   
g++ -dynamiclib -o osm.input $(MAPNIK_OSM_OBJ) `xml2-config --libs`
-lmapnik -L/usr/local/lib -L/opt/local/lib -licuuc -liculx -licule
-licui18n -licuio -licudata

Nick


      
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to