[OSM-dev] libosm does not compile on debian lenny amd64

Nick Whitelegg Nick.Whitelegg at solent.ac.uk
Mon Jan 5 17:10:34 GMT 2009


Hello Joerg,

I think this is because you need to use -fPIC when compiling the 
individual .cpp files when making the shared library.

e.g. the Mapnik OSM plugin makefile is similar in that it makes a shared 
library:

 CXXFLAGS = `xml2-config --cflags` -I/usr/local/include/mapnik 
-I/usr/include/boost -I/usr/include/freetype2  
-I/home/nick/mapnik-osm/agg/include  -fPIC -g
MAPNIK_OSM_OBJ = osmparser.o osm.o osm_datasource.o osm_featureset.o 
osm.input: $(MAPNIK_OSM_OBJ)     
        g++ -shared -o osm.input $(MAPNIK_OSM_OBJ) 

Nick





More information about the dev mailing list