When using ROS catkin_make
, it show the ERROR:
CMake Error at /opt/ros/melodic/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.
What is cv_bridge?
cv_bridge converts between ROS Image messages and OpenCV images.
Solution
sudo apt install ros-melodic-cv-bridge
rather than
sudo apt install libcv-bridge-dev