ROS编译时报错Project ‘cv_bridge‘ specifies ‘/usr/include/opencv‘ as an include dir, which is not found.

网友投稿 1305 2022-11-23

ROS编译时报错Project ‘cv_bridge‘ specifies ‘/usr/include/opencv‘ as an include dir, which is not found.

ROS编译时报错Project ‘cv_bridge‘ specifies ‘/usr/include/opencv‘ as an include dir, which is not found.

使用catkin_make编译ROS代码时报错如下:

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 ‘and consider creating a ticket if the problem has not been reported yet.

然后打开报错中提示的文件​​/opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake​​​,在其中搜索​​/usr/include/opencv​​​,并用自己的路径​​/usr/include/opencv4/opencv2​​替换,如下:

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:云原生数据库是未来数据库的天下
下一篇:cuda编程入门(2)—— 浅谈核函数
相关文章

 发表评论

暂时没有评论,来抢沙发吧~