* Error message
CMake Error at /opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake:113 (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
'${{prefix}}//usr/include/opencv'. Check the issue tracker
'https://github.com/ros-perception/vision_opencv/issues' and consider
creating a ticket if the problem has not been reported yet.
* Solution
Path should be change manually
cd /opt/ros/melodic/share/cv_bridge/cmake
sudo gedit cv_bridgeConfig.cmake
inside the editor, change this line
# set(_include_dirs "include;/usr/include;/usr/include/opencv")
set(_include_dirs "include;/usr/include;/usr/include/opencv4")
* Reference
https://github.com/ros-perception/vision_opencv/issues/345
Project 'cv_bridge' can not find opencv · Issue #345 · ros-perception/vision_opencv
Hi, I am compiling https://github.com/thien94/vision_to_mavros. I have installed mavros and vision_opencv from apt command. However, Project 'cv_bridge' can not find opencv. CMake Error at /opt/ros...
github.com
'Libraries & Packages > ROS' 카테고리의 다른 글
| error /usr/lib/aarch64-linux-gnu/libopencv_objdetect.so.3.2.0 (0) | 2023.07.25 |
|---|---|
| fatal error: opencv2/core/core.hpp: No such file or directory (0) | 2023.06.01 |
| ROS2 install (0) | 2023.05.09 |
| [ROS] 다른 패키지에 정의된 custom message 파일 가져오는 방법 (0) | 2023.04.24 |
| undefined reference to `image_transport::ImageTransport::ImageTransport(ros::NodeHandle const&)' 해결 (0) | 2023.04.06 |