ros1 catkin_make 'cv_bridge' not found

在Ubuntu18.04中进行catkin_make构建代码失败,终端提示Project 'cv_bridge' specifies '/usr/include/opencv' as an include dir, which is not found.等报错信息

  • A:配置文件中的opencv路径与系统实际路径不相符。需使用sudo修改配置文件(路径为/opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake),系统实际opencv路径位于/usr/include/路径下。
posted on 2023-11-13 14:37  NLazyo  阅读(22)  评论(0编辑  收藏  举报