Compiling OSM-binary, and osm2pgsql #17366
Unanswered
r2d2Proton
asked this question in
Q&A
Replies: 1 comment
-
Some success with OSM-binary. Ninja was erroring out with a complaint about multiple build rules. Changing the CMake Generator to "Visual Studio 16 2019 Win64" fixed the problem. The build was successful and the DLL was generated. You can access the settings for the CMake Generator by selecting "Manage Configurations..." under the Configurations dropdown in Visual Studio. Scroll to the bottom and press "Show Advanced Settings". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all I want to thank you for developing such a useful tool. Though I am experiencing some difficulties with it and/or with Visual Studio CMake projects I do appreciate its utility :)
I could easily track down every single dependent file and place them in a directory structure of my own choosing and setup the Include/Lib directories within Visual Studio to get a successful build. Obviously that would be time-consuming and counter-productive. If I ended up doing so I would write code to automate the repository clones and file copies needed so I could repeat the process over and over without error. Which is what vcpkg and VS CMake projects are supposed to be.
The problems I am experiencing I believe are VS CMake. Unfortunately I have not found an equivalent Microsoft-CMake where I can post to. So I am posting here in hopes that someone may offer some guidance.
When I try to build osm2pgsql I am getting directory errors for PostgreSQL include/lib directories:
https://github.com/openstreetmap/osm2pgsql
I tried a supposedly easier build but that failed too:
https://github.com/openstreetmap/OSM-binary
In case someone is able to test this for me - I noticed that OSM-binary uses a symbolic link (osmpbf) which points to src in the CMakeLists.txt file.
Any help is appreciated. I am actively looking at this now and most likely will continue to focus on this issue until I can get past it as it is the starting point :D
Thank you in advance for your help.
Jerry
Beta Was this translation helpful? Give feedback.
All reactions