在数字化转型中,选择合适的跨平台开发框架不仅能提高效率,还有助于确保数据安全与合规性。
1305
2022-11-23
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小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~