joto / osmium

C++/Javascript framework for working with OSM files.
http://wiki.openstreetmap.org/wiki/Osmium
GNU General Public License v3.0
123 stars 31 forks source link

missing Geometry.h in geos 3.4.x #93

Closed ramunasd closed 10 years ago

ramunasd commented 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>
                                ^
woodpeck commented 10 years ago

apt-get install libgeos++-dev

ramunasd commented 10 years ago

thanks, i tought localy compiled geos has this file