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

Linker errors when linking ros libraries because of missing link_directores #277

Closed
osrf-migration opened this issue Dec 5, 2012 · 7 comments
Labels
all bug Something isn't working major

Comments

@osrf-migration
Copy link

Original report (archived issue) by Lorenz Mösenlechner (Bitbucket: moesenle).

The original report had attachments: gazebo-cmake-link-directories.patch


When compiling gazebo (current tip as of Dec. 5) I ran into a bunch of linker errors because the build could not find the urdfdom and console_bridge libraries. The problem seems to be that with my cmake version (2.8.10.2), targets get added before /opt/ros/groovy/lib is added with link_directories. Adding ${urdfdom_LIBRARY_DIRS} and friends in gazebo, plugins and tests before processing all subdirectories solves the issue. Patch attached.

@osrf-migration
Copy link
Author

Original comment by John Hsu (Bitbucket: hsu, GitHub: hsu).


Hi Lorenz,
is this a 2.8.10.2 issues? I have 2.8.7 and I don't have any errors when compiling?
John

@osrf-migration
Copy link
Author

Original comment by Lorenz Mösenlechner (Bitbucket: moesenle).


I'm not sure. I don't think the evaluation order of subdirectories is defined in CMake anywhere so I don't think it's a bug in CMake. My guess what happens on your system is that the subdirectory gazebo/sdf/interface is expanded first while it is expanded later on my system. I think cmake is just not deterministic there. Btw. I get the same issue with CMake 2.8.7, too. I've seen it on at least three different computers.

@osrf-migration
Copy link
Author

Original comment by Lorenz Mösenlechner (Bitbucket: moesenle).


John, is maybe urdfdom and console_bridge not installed on your system? In that case you wouldn't run into the error since libgazebo_sdf_interface would not link against them. I have ros groovy installed which provides the two libraries.

@osrf-migration
Copy link
Author

Original comment by Lorenz Mösenlechner (Bitbucket: moesenle).


See pull request #194.

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • changed state from "new" to "resolved"

Fixed in pull request #194

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • set version to "all"

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • changed state from "resolved" to "closed"

@osrf-migration osrf-migration added major bug Something isn't working all labels Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
all bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

1 participant