Enterprise Framework

Software Solutions in the Enterprise

OpenStreetMap Mapnik Make Error: mapnik/version.hpp: No such file or directory

robert@robert-Ubuntu-Virtual-Platform:~/src/mod_tile$ make
Making all in iniparser3.0b
make[1]: Entering directory '/home/robert/src/mod_tile/iniparser3.0b'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/robert/src/mod_tile/iniparser3.0b'
make[1]: Entering directory '/home/robert/src/mod_tile'
g++ -DHAVE_CONFIG_H -I. -I./includes  -pthread -DSYSTEM_LIBINIPARSER=0   -g -O2 -MT src/renderd-gen_tile.o -MD -MP -MF src/.deps/renderd-gen_tile.Tpo -c -o src/renderd-gen_tile.o `test -f 'src/gen_tile.cpp' || echo './'`src/gen_tile.cpp
src/gen_tile.cpp:1:30: fatal error: mapnik/version.hpp: No such file or directory
 #include <mapnik/version.hpp>
                              ^
compilation terminated.
Makefile:1124: recipe for target 'src/renderd-gen_tile.o' failed
make[1]: *** [src/renderd-gen_tile.o] Error 1
make[1]: Leaving directory '/home/robert/src/mod_tile'
Makefile:1288: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1


Fix the error by installing libmapnik-dev:


robert@robert-Ubuntu-Virtual-Platform:~/src/mod_tile$ sudo apt-get install libmapnik-dev