cv_bridge2 cmake error "Project 'cv_bridge' specifies '/usr/include/opencv' as an include dir, which is not found." Solution * 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.. 2023. 5. 26. fatal error: opencv2/opencv.hpp: No such file or directory 에러 해결 * 원인 OpenCV 패키지가 추가되지 않음 * 환경 - Ubuntu 20.04 - ROS Noetic - OpenCV 4.7.0 * 해결방법 CMakeLists.txt 파일에 다음 내용 추가 find_package(cv_bridge) * 만약 안 될 경우 다음 내용들도 추가 find_package(OpenCV REQUIRED) include_directories( # YOUR INCLUDE_DIR ${OpenCV_INCLUDE_DIRS} ) target_link_libraries([YOUR EXECUTABLE TARGET] # YOUR LIBRARIES ${OpenCV_libraries} ) * Reference https://stackoverflow.com/questions/63455427/fatal.. 2023. 4. 6. 이전 1 다음