[OSM-dev] libosmium / osmi-addresses

Jochen Topf jochen at remote.org
Tue Mar 3 12:51:02 UTC 2015


On Tue, Mar 03, 2015 at 11:55:20AM +0100, Florian Lohoff wrote:
> Had anyone success in building libosmium/osmi-addresses on wheezy
> lately? I stumbled upon the following issues:
> 
> 
> - You need a better c++/clang so i installed clang-3.5 from 
>   deb http://llvm.org/apt/wheezy/ llvm-toolchain-wheezy main
> 
> - Building libosmium with
> 
>   export CC=/usr/bin/clang-3.5
>   export CXX=/usr/bin/clang++-3.5
> 
>   fails in finding my backported libsparsehash-dev 2.0.2-1 package
>   or better fails to compile the testcase from cmake to find the size.
> [...]
>         I guess this is a clang-3.5/libstdc++ issue. Works on Debian/Jessie with gcc 4.9

Yes, this is most likely the problem. Without a lib that supports C++11 you'll
have problems. Not sure but this might be available if you install a newer gcc.
Here is what I am doing on travis (which uses a hacked older Ubuntu version):
https://github.com/osmcode/libosmium/blob/master/.travis.yml
Maybe this is of some help for you.

> - When trying to build osmi-addresses it fails because of class renaming in libosmium.

I have created a small pull request that fixes the problems due to the renaming:
https://github.com/ltog/osmi-addresses/pull/45

But there are other problems in the code and I haven't even tried to run it. So
take this with a grain of salt.

> 	~/bin/osmi  ~/germany.osm.pbf germany
> 	node processing in FirstHandler finished
> 	terminate called after throwing an instance of 'std::out_of_range'
> 	  what():  Missing location
> 	Aborted

This probably means that there is a way referencing a node which is not in
the file.

Jochen
-- 
Jochen Topf  jochen at remote.org  http://www.jochentopf.com/  +49-173-7019282



More information about the dev mailing list