Project ‘cv_bridge‘ specifies ‘/usr/include/opencv4‘ as an include dir,which is not found

Project ‘cv_bridge’ specifies ‘/usr/include/opencv4’ as an include dir,which is not found

Project ‘cv_bridge‘ specifies ‘/usr/include/opencv4‘ as an include dir,which is not found_第1张图片
由于找不到OpenCV4而导致编译失败,解决方法:

先查看/usr/include/下有没有opencv相关文件,若没有则查看/usr/local/include/下有没有opencv4文件,如果有则复制到/usr/include/下

sudo cp -r /usr/local/include/opencv4 /usr/include/opencv4

重新编译即可

你可能感兴趣的:(ros,roslyn,opencv)