No package 'OGRE', 'OGRE-Overlay' found: ROS/kinetic/RPi
Hi, Please help me to resolve this issue while setting up ROS on RPi3 (buster).
error log:
==> Processing catkin package: 'rviz'
==> Building with env: '/opt/ros/kinetic/env.sh'
==> cmake /home/pi/ros_catkin_ws/src/rviz -DCATKIN_DEVEL_PREFIX=/home/pi/ros_catkin_ws/devel_isolated/rviz -DCMAKE_INSTALL_PREFIX=/opt/ros/kinetic -DCMAKE_BUILD_TYPE=Release -G Unix Makefiles in '/home/pi/ros_catkin_ws/build_isolated/rviz'
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- filesystem
-- program_options
-- signals
-- system
-- thread
-- chrono
-- date_time
-- atomic
-- Assimp version has unified headers
-- Checking for modules 'OGRE;OGRE-Overlay'
-- No package 'OGRE' found
-- No package 'OGRE-Overlay' found
-- Checking for module 'OGRE'
-- No package 'OGRE' found
CMake Error at /usr/share/cmake-3.13/Modules/FindPkgConfig.cmake:452 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.13/Modules/FindPkgConfig.cmake:622 (_pkg_check_modules_internal)
CMakeLists.txt:53 (pkg_check_modules)
-- Configuring incomplete, errors occurred!
See also "/home/pi/ros_catkin_ws/build_isolated/rviz/CMakeFiles/CMakeOutput.log".
See also "/home/pi/ros_catkin_ws/build_isolated/rviz/CMakeFiles/CMakeError.log".
<== Failed to process package 'rviz':
Command '['/opt/ros/kinetic/env.sh', 'cmake', '/home/pi/ros_catkin_ws/src/rviz', '-DCATKIN_DEVEL_PREFIX=/home/pi/ros_catkin_ws/devel_isolated/rviz', '-DCMAKE_INSTALL_PREFIX=/opt/ros/kinetic', '-DCMAKE_BUILD_TYPE=Release', '-G', 'Unix Makefiles']' returned non-zero exit status 1
Reproduce this error by running:
==> cd /home/pi/ros_catkin_ws/build_isolated/rviz && /opt/ros/kinetic/env.sh cmake /home/pi/ros_catkin_ws/src/rviz -DCATKIN_DEVEL_PREFIX=/home/pi/ros_catkin_ws/devel_isolated/rviz -DCMAKE_INSTALL_PREFIX=/opt/ros/kinetic -DCMAKE_BUILD_TYPE=Release -G 'Unix Makefiles'
Command failed, exiting.
I had followed this tutorial step by step.
spent lot of time in searching the solution for this issue, couldn't find the proper solution.
Please help.
Asked by Ashkr on 2019-11-19 00:30:13 UTC
Answers
Since I tried a lot to find the solution of the error i was facing....failed to find any! :(
Finally i reviewed the error in detail and make suitable installation further....
hope this helps some how. For me it works...
for rviz,OGRE Not Found error:
sudo aptitude install libboost-thread-dev (YES)
sudo apt-get install libogre-1.9-dev ogre-1.9-doc ogre-1.9-tools (YES)
Thanks!
Asked by Ashkr on 2019-11-21 19:18:29 UTC
Comments
Applying the solution you recommended i got an error building the rospack in 56th out of 191 packages. I don't know, but it seems libogre-1.9-dev is for ros melodic while i am trying to build ros-kinetic. Still unable to use the ros platform in raspberry pi. Please help!
Asked by subash on 2020-03-11 22:13:58 UTC
you did'nt build ogre with freetype lib. so is why overlay and terrain components missing
Asked by waranmt on 2020-12-19 12:32:31 UTC
The problem with running the above command is that when you install libboost-thread-dev it comes up with more missing packages. Till all is said and done it installs the updated version libboost1.67-dev. The ROS Kinetic install requires libboost1.58 which is removed in the process. Then you will go around in circles trying to fix the problems this creates. I do not know how to accomplish installing OGRE without v-1.67 of libboost. I have searched for weeks. Hopefully someone else does.
Asked by Face on 2020-07-27 09:26:40 UTC
Comments
After a lot of searching and experimenting I have found that after (only after) is fails for OGRE do this:
$ cd ~/ros_catkin_ws [should already be here]
$ sudo apt-get install -y libboost1.67-dev
$ sudo apt-get install -y libogre-1.9-dev
$ source /opt/ros/kinetic/setup.bash
$ rosdep update
$ sudo apt-get install -y libkml-dev
$ sudo apt-get install -y libgdal-dev
$ sudo -H apt-get install -y libvtk6-qt-dev
$ rosdep install --from-paths src --ignore-src --rosdistro kinetic -y
$ sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic
Now it will install all 191. Is this good bad or indifferent? I don't know. I'm also new to this. I lost all my logs so I don't know who to thank for all the advice I have read over the last month or two. If you recognize your work, Thank You for posting advice.
Maybe some one can run this and tell me if it is actually good or if I have simply just made it pass?
Asked by Face on 2020-08-07 10:06:13 UTC
I followed a tutorial and it works for me! The turorial is in another language though^^
For your convenience, the main procedure is :
Install the dependency by
sudo apt install build-essential automake libtool libfreetype6-dev libfreeimage-dev libzzip-dev libxrandr-dev libxaw7-dev freeglut3-dev libgl1-mesa-dev libglu1-mesa-dev libpoco-dev libtbb-dev doxygen libcppunit-dev
Download orge v1.8 source code and complie.
$ cd ogre
$ mkdir build && cd build
$ cmake ..
$ make
$ sudo make install
If you are using gcc-8 you might need to set to former version using:
cmake -DCMAKE_CXX_FLAGS="--std=gnu++98" ..
Solutions to other installation errors for Kinetic on pi 4 could be available in the same tutorial.
Asked by manmachine_x on 2020-10-13 07:22:42 UTC
Comments
Thank you! that worked for me on Raspberry Pi 4 with Raspbian Buster. However when I try to run rviz it generates
error while loading shared libraries: libOgreMain.so.1.8.1: cannot open shared object file: No such file or directory
so I had must installed ORGE in the wrong place
EDIT: seems like running "sudo apt-get update" installations solved it
Asked by Sokuya on 2021-10-21 12:23:08 UTC
Comments
Similar problem occured with me but it didn't work for me. After doing this i encountered error in rospack build error. My Query: https://answers.ros.org/question/346306/package-build-error-during-ros-kinetic-installation-in-rasbian-buster/
Asked by subash on 2020-03-11 02:56:22 UTC