-
Notifications
You must be signed in to change notification settings - Fork 774
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 gazebo catkin warning #537
Fix gazebo catkin warning #537
Conversation
0133723
to
af07e21
Compare
I'm not 100% this PR is good, I'm getting errors in downstream packages (baxter_simluation):
|
sounds to me like one of the dependencies is exporting that pthread in an invalid way. Maybe looking into the CMakeCache.txt file can give you hint or try to disable the sdformat/boost find_package lines alternatively to see which one is the culprit. |
686e31f
to
99c08dd
Compare
@@ -75,8 +75,6 @@ link_directories( | |||
${catkin_LIBRARY_DIRS} | |||
) | |||
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GAZEBO_CXX_FLAGS}") |
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.
this line is a duplicate from previous in this file
@@ -36,21 +36,20 @@ generate_dynamic_reconfigure_options(cfg/Physics.cfg) | |||
|
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.
In this file I only do OCD house keeping :)
@@ -31,9 +33,11 @@ catkin_package( | |||
joint_limits_interface | |||
urdf | |||
angles | |||
INCLUDE_DIRS include | |||
LIBRARIES ${PROJECT_NAME} default_robot_hw_sim | |||
DEPENDS gazebo |
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.
From my testing, DEPENDS gazebo
caused the issues I was having
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.
According to catkin documentation that DEPENDS
clause is fine (at least to my eyes). My vote is for keeping it and debug where is exactly the error.
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.
I read that documentation and it does not clarify anything for me. It just says DEPENDS - Non-catkin CMake projects that this project depends on
but then why does it also not include things like Boost?
Another example - why does gazebo_ros
not DEPEND on GAZEBO? My change in this PR was inspired by that CMakeLists file.
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.
It just says DEPENDS - Non-catkin CMake projects that this project depends on but then why does it also not include things like Boost?
Another example - why does gazebo_ros not DEPEND on GAZEBO?
I would say that both are bugs or errors in the configuration of our CMakeLists.txt. I found this answer specially useful to understand what are they used for. Now it makes sense that changes in DEPEND
will affect third party software.
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.
That's a really good answer, would be great if it was added to the catkin documentation. I added a link from the wiki to that answer, for now.
Seems I'll have the same pthread linking issues now, I'll work on it soon.
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.
Ok, I've spent the last hour on the issue and I think our problem is with Gazebo, see https://bitbucket.org/osrf/gazebo/issues/2198/gazebo7-linking-error-with-cmake-catkin
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.
given the current state of the issue, I'm ok for not declaring gazebo
as DEPENDS
here. Dave, if you could please leave the line commented with a comment pointing to the gazebo issue that should be enough to restore it as soon as we find the way of solving the issue. After the comments, good to merge.
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.
i've added the comment
This PR is ready for review/merging |
99c08dd
to
8c52185
Compare
ping @j-rivero, ready for merge |
Thanks Dave! |
This reverts commit 5a0305f. For reference and reasons, please check: https://discourse.ros.org/t/need-to-sync-new-release-of-rqt-topic-indigo-jade-kinetic/1410/4
…reads errors) For reference and reasons, please check: https://discourse.ros.org/t/need-to-sync-new-release-of-rqt-topic-indigo-jade-kinetic/1410/4 * Revert "Fix gazebo catkin warning, cleanup CMakeLists (#537)" This reverts commit 5a0305f. * Revert "Fix gazebo and sdformat catkin warnings" This reverts commit 11f95d2.
…ckage(DEPENDS gazebo) declaration which was a no-op anyway See ros-simulation/gazebo_ros_pkgs#537.
…reads errors) For reference and reasons, please check: https://discourse.ros.org/t/need-to-sync-new-release-of-rqt-topic-indigo-jade-kinetic/1410/4 * Revert "Fix gazebo catkin warning, cleanup CMakeLists (ros-simulation#537)" This reverts commit ef22084. * Revert "Fix gazebo and sdformat catkin warnings" This reverts commit e8d66bc.
Same fix as #521 except for
gazebo_ros_control
pkgThis PR is sponsored by Vicarious