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
Originally posted by ROSkinect on ROS Answers with karma: 751 on 2017-10-03
Post score: 0
Original comments
Comment by gvdhoorn on 2017-10-03:\
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.
Comment by ROSkinect on 2017-10-03:
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