Package build error, during ros kinetic installation in Rasbian buster.
I am building the ros kinetic on my rasbian buster myself. And at about 188th of 191 packages to build, i encountered an error with building of the rviz package. I'm using raspberry pi 4 B with 4 GB RAM, and a memory card of 32 GB.
I also tried a solution for the same problem, but it didn't work for me. Applying the below solution i encountered another problem building the "rospack" around 56 out of 191 packages. solution i tried: #q337927.
Console Error:
==> 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 also have the same problem.
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 ...(more)