-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to build with newer protobuf library #502
Comments
Oh, ugh. Maybe this should be a prompt to move to protozero… |
Or use a library for at least reading OSM files that abstracts it away. |
Yep. We need to write out pbf vector tiles though so protozero might be worth it for the speed boost. |
how to add [ pkg-config --libs protobuf ]. can you show me you makefile code. thks |
Just to say, a PR to fix the makefile would be very happily welcomed (after countless bad experiences I'm now a Homebrew-free zone, so probably can't reproduce this exactly). |
I'm not sure this is possible in a reliable way without using autotools or cmake, which is why I didn't already :) |
💡 We do have a cmake build already, of course. Does that work? |
I didn't spot that! The cmake build does indeed work fine. |
cmake build does not work for me. The version of cmake on which it is based is too old. It needs to be moved to more modern cmake to avoid the linking issue. Maybe because the version of absl found is not the one protobuf (installed by brew) was built with. In any case, modern cmake does get the correct dependencies directly. I will make a PR. |
That would be brilliant - yes please. |
v3.0 fixes this by removing the protobuf dependency :) |
(macOS 13.4, amd64, Apple clang version 14.0.3)
I have Protobuf 23.3 installed here (through Homebrew). Running make fails with the following error due to missing std symbols:
Changing
-std=c++14
to-std=c++17
in the Makefile fixes this and it all compiles fine, but it fails with this linker error:Looks like they've added a dependency on Abseil (presumably as at protobuf version 23).
Appending the (copious) output of
pkg-config --libs protobuf
to the LIB line in the Makefile results in the linker succeeding and Tilemaker appears to work.The text was updated successfully, but these errors were encountered: