Project ‘cv_bridge‘ specifies ‘/usr/include/opencv‘ as an include dir, which is not found.的解决方法

在学习jetson nano 2G时,在编译ROS的package时可能会出现cmake的错误:
Project ‘cv_bridge’ specifies ‘/usr/include/opencv’ as an include dir, which is not found.

Project ‘cv_bridge‘ specifies ‘/usr/include/opencv‘ as an include dir, which is not found.的解决方法_第1张图片

 

这不是因为我们编写的程序有误,而是NVIDIA的32.3.1image自带的是opencv4版本,把opencv命名成了opencv4

修改方法:只需修改上述路径中的cv_bridgeconfig.cmke文件,将100行附近的两个opencv改成opencv4即可(注意,只需要改动单独一个的opencv,前面有连字符的opencv不需要改动)

注意:如果jetson nano的版本自带的opencv是3版本,可能不会出现此问题
 

你可能感兴趣的:(opencv,elasticsearch,自动驾驶)