This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Compiling Mapnik on Raspberry Pi

0

Hi There

I am trying to compile mapnik on a raspberry pi, but ran into an error compiling mapnik_geometry.os.

g++ -o bindings/python/mapnik_geometry.os -c -ansi -Wall -pthread -ftemplate-depth-300 -O3 -fno-strict-aliasing -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts -fPIC -DHAVE_JPEG -DMAPNIK_USE_PROJ4 -DHAVE_PNG -DHAVE_TIFF -DBIGINT -DBOOST_REGEX_HAS_ICU -DLINUX -DMAPNIK_THREADSAFE -DNDEBUG -DHAVE_CAIRO -DHAVE_PYCAIRO -Ideps -Ideps/clipper/include -Ideps/agg/include -I. -Iinclude -I/usr/local/include -I/usr/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/postgresql -I/usr/include/gdal -I/usr/include/python2.7 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/pycairo bindings/python/mapnik_geometry.cpp g++: internal compiler error: Killed (program cc1plus)

How did you install mapnik on the Pi? Once I have it up and running I can look into this question.

Regards

asked 03 Mar '15, 22:39

dickvla's gravatar image

dickvla
11112
accept rate: 0%

edited 04 Mar '15, 07:51

scai's gravatar image

scai ♦
33.3k21309459


One Answer:

3

"internal compiler error: Killed" sounds like you are running out of memory, which is very likely on a Raspberry Pi. Try to stop other processes requiring much memory and maybe add a swap file, note that this might increase your compile time significantly.

answered 04 Mar '15, 07:54

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

edited 04 Mar '15, 07:54

Source code available on GitHub .