-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Can't build shared libraries on macOS #6954
Labels
Comments
mattwigway
added a commit
to mattwigway/osrm-backend
that referenced
this issue
Jun 17, 2024
… between guidance and extract, fixes Project-OSRM#6954
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
The OSRM build errors when attempting to build with
-DBUILD_SHARED_LIBS=on
on macOS. Specifically, there are undefined symbols when linking libosrm_guidance. We get this error:Undefined symbol error
I believe the issue is that there is no
target_link_libraries
forosrm_guidance
so it doesn't know where to find the symbols. This works fine on Linux, as on Linux the linker just (dangerously) assumes that any undefined symbols at link-time will be available at runtime. The macOS linker does not. I have a patch to fix this, will submit a PR shortly.Steps to reproduce
master
Specifications
Please provide details of your development environment.
The text was updated successfully, but these errors were encountered: