-
-
Notifications
You must be signed in to change notification settings - Fork 468
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 need for downstream dependency on OGRE, #733. #734
Conversation
I don't yet understand how this is not just redundant, I am building OGRE 1.9 now to test it. |
For me with hydro on ubuntu precise with vanilla OGRE install, this was necessary for the downstream projects to |
Rviz is using pkg-config to find |
Ah, well... at least it contains the fix within rviz and doesn't make downstream packages think about it. Fwiw, the "vanilla" OGRE install I mentioned above is 1.7.4. |
It looks like Ogre 1.8 has a FindOGRE.cmake packaged with it on Fedora 19 and 20, which is why adding it to DEPENDS fixes this for Fedora. OGRE.pc is also present. What I can't explain (yet) is why adding the include directories to the catkin_package macro doesn't take care of this (https://github.com/ros-visualization/rviz/blob/hydro-devel/CMakeLists.txt#L108), which @wjwwood mentioned in #730 (comment) |
He added |
The assertion is that So I built rviz 1.10.13 from source and modified it like this: diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2da54b4..f1f410f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -101,6 +101,8 @@ find_package(Eigen REQUIRED)
catkin_python_setup()
+message("OGRE_OV_INCLUDE_DIRS: ${OGRE_OV_INCLUDE_DIRS}")
+
catkin_package(
INCLUDE_DIRS
src The out of which looks like this:
Inspecting the
Then after building and installing rviz I looked at the
So then I applied the patch from this pull request, and ran cmake again (after cleaning the entire build folder), checking each of the above again:
|
Also, the variable https://github.com/ros-visualization/rviz/blob/hydro-devel/CMakeLists.txt#L108 |
This commit introduced the problem for downstream things: But, it looks like this should be fixed in catkin, @dirk-thomas is making a pull request now. But this pull request is, in my opinion, not the correct solution. |
+1 for not merging this. Instead catkin should allow passing absolute paths via |
Works perfectly with ros/catkin#600 on Arch Linux with Ogre 1.9. Thanks @dirk-thomas @wjwwood etc. |
The farm seems to be green again, so I think ros/catkin#600 should have fixed this issue without any need to change rviz. I will close this, please comment here if you disagree. |
* Remove window_close.png Signed-off-by: Rebecca Butler <[email protected]> * Rename failed_display.png -> close.png Signed-off-by: Rebecca Butler <[email protected]>
This seems to fix #733 for me. See also #730.