Jetson Nano安装ROS后cmake出现Project ‘cv_bridge‘ specifies ‘/usr/include/opencv‘ as an include dir

Jetson Nano安装ROS后cmake出现Project ‘cv_bridge‘ specifies ‘/usr/include/opencv‘ as an include dir, which is not found.解决方法

这是因为新版的NVIDIA Ubuntu系统自带的是OpenCV4版本,故我们需要手动将上述文件中的OpenCV修改即可:

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

把第96行的opencv改成opencv4即可,其他不需要修改。(若卸载自带的OpenCV4,重装为OpenCV3,则同样不会报错)

你可能感兴趣的:(SLAM参数标定,opencv,自动驾驶,ubuntu)