Skip to content
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

Merged
merged 3 commits into from
Nov 21, 2019

Conversation

ahoarau
Copy link
Contributor

@ahoarau ahoarau commented Nov 20, 2019

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)

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.

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)
Copy link
Contributor

@rhaschke rhaschke left a 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.

Copy link
Contributor

@rhaschke rhaschke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Travis fails.

@@ -144,7 +144,7 @@ target_link_libraries(${PROJECT_NAME}
${TinyXML2_LIBRARIES}
${X11_X11_LIB}
${ASSIMP_LIBRARIES}
${YAMLCPP_LIBRARIES}
${yaml-cpp_LIBRARIES}
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My mistake. fixed !

@rhaschke rhaschke merged commit fb2066e into ros-visualization:melodic-devel Nov 21, 2019
@rhaschke
Copy link
Contributor

Thanks a lot.

rhaschke pushed a commit to rhaschke/rviz that referenced this pull request Nov 21, 2019
rhaschke pushed a commit to rhaschke/rviz that referenced this pull request Nov 21, 2019
rhaschke pushed a commit that referenced this pull request Nov 21, 2019
rhaschke pushed a commit to rhaschke/rviz that referenced this pull request Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants