Why can't I build my package? I get this error with cv_bridge. I don't understand myself. Im using ROS Indigo, OpenCV 3.3.1 and using a dual boot not VM machine

asked 2017-10-27 02:01:36 -0500

Zaz gravatar image

CMake Error at /opt/ros/indigo/share/cv_bridge/cmake/cv_bridgeConfig.cmake:106 (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 '/opt/ros/indigo//usr/include/opencv'. Ask the maintainer 'Vincent Rabaud vincent.rabaud@gmail.com' to fix it. Call Stack (most recent call first): /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:76 (find_package) a3_help/CMakeLists.txt:7 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/zaz/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/zaz/catkin_ws/build/CMakeFiles/CMakeError.log". make: * [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed

edit retag flag offensive close merge delete

Comments

1

Please format your question properly: a short and to the point title, a description of the problem in the body and any console text or program output formatted using the Preformatted Text button (the one with 101010 on it).

gvdhoorn gravatar imagegvdhoorn ( 2017-10-27 02:08:27 -0500 )edit
1

Afaik, ROS Indigo is built for/with OpenCV 2, not 3. Did you build OpenCV 3 from source? If so, you'll have to build all the vision_opencv packages from source as well.

gvdhoorn gravatar imagegvdhoorn ( 2017-10-27 02:17:10 -0500 )edit

Im sorry for the format. This is my first time using this forum. How do you build the vision_opencv? go back to my opencv folder ?

Zaz gravatar imageZaz ( 2017-10-27 11:31:04 -0500 )edit
1

To build vision_opencv from source, you will have to download the code and compile it on your ~/catkin_ws/src. Something like:

cd ~/catkin_ws/src
git clone https://github.com/ros-perception/vision_opencv
cd ~/catkin_ws
catkin_make
source devel/setup.bash
Ruben Alves gravatar imageRuben Alves ( 2017-10-28 07:09:04 -0500 )edit
1

alrighty thank you all

Zaz gravatar imageZaz ( 2017-10-29 23:28:41 -0500 )edit