编译ros_darknet时出现Project ‘cv_bridge‘ not found 解决方法

在编译ros_darknet时遇到了图示问题
编译ros_darknet时出现Project ‘cv_bridge‘ not found 解决方法_第1张图片经排查在 /usr/include/路径下不存在opencv
故修改cmkae文件中路径

 sudo gedit  /opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake 

修改94行左右路径为/usr/local/include/opencv4
在这里插入图片描述
再次编译,编译通过

参考:https://stackoverflow.com/questions/37274190/how-to-link-opencv-to-ros-indigo-catkin-with-cmake-ubuntu-14-04

你可能感兴趣的:(ubuntu,opencv)