ORB_SLAM2中的小BUG

c++: internal compiler error: 已杀死 (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
CMakeFiles/stereo_euroc.dir/build.make:62: recipe for target 'CMakeFiles/stereo_euroc.dir/Examples/Stereo/stereo_euroc.cc.o' failed
make[2]: *** [CMakeFiles/stereo_euroc.dir/Examples/Stereo/stereo_euroc.cc.o] Error 4
CMakeFiles/Makefile2:289: recipe for target 'CMakeFiles/stereo_euroc.dir/all' failed
make[1]: *** [CMakeFiles/stereo_euroc.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
c++: internal compiler error: 已杀死 (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
CMakeFiles/rgbd_tum.dir/build.make:62: recipe for target 'CMakeFiles/rgbd_tum.dir/Examples/RGB-D/rgbd_tum.cc.o' failed
make[2]: *** [CMakeFiles/rgbd_tum.dir/Examples/RGB-D/rgbd_tum.cc.o] Error 4
CMakeFiles/Makefile2:215: recipe for target 'CMakeFiles/rgbd_tum.dir/all' failed
make[1]: *** [CMakeFiles/rgbd_tum.dir/all] Error 2
 

开始以为是路径或者依赖库的问题,原来是opencv的版本问题。在ORB_SLAM2文件下的CMakeLists.txt文件中

find_package(OpenCV 3 QUIET)
if(NOT OpenCV_FOUND)
   find_package(OpenCV 2.4.3 QUIET)
   if(NOT OpenCV_FOUND)
      message(FATAL_ERROR "OpenCV > 2.4.3 not found.")
   endif()
endif()

原来是这样写的,但是因为我的opencv版本是3.2.0,所以它opencv3这个版本找不到。把第一个find_package(OpenCV 3 QUIET)改成find_package(OpenCV 3.2.0 QUIET)就可以了

最后收集了几个BUG的博客,感谢他们的改错成果。

https://blog.csdn.net/Operaboss/article/details/81632234

http://www.mamicode.com/info-detail-1773781.html

https://blog.csdn.net/zhang_danf/article/details/52931455

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值