-
Notifications
You must be signed in to change notification settings - Fork 212
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
Add rviz_rendering dependency to rviz_common #727
Conversation
Signed-off-by: Rebecca Butler <rebecca@openrobotics.org>
@@ -246,6 +246,7 @@ ament_target_dependencies(rviz_common | |||
rclcpp | |||
resource_retriever | |||
rviz_assimp_vendor | |||
rviz_rendering |
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.
Interesting. I'm not opposed to doing this, but theoretically this shouldn't be needed; we have rviz_rendering::rviz_rendering
as part of target_link_libraries
above. Any ideas on why that is not sufficient?
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 seems more "ament-like" to do this and remove the target from target_link_libraries
above. But I also do wonder why the existing logic is not working...
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.
ah, so the version of rviz_rendering released into Rolling does not have the API rviz_rendering::OgreLogging::get()
. So it must be that the rviz_common is not picking up the version in the workspace. FWIW, I also experience this build 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 guess using ament_target_dependencies causes a re-ordering of compile flags that happens to make it work.
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 would also remove rviz_rendering::rviz_rendering
from target_link_libraries
above since it is redundant.
Signed-off-by: Rebecca Butler <rebecca@openrobotics.org>
Did full CI get run for this? |
This reverts commit 4a4da3e.
@clalancette my mistake, I forgot to run CI. Should I revert this PR? |
Well, let's run CI now. If it passes green, great, we can just leave it. If it isn't green, then we should revert. |
Looks like CI is green, so no need to revert. Thanks for pointing that out @clalancette! |
Could this be merged in galactic too ? I have the same issue on the galactic branch |
Signed-off-by: Rebecca Butler <rebecca@openrobotics.org>
* Add rviz_rendering dependency to rviz_common Signed-off-by: Rebecca Butler <rebecca@openrobotics.org> * Remove rviz_rendering from target_link_libraries Signed-off-by: Rebecca Butler <rebecca@openrobotics.org>
* Add rviz_rendering dependency to rviz_common Signed-off-by: Rebecca Butler <rebecca@openrobotics.org> * Remove rviz_rendering from target_link_libraries Signed-off-by: Rebecca Butler <rebecca@openrobotics.org> Co-authored-by: Rebecca Butler <rebecca@openrobotics.org>
I was unable to build
rviz_common
due to the following error invisualizer_app.cpp
:Adding the missing dependency on
rviz_rendering
seems to fix the issue.Signed-off-by: Rebecca Butler rebecca@openrobotics.org