在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/
路径下。