-
Notifications
You must be signed in to change notification settings - Fork 486
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
Gazebo7 Linking Error with CMake / Catkin - pthreads #2198
Comments
Original comment by Dave Coleman (Bitbucket: Dave Coleman). |
Original comment by Jose Luis Rivero (Bitbucket: Jose Luis Rivero, GitHub: j-rivero).
With William's permission, I will take care of finding the proper fix. |
Original comment by Jose Luis Rivero (Bitbucket: Jose Luis Rivero, GitHub: j-rivero). I debug the issue until the point on locating the problem in gazebo dependency on Protobuf. Going deeper in Protobuf, ¿@davetcoleman could you please temporary delete this line in FindProtobuf.cmake (probably located in your We have built a lot of third party software on top of Gazebo so it should be related to catkin packages somehow. |
Original comment by Dave Coleman (Bitbucket: Dave Coleman). Indeed that fixed the build problem! Now how do we resolve it in a better way? |
Original comment by Jose Luis Rivero (Bitbucket: Jose Luis Rivero, GitHub: j-rivero). That is a good question, we need to know if any package using protobuf will generate that error or if the gazebo cmake config file is doing something funky that it is making catkin to fail. I think that we can move the issue to the catkin issue tracker and keep the discussion there. |
Original comment by Dave Coleman (Bitbucket: Dave Coleman). I'm not sure how to setup a protobuf test, I never use that library. Move the issue here? |
Original comment by Jose Luis Rivero (Bitbucket: Jose Luis Rivero, GitHub: j-rivero). I think that we can keep the test case as it is, using Gazebo. The gazebo cmake config file is not difficult to understand. Yes, submit the bug to that URL since I think that it has more to do with catkin than with gazebo itself. |
Original comment by Johannes Meyer (Bitbucket: johmeyer). Just wanted to note that the Depending on |
Original comment by Jose Luis Rivero (Bitbucket: Jose Luis Rivero, GitHub: j-rivero).
We are handling the problem in gazebo_ros_pkgs and catkin, I think that we don't have to do anything in the upstream code. Thanks Dave and Johannes for the information. |
Original report (archived issue) by Dave Coleman (Bitbucket: Dave Coleman).
Based on discussions with @j-rivero on this gazebo_ros_pkgs pull request, I've isolated some sort of flag export build problem that results in the error:
I think the problem is Gazebo7 is exporting a dependency on
pthread
which is suggested is bad on StackOverflow.This occurs when one catkin package depends on Gazebo, and another depends on that package:
base_pkg CMakeLists
dependent pkg CMakeLists
The full workspace can be tested from this barebones test repo I've just created.
Let me know how to fix this. This will also fix the Jenkins build failures on all gazebo_ros_pkgs pull requests.
The text was updated successfully, but these errors were encountered: