minad / osm2shp

Convert large OpenStreetMap files to shapefiles (Uses sqlite3 db as temporary storage)
33 stars 16 forks source link

Compiling on Ubuntu 11.10 64-bit #3

Closed ldesousa closed 12 years ago

ldesousa commented 12 years ago

Dear minad,

This program doesn't compile on Ubuntu 11.10 64-bit. Here's the output:

$ make g++ -ggdb -Wall -Wredundant-decls -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c osm2shp.cc -o osm2shp.o In file included from osm/handler.hpp:4:0, from osm2shp.cc:1: osm/point_database.hpp:6:29: fatal error: boost/utility.hpp: No such file or directory compilation terminated. make: *\ [osm2shp.o] Error 1

Any workaround possible? Thanks.

Turbo87 commented 12 years ago

did you install the boost libraries?! try to install "libboost-dev" with apt-get and try again.

ldesousa commented 12 years ago

Hi Tobias. Naturally I didn't install any library since no indication was given in the README.

I just tried out the Java version of osm2shp and it works quite well, no compilation or additional libraries needed.

Best.

ldesousa commented 12 years ago

So here's what happened after installing boost:

$ make g++ -ggdb -Wall -Wredundant-decls -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c osm2shp.cc -o osm2shp.o In file included from osm/handler.hpp:4:0, from osm2shp.cc:1: osm/point_database.hpp:9:40: fatal error: osmium/osm/way_node_list.hpp: No such file or directory compilation terminated. make: *\ [osm2shp.o] Error 1

What else is missing?

Turbo87 commented 12 years ago

yes, I guess the README is lacking that information... but I'm not quite sure if this tool is what you're looking for. This osm2shp project is not related to the project on google code and produces rather specific preprocessed results for another project (XCSoar)... If you still want to build it you should first build and install the osmium library (https://github.com/joto/osmium) including it's dependencies. You will probably also need a sqlite library, but I don't remember the package name right now...

ldesousa commented 12 years ago

So here's what happened after installing boost:

$ make g++ -ggdb -Wall -Wredundant-decls -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c osm2shp.cc -o osm2shp.o In file included from osm/handler.hpp:4:0, from osm2shp.cc:1: osm/point_database.hpp:9:40: fatal error: osmium/osm/way_node_list.hpp: No such file or directory compilation terminated. make: *\ [osm2shp.o] Error 1

What else is missing?

ldesousa commented 12 years ago

Reading your message I agree that this library may not be what I need. I ended up here following a link from the OSM Wiki, perhaps the information there on what the library should do isn't correct.

osm2shp-java does what I need, but doesn't keep the geometries labels. QGIS is possibly the best software to have a quick display of OSM data and its transformation to SHP.

Best.