Package Details: osm2pgsql-git 1.5.0.r5.gd53d6567-2

Git Clone URL: https://aur.archlinux.org/osm2pgsql-git.git (read-only, click to copy)
Package Base: osm2pgsql-git
Description: tool for loading OpenStreetMap data into a PostgreSQL / PostGIS database
Upstream URL: https://github.com/openstreetmap/osm2pgsql
Licenses: GPL
Conflicts: osm2pgsql
Provides: osm2pgsql
Submitter: einbisschen
Maintainer: xiretza
Last Packager: xiretza
Votes: 8
Popularity: 0.000000
First Submitted: 2015-08-27 16:33 (UTC)
Last Updated: 2021-06-24 13:38 (UTC)

Latest Comments

1 2 3 Next › Last »

dreieck commented on 2022-10-15 19:54 (UTC)

I suggest to explicitly add proj>=6 to the depends array and pass -DUSE_PROJ_LIB=6 to cmake. Otherwise compilation might fail if there are some proj4 and proj6 libs installed, see → this comment in osm2pgsql .

jedrzejowski commented on 2020-05-04 07:44 (UTC)

Hi, files install-postgis-osm-*.sh has been removed from repo.

install: nie można wykonać stat na 'install-postgis-osm-db.sh': Nie ma takiego pliku ani katalogu
install: nie można wykonać stat na 'install-postgis-osm-user.sh': Nie ma takiego pliku ani katalogu

You can remove line 34 with install statement if u wish to build package.

@paddybu i had same error, try rm -rf osm2pgsql-git pkg src in directory with PKGBUILD

paddybu commented on 2020-03-21 19:21 (UTC) (edited on 2020-03-21 19:21 (UTC) by paddybu)

The following error is occuring when trying to install:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_INCLUDE_DIR

xiretza commented on 2020-01-02 17:35 (UTC)

Requires makedepends=('git').

onlypretending commented on 2019-07-12 06:45 (UTC)

@gerost

Thank you! I was on the right track but was putting the add_definition in the wrong file, apparently.

gerost commented on 2019-07-12 06:11 (UTC) (edited on 2019-07-12 06:13 (UTC) by gerost)

Also had the To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H-error.

Related issues:

I'm not familiar with cmake and stuff, but I managed to make it work. You need to add the line add_definitions(-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1) to the file cmake/FindOsmium.cmake. You can do this in the build-function in PKGBUILD, after changing to the src-dir. Example of the new function:

build() {
    cd "$srcdir/$pkgname"
    printf '\n\nadd_definitions(-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1)\n' >> cmake/FindOsmium.cmake
    mkdir build &&  cd build
    cmake -DCMAKE_INSTALL_PREFIX=/usr ..
    make
}

Hope this helps!

onlypretending commented on 2019-07-09 06:08 (UTC) (edited on 2019-07-09 06:09 (UTC) by onlypretending)

/usr/include/proj_api.h:37:2: error: #error 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H'

Unable to install because of the error above

Harlok commented on 2019-07-04 16:19 (UTC)

Hallo einbisschen,

osm2pgsql-git 0.96.0.r126.g90e17f0-1

osm2pgsql
osm2pgsql: error while loading shared libraries: libproj.so.13: cannot open shared object file: No such file or directory

existing is: /usr/lib/libproj.so.15

I think it happened with the last update of mapnik ...

einbisschen commented on 2018-07-24 20:31 (UTC)

pushed version

einbisschen commented on 2016-12-27 20:59 (UTC)

Hi dgerbaudo, sorry for the late reply! Apparently the cmake build script expects lua to exist by default now (the option WITH_LUA is set by default). So there are two options for us now: First, to override this behaviour by passing "-DWITH_LUA=OFF" to cmake and always build without lua (even if lua is installed on your system), not requiring lua to be installed. Second, to require lua as a build dependency but only as an optional dependency for the installed package, to build it with full lua support and work with or without lua. For now I will go for the second since the developers of osm2pgsql also seem to prefer that way.