Ask Your Question
0

Could not find a package configuration file provided by "cv_bridge"

asked 2017-10-03 04:23:47 -0500

ROSkinect gravatar image

I created my catkin package like so:

 catkin_create_pkg dcp_processing sensor_msgs cv_bridge roscpp std_msgs image_transport

I don't edit anything, then I compile the package:

catkin_make

I get that error the cv_bridge is missing. I didn't add or edit anything in the package so everything is by default as it is created with catkin_create_pkg.

I'm using Ubuntu 16.04 Kinetic ROS Distribution.

CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (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):   dcp_processing/CMakeLists.txt:10 (find_package)


-- Could not find the required component 'cv_bridge'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (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):   dcp_processing/CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred! See also "/home/jaouadros/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/jaouadros/catkin_ws/build/CMakeFiles/CMakeError.log". Makefile:640: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1
edit retag flag offensive close merge delete

Comments

I get that error the cv_bridge is missing.

well, is it? Do you have ros-kinetic-cv-bridge installed? What is the output of rospack find cv_bridge?

Adding it to your package as a dependency does not automatigically make it available.

gvdhoorn gravatar image gvdhoorn  ( 2017-10-03 04:43:41 -0500 )edit

Yes I know but I did install ros full version so as I don't miss any package. I get [rospack] Error: package 'cv_bridge' not found

ROSkinect gravatar image ROSkinect  ( 2017-10-03 04:47:08 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-10-03 04:52:08 -0500

gvdhoorn gravatar image

updated 2017-10-03 04:54:14 -0500

Yes I know but I did install ros full version so as I don't miss any package.

Installing ros-$distro-desktop-full does not result in all packages getting installed. The various metapackages provide you with a convenient way to install a select set of them, but definitely not all. See REP-142: ROS Indigo and Newer Metapackages - Desktop variants.

I get

[rospack] Error: package 'cv_bridge' not found

That would seem to indicate that cv_bridge is not installed on your machine. Check with dpkg -l | grep cv-bridge. If that also doesn't result in cv_bridge being found, then install it with (on Ubuntu):

sudo apt-get install ros-kinetic-cv-bridge

and try again.


Edit: cv_bridge should be installed as part of vision_opencv which is (through perception) part of desktop_full, so not having cv_bridge would be strange if you did in fact install desktop_full.

edit flag offensive delete link more

Comments

dpkg -l | grep cv-bridge doesn't result anything so it is not installed. I just installed it and it works. Thanks! I want to know why it didn't get installed the first time when I installed ROS? usually I don't need to installed cv_bridge separately.

ROSkinect gravatar image ROSkinect  ( 2017-10-03 04:56:52 -0500 )edit

I don't know why it didn't get installed. What is the output of dpkg -l | grep desktop-full?

gvdhoorn gravatar image gvdhoorn  ( 2017-10-03 05:01:26 -0500 )edit

It doesn't show anything just like with dpkg -l | grep cv-bridge

ROSkinect gravatar image ROSkinect  ( 2017-10-03 05:05:11 -0500 )edit

Then I guess you didn't "install ros full version" as you claimed earlier. Only ros-kinetic-desktop-full would install cv_bridge automatically.

gvdhoorn gravatar image gvdhoorn  ( 2017-10-03 05:10:01 -0500 )edit

I just checked with this: grep ros-kinetic ~/.bash_history I found that I launched sudo apt-get install ros-kinetic-desktop-full

ROSkinect gravatar image ROSkinect  ( 2017-10-03 05:15:14 -0500 )edit
1

According to everything I can find and verify desktop_full should install cv_bridge, so I'm not sure what happened.

You could see whether /var/log/apt/history.log or /var/log/apt/term.log contains anything that can shed some light.

gvdhoorn gravatar image gvdhoorn  ( 2017-10-03 06:05:15 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-10-03 04:23:47 -0500

Seen: 10,273 times

Last updated: Oct 03 '17