I'm trying to compile the examples from Osmium, but I get an error.

$:~/osmium/examples$ make

g++ -g -Wall -Wextra -Wdisabled-optimization -pedantic -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wno-long-long -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../include -DOSMIUM_WITH_DEBUG -I/usr/include/libxml2 -o osmium_convert osmium_convert.cpp -lexpat -lz -lpthread -lprotobuf-lite -losmpbf -lxml2
In file included from ../include/osmium/handler.hpp:33:0,
                 from ../include/osmium/input.hpp:29,
                 from ../include/osmium/input/pbf.hpp:35,
                 from ../include/osmium.hpp:26,
                 from osmium_convert.cpp:33:
../include/osmium/osm/area.hpp:27:36: fatal error: geos/geom/MultiPolygon.h: No such file or directory
compilation terminated.
make: *** [osmium_convert] Error 1

$:~/osmium/examples$

asked 05 Jan '13, 16:45

Rub21's gravatar image

Rub21
11356
accept rate: 0%

edited 06 Jan '13, 08:42

Jochen%20Topf's gravatar image

Jochen Topf
4.4k54564


You have to install all the prerequisites mentioned in the README. In this case you are missing the GEOS library (or have a version that's too old). This wiki page may also help you: http://wiki.openstreetmap.org/wiki/Osmium/Quick_Start

permanent link

answered 06 Jan '13, 08:39

Jochen%20Topf's gravatar image

Jochen Topf
4.4k54564
accept rate: 34%

On my ubuntu, i had to install libgeos++-dev from the ubuntu repository with success

permanent link

answered 16 Jan '13, 18:11

BrunoC's gravatar image

BrunoC
261
accept rate: 0%

edited 17 Jan '13, 07:23

scai's gravatar image

scai ♦
31.1k18281434

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×16

question asked: 05 Jan '13, 16:45

question was seen: 5,586 times

last updated: 17 Jan '13, 07:23

powered by OSQA