-
Notifications
You must be signed in to change notification settings - Fork 466
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
fix yaml-cpp not found on macOS (catalina) #1445
Conversation
This fixes the issue : ld: library not found for -lyaml-cpp clang: error: linker command failed with exit code 1 (use -v to see invocation)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this fix. Ubuntu 18.04 supports the cmake-based config as well, so could you please revert your if-switch and just replace pkg-config with cmake-based find_package? Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Travis fails.
src/rviz/CMakeLists.txt
Outdated
@@ -144,7 +144,7 @@ target_link_libraries(${PROJECT_NAME} | |||
${TinyXML2_LIBRARIES} | |||
${X11_X11_LIB} | |||
${ASSIMP_LIBRARIES} | |||
${YAMLCPP_LIBRARIES} | |||
${yaml-cpp_LIBRARIES} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable is named YAML_CPP_LIBRARIES on Ubuntu 18.04. Is it different on Mac?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My mistake. fixed !
Thanks a lot. |
... instead of pkg-config
... instead of pkg-config
... instead of pkg-config
This fixes the issue :
Description
pkg config succeeds in finding yaml but linker fails on macOS (tested on catalina)
Now on newer version of yamlcpp, the cmake config is installed.