编译VINS_Mono报错: Project ‘cv_bridge‘ specifies ‘/usr/include/opencv‘ as an include dir, which is not f

2023-05-16

编译VINS_Mono报错: CMake Error at /opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake:113 Project ‘cv_bridge’ specifies ‘/usr/include/opencv’ as an include dir, which is not found.

  • 错误原因:编译时配置文件的路径下没有找到opencv
  • 解决办法:修改配置文件/opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake
set(_include_dirs "include;/usr/include;/usr/include/opencv")

改成自己的opencv所在路径,我的是

set(_include_dirs "include;/usr/include;/usr/local/include/opencv")

参考自https://github.com/ros-perception/vision_opencv/issues/345
关于VINS-Mono的完整编译过程,可以参考这位博主@猛龙过江ing的博客https://blog.csdn.net/weixin_38141453/article/details/100169126?spm=1001.2014.3001.5501

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

编译VINS_Mono报错: Project ‘cv_bridge‘ specifies ‘/usr/include/opencv‘ as an include dir, which is not f 的相关文章

随机推荐