Robotics StackExchange | Archived questions

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

CMake Error at /opt/ros/indigo/share/cvbridge/cmake/cvbridgeConfig.cmake:106 (message): Project 'cvbridge' 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 (findpackage) a3help/CMakeLists.txt:7 (findpackage)

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

Asked by Zaz on 2017-10-27 02:01:36 UTC

Comments

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).

Asked by gvdhoorn on 2017-10-27 02:08:27 UTC

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.

Asked by gvdhoorn on 2017-10-27 02:17:10 UTC

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 ?

Asked by Zaz on 2017-10-27 11:31:04 UTC

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

Asked by Ruben Alves on 2017-10-28 07:09:04 UTC

alrighty thank you all

Asked by Zaz on 2017-10-29 23:28:41 UTC

Answers