ros-perception / vision_opencv

Apache License 2.0
536 stars 599 forks source link

CMake Error at /opt/ros/noetic/share/cv_bridge/cmake/cv_bridgeConfig.cmake:113 #510

Closed yawogit closed 1 year ago

yawogit commented 1 year ago

Hi everybody! When building ros project with catkin_make, I get the following error CMake Error at /opt/ros/noetic/share/cv_bridge/cmake/cv_bridgeConfig.cmake:113 (message): Project 'cv_bridge' specifies '/usr/include/opencv4' as an include dir, which is not found. It does neither exist as an absolute directory nor in '${{prefix}}//usr/include/opencv4'.

yawogit commented 1 year ago

I find the solution. This concern opencv include files mistakenly delete from /usr/include. So, I find this command which allow me to recover them : sudo apt-get install --reinstall \ $(dpkg -S /usr/include/ | sed "s/,//g" | sed "s|: /usr/include||")