You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
I believe the issue is that there is no target_link_libraries for osrm_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
Clone master
mkdir build
cd build
cmake .. -DBUILD_SHARED_LIBS=ON
cmake --build .
Specifications
Please provide details of your development environment.
macOS 14.5
Apple M1
AppleClang 15.0.0
The text was updated successfully, but these errors were encountered:
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: