Closed ramunasd closed 10 years ago
By default Ubuntu 14.04 has libgeos=3.4.x Compiler throws error when trying make osmjs:
:/src/osmium/osmjs$ make g++ -O3 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../include -I/usr/include/libshp -DOSMIUM_WITH_DEBUG -I/usr/include -Wall -Wextra -Wdisabled-optimization -pedantic -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wno-long-long -o osmjs osmjs.cpp -lexpat -lz -lpthread -lprotobuf-lite -losmpbf -lv8 -licuuc -lshp -L/usr/lib -lgeos-3.4.2 In file included from ../include/osmium/javascript/handler.hpp:32:0, from ../include/osmium/javascript.hpp:27, from osmjs.cpp:30: ../include/osmium/javascript/wrapper/geometry.hpp:28:32: fatal error: geos/geom/Geometry.h: No such file or directory #include <geos/geom/Geometry.h> ^
apt-get install libgeos++-dev
thanks, i tought localy compiled geos has this file
By default Ubuntu 14.04 has libgeos=3.4.x Compiler throws error when trying make osmjs: