Package Details: libosmium 2.19.0-1

Git Clone URL: https://aur.archlinux.org/libosmium.git (read-only, click to copy)
Package Base: libosmium
Description: Fast and flexible C++ library for working with OpenStreetMap data.
Upstream URL: https://osmcode.org/libosmium/
Licenses: custom
Conflicts: libosmium-git
Provides: libosmium
Submitter: simon04
Maintainer: akstrfn
Last Packager: akstrfn
Votes: 8
Popularity: 0.57
First Submitted: 2016-10-20 08:49 (UTC)
Last Updated: 2023-01-22 18:09 (UTC)

Dependencies (13)

Sources (1)

Latest Comments

dreieck commented on 2022-10-15 22:43 (UTC)

I found the problem for my linking issues:

For some other package, I also had libproj4-libraries installed. Those seemed to have confused the automatic configuration, even when I manually did pass
-DPROJ_INCLUDE_DIR=/usr/include/proj -DPROJ_LIBRARY=/usr/lib/libproj.so
(both files which are explicitly provided by the proj, currently version 9, in the community repository, and not by libproj4) to cmake.

akstrfn commented on 2022-02-21 13:04 (UTC)

The package builds cleanly in clean chroot so I cant debug this.

dreieck commented on 2022-02-12 17:06 (UTC)

The linking error reported at 2022-02-08 could be mitigated by adding -DBUILD_TESTING=OFF to the cmake-options.

dreieck commented on 2022-02-08 13:39 (UTC)

Build fails for me while linking geom_test_geos and geom_test_mercator:

[...]
[ 43%] Building CXX object test/CMakeFiles/geom_test_geos.dir/t/geom/test_geos.cpp.o
[ 44%] Linking CXX executable geom_test_geos
/usr/bin/ld: [ 44%] Built target geom_test_geos
CMakeFiles/geom_test_crs.dir/t/geom/test_crs.cpp.o: in function `C_A_T_C_H_T_E_S_T_0()':
test_crs.cpp:(.text+0x14d): undefined reference to `pj_transform'
/usr/bin/ld: test_crs.cpp:(.text+0x19b): undefined reference to `pj_transform'
/usr/bin/ld: test_crs.cpp:(.text+0x411): undefined reference to `pj_free'
/usr/bin/ld: test_crs.cpp:(.text+0x423): undefined reference to `pj_free'
/usr/bin/ld: CMakeFiles/geom_test_crs.dir/t/geom/test_crs.cpp.o: in function `osmium::geom::CRS::CRS(int)':
test_crs.cpp:(.text._ZN6osmium4geom3CRSC2Ei[_ZN6osmium4geom3CRSC5Ei]+0x207): undefined reference to `pj_init_plus'
/usr/bin/ld: test_crs.cpp:(.text._ZN6osmium4geom3CRSC2Ei[_ZN6osmium4geom3CRSC5Ei]+0x3c8): undefined reference to `pj_get_errno_ref'
/usr/bin/ld: test_crs.cpp:(.text._ZN6osmium4geom3CRSC2Ei[_ZN6osmium4geom3CRSC5Ei]+0x3cf): undefined reference to `pj_strerrno'
/usr/bin/ld: test_crs.cpp:(.text._ZN6osmium4geom3CRSC2Ei[_ZN6osmium4geom3CRSC5Ei]+0x4b3): undefined reference to `pj_free'
/usr/bin/ld: CMakeFiles/geom_test_crs.dir/t/geom/test_crs.cpp.o: in function `C_A_T_C_H_T_E_S_T_0() [clone .cold]':
test_crs.cpp:(.text.unlikely+0x15): undefined reference to `pj_free'
/usr/bin/ld: test_crs.cpp:(.text.unlikely+0x24): undefined reference to `pj_free'
/usr/bin/ld: test_crs.cpp:(.text.unlikely+0xa8): undefined reference to `pj_strerrno'
/usr/bin/ld: test_crs.cpp:(.text.unlikely+0x151): undefined reference to `pj_strerrno'
[ 44%] Building CXX object test/CMakeFiles/geom_test_mercator.dir/t/geom/test_mercator.cpp.o
collect2: error: ld returned 1 exit status
make[2]: *** [test/CMakeFiles/geom_test_crs.dir/build.make:99: test/geom_test_crs] Error 1
make[1]: *** [CMakeFiles/Makefile2:1382: test/CMakeFiles/geom_test_crs.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 45%] Linking CXX executable geom_test_mercator
[ 45%] Linking CXX executable geom_test_factory_with_projection
[ 45%] Built target geom_test_mercator
/usr/bin/ld: CMakeFiles/geom_test_factory_with_projection.dir/t/geom/test_factory_with_projection.cpp.o: in function `C_A_T_C_H_T_E_S_T_2()':
test_factory_with_projection.cpp:(.text+0x5af): undefined reference to `pj_transform'
/usr/bin/ld: test_factory_with_projection.cpp:(.text+0x5e5): undefined reference to `pj_is_latlong'
/usr/bin/ld: test_factory_with_projection.cpp:(.text+0x77c): undefined reference to `pj_free'
/usr/bin/ld: test_factory_with_projection.cpp:(.text+0x78e): undefined reference to `pj_free'
/usr/bin/ld: CMakeFiles/geom_test_factory_with_projection.dir/t/geom/test_factory_with_projection.cpp.o: in function `C_A_T_C_H_T_E_S_T_2() [clone .cold]':
test_factory_with_projection.cpp:(.text.unlikely+0xae): undefined reference to `pj_free'
/usr/bin/ld: test_factory_with_projection.cpp:(.text.unlikely+0xc0): undefined reference to `pj_free'
/usr/bin/ld: test_factory_with_projection.cpp:(.text.unlikely+0x153): undefined reference to `pj_free'
/usr/bin/ld: test_factory_with_projection.cpp:(.text.unlikely+0x18a): undefined reference to `pj_strerrno'
/usr/bin/ld: CMakeFiles/geom_test_factory_with_projection.dir/t/geom/test_factory_with_projection.cpp.o: in function `osmium::geom::CRS::CRS(int)':
test_factory_with_projection.cpp:(.text._ZN6osmium4geom3CRSC2Ei[_ZN6osmium4geom3CRSC5Ei]+0x207): undefined reference to `pj_init_plus'
/usr/bin/ld: test_factory_with_projection.cpp:(.text._ZN6osmium4geom3CRSC2Ei[_ZN6osmium4geom3CRSC5Ei]+0x3c8): undefined reference to `pj_get_errno_ref'
/usr/bin/ld: test_factory_with_projection.cpp:(.text._ZN6osmium4geom3CRSC2Ei[_ZN6osmium4geom3CRSC5Ei]+0x3cf): undefined reference to `pj_strerrno'
/usr/bin/ld: test_factory_with_projection.cpp:(.text._ZN6osmium4geom3CRSC2Ei[_ZN6osmium4geom3CRSC5Ei]+0x4b3): undefined reference to `pj_free'
collect2: error: ld returned 1 exit status
make[2]: *** [test/CMakeFiles/geom_test_factory_with_projection.dir/build.make:99: test/geom_test_factory_with_projection] Error 1
make[1]: *** [CMakeFiles/Makefile2:1434: test/CMakeFiles/geom_test_factory_with_projection.dir/all] Error 2
[ 45%] Linking CXX executable geom_test_geojson
[ 45%] Built target geom_test_geojson
make: *** [Makefile:166: all] Error 2

pintergreg commented on 2019-02-26 12:49 (UTC)

I couldn't install it because I've had old Protozero, so I recommend adding minimum version to the PKGBUILD.

Could NOT find Protozero: Found unsuitable version "1.6.2", but required is at least "1.6.3" (found /usr/include)