uzh-rpg / rpg_svo_example

Example node to use the SVO Installation.
268 stars 103 forks source link

caktin build error (Docker) #76

Closed hamdaan19 closed 3 years ago

hamdaan19 commented 3 years ago

Hi everyone, I am currently using a docker container of ROS Kinetic to run this package. When run catkin build in the svo_install_overlay_ws directory I get the following error:

--------------------------------------------------------------------------
Profile:                     default
Extending:          [cached] /root/svo_install_ws/install:/opt/ros/kinetic
Workspace:                   /root/svo_install_overlay_ws
Source Space:       [exists] /root/svo_install_overlay_ws/src
Build Space:        [exists] /root/svo_install_overlay_ws/build
Devel Space:        [exists] /root/svo_install_overlay_ws/devel
Install Space:     [missing] /root/svo_install_overlay_ws/install
DESTDIR:                     None
--------------------------------------------------------------------------
Isolate Develspaces:         False
Install Packages:            False
Isolate Installs:            False
--------------------------------------------------------------------------
Additional CMake Args:       -DCMAKE_BUILD_TYPE=Release
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
--------------------------------------------------------------------------
Whitelisted Packages:        None
Blacklisted Packages:        None
--------------------------------------------------------------------------
Workspace configuration appears valid.
-------------------------------------------------------------------------- 
Found '1' packages in 0.0 seconds. 
Starting ==> svo_ros                                                                                                                                                                   

[svo_ros] ==> '/root/svo_install_overlay_ws/build/svo_ros/build_env.sh /usr/bin/cmake /root/svo_install_overlay_ws/src/rpg_svo_example/svo_ros -DCATKIN_DEVEL_PREFIX=/root/svo_install_overlay_ws/devel -DCMAKE_INSTALL_PREFIX=/root/svo_install_overlay_ws/install -DCMAKE_BUILD_TYPE=Release' in '/root/svo_install_overlay_ws/build/svo_ros'
-- Using CATKIN_DEVEL_PREFIX: /root/svo_install_overlay_ws/devel
-- Using CMAKE_PREFIX_PATH: /root/svo_install_overlay_ws/devel;/root/svo_install_ws/install;/opt/ros/kinetic
-- This workspace overlays: /root/svo_install_overlay_ws/devel;/root/svo_install_ws/install;/opt/ros/kinetic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.12", minimum required is "2") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /root/svo_install_overlay_ws/build/svo_ros/test_results
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.12") 
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.29
-- BUILD_SHARED_LIBS is on
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Error at /root/svo_install_ws/install/share/vikit_common/cmake/vikit_commonConfig.cmake:172 (find_package):
  Could not find a package configuration file provided by "cv_bridge" with
  any of the following names:

    cv_bridgeConfig.cmake
    cv_bridge-config.cmake

  Add the installation prefix of "cv_bridge" to CMAKE_PREFIX_PATH or set
  "cv_bridge_DIR" to a directory containing one of the above files.  If
  "cv_bridge" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  /root/svo_install_ws/install/share/svo_common/cmake/svo_commonConfig.cmake:172 (find_package)
  /root/svo_install_ws/install/share/svo/cmake/svoConfig.cmake:172 (find_package)
  /root/svo_install_ws/install/share/catkin_simple/cmake/catkin_simple-extras.cmake:40 (find_package)
  CMakeLists.txt:5 (catkin_simple)

-- Configuring incomplete, errors occurred!
See also "/root/svo_install_overlay_ws/build/svo_ros/CMakeFiles/CMakeOutput.log".
See also "/root/svo_install_overlay_ws/build/svo_ros/CMakeFiles/CMakeError.log".
[svo_ros] <== '/root/svo_install_overlay_ws/build/svo_ros/build_env.sh /usr/bin/cmake /root/svo_install_overlay_ws/src/rpg_svo_example/svo_ros -DCATKIN_DEVEL_PREFIX=/root/svo_install_overlay_ws/devel -DCMAKE_INSTALL_PREFIX=/root/svo_install_overlay_ws/install -DCMAKE_BUILD_TYPE=Release' failed with return code '1'

Failed   <== svo_ros [ 0.7 seconds ]                                                                                                                                                   
[build] There were '1' errors:                                                                                                                                                         

Failed to build package 'svo_ros' because the following command:

# Command to reproduce:
cd /root/svo_install_overlay_ws/build/svo_ros && /root/svo_install_overlay_ws/build/svo_ros/build_env.sh /usr/bin/cmake /root/svo_install_overlay_ws/src/rpg_svo_example/svo_ros -DCATKIN_DEVEL_PREFIX=/root/svo_install_overlay_ws/devel -DCMAKE_INSTALL_PREFIX=/root/svo_install_overlay_ws/install -DCMAKE_BUILD_TYPE=Release; cd -

# Path to log:
cat /root/svo_install_overlay_ws/build/build_logs/svo_ros.log

Exited with return code: 1 

[build] Runtime: 0.8 seconds 

Can anyone please help me out?

hamdaan19 commented 3 years ago

Hey guys, I resolved the issue. Apparently a few packages were missing so I had to install them using the following commands.

$ sudo apt-get install ros-kinetic-pcl-ros
$ sudo apt install ros-kinetic-image-transport
$ sudo apt-get install libyaml-cpp-dev
$ sudo apt-get install ros-kinetic-cv-bridge

After installing the above packages, follow the install instructions from scratch as given in install.pdf.