ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Error while building(first time) ros noetic at rviz package.

asked 2020-11-06 06:27:05 -0500

VikasMaurya gravatar image

updated 2020-11-10 07:35:48 -0500

miura gravatar image

Hello, I am trying to follow the link here to build noetic from source in fedora 32. I get the following error at rviz package.

[ 25%] Building CXX object src/rviz/CMakeFiles/rviz.dir/panel_factory.cpp.o
[ 26%] Building CXX object src/rviz/CMakeFiles/rviz.dir/preferences_dialog.cpp.o
/home/vmaurya/ros_catkin_ws/src/rviz/src/rviz/ogre_helpers/movable_text.cpp:51:10: fatal error: OgreFontManager.h: No such file or directory
   51 | #include <OgreFontManager.h>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/rviz/CMakeFiles/rviz.dir/build.make:473: src/rviz/CMakeFiles/rviz.dir/ogre_helpers/movable_text.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/vmaurya/ros_catkin_ws/src/rviz/src/rviz/ogre_helpers/render_system.cpp:56:10: fatal error: OgreOverlaySystem.h: No such file or directory
   56 | #include <OgreOverlaySystem.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/rviz/CMakeFiles/rviz.dir/build.make:564: src/rviz/CMakeFiles/rviz.dir/ogre_helpers/render_system.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2874: src/rviz/CMakeFiles/rviz.dir/all] Error 2
make: *** [Makefile:161: all] Error 2
<== Failed to process package 'rviz':
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2020-11-06 20:34:52 -0500

miura gravatar image

From the error message, it looks like you need to install ogre-devel.

ref: https://fedora.pkgs.org/32/fedora-x86...

edit flag offensive delete link more

Comments

it says ogre-devel is already installed. I tried to build after the checking ogre-devel, still it shows the same error.

VikasMaurya gravatar image VikasMaurya  ( 2020-11-09 10:58:32 -0500 )edit

I'm sorry to hear that. It's not a pretty solution, but if you copy or link /usr/include/OGRE/OgreOverlay/OgreOverlay.h and /usr/include/OGRE/OgreFontManager.h to your rviz include, you'll get the error will disappear.

miura gravatar image miura  ( 2020-11-10 07:51:43 -0500 )edit
0

answered 2020-12-18 15:07:06 -0500

This issue stems from a difference in behavior in the various methods that CMake can use to locate OGRE. In Fedora 32, OGRE is found using FindOGRE.cmake, which is setting separate CMake values for the include directories of the components.

This change should resolve this issue: https://github.com/ros-visualization/...

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-11-06 06:27:05 -0500

Seen: 451 times

Last updated: Dec 18 '20