ros-simulation / gazebo_ros_pkgs

Wrappers, tools and additional API's for using ROS with Gazebo
http://wiki.ros.org/gazebo_ros_pkgs
753 stars 770 forks source link

CMake error for cv-bridge #1177

Open abulnk opened 3 years ago

abulnk commented 3 years ago

Describe your issue here and explain how to reproduce it.

I am trying to install Gazebo _ros_packages on Jetson Nano in the catkin workspace. When I run catkin_make it fails.

Here are the steps: $ cd ~/workspace/catkin_ws/src $ git clone -b melodic-devel https://github.com/ros-simulation/gazebo_ros_pkgs.git $ cd .. $ catkin_make

<messages removed>
......
-- FreeImage.pc not found, we will search for FreeImage_INCLUDE_DIRS and FreeImage_LIBRARIES
-- Checking for module 'gts'
--   Found gts, version 0.7.6
-- Checking for module 'libswscale'
--   Found libswscale, version 4.8.100
-- Checking for module 'libavdevice >= 56.4.100'
--   Found libavdevice , version 57.10.100
-- Checking for module 'libavformat'
--   Found libavformat, version 57.83.100
-- Checking for module 'libavcodec'
--   Found libavcodec, version 57.107.100
-- Checking for module 'libavutil'
--   Found libavutil, version 55.78.100
-- Checking for module 'jsoncpp'
--   Found jsoncpp, version 1.7.4
-- Checking for module 'yaml-0.1'
--   Found yaml-0.1, version 0.1.7
-- Checking for module 'libzip'
--   Found libzip, version 1.1.2
-- Gazebo version: 9.0
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Error at /opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake:113 (message):
  **Project 'cv_bridge' specifies '/usr/include/opencv' as an include dir,
  which is not found.  It does neither exist as an absolute directory nor in
  '${{prefix}}//usr/include/opencv'.**  Check the issue tracker
  'https://github.com/ros-perception/vision_opencv/issues' and consider
  creating a ticket if the problem has not been reported yet.
Call Stack (most recent call first):
  /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
  gazebo_ros_pkgs/gazebo_plugins/CMakeLists.txt:6 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/jetbot/workspace/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/jetbot/workspace/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:852: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

Environment (please complete the following information):

Additional context

It appears, it wants opencv but Jetson nano image has Opencv 4. Any advice will be appreciated.

chapulina commented 3 years ago

You may get better help at https://github.com/ros-perception/vision_opencv