zoukankan      html  css  js  c++  java
  • 编译orb slam遇到的一些bug和错误解决方案

    1. error usleep not in this scope
      解决方案:在你报错的那些文件里面加上#include<unistd>
    /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFSetWarningHandler@LIBTIFF_4.0'
    //usr/lib/x86_64-linux-gnu/libSM.so.6: undefined reference to `uuid_unparse_lower@UUID_1.0'
    /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFSetErrorHandler@LIBTIFF_4.0'
    
    

    collect2: error: ld returned 1 exit status
    CMakeFiles/Makefile2:141: recipe for target ‘CMakeFiles/mono_tum.dir/all’ failed
    make[1]: *** [CMakeFiles/mono_tum.dir/all] Error 2
    CMakeFiles/rgbd_tum.dir/build.make:162: recipe for target ‘…/Examples/RGB-D/rgbd_tum’ failed
    make[2]: *** […/Examples/RGB-D/rgbd_tum] Error 1
    CMakeFiles/Makefile2:215: recipe for target ‘CMakeFiles/rgbd_tum.dir/all’ failed
    make[1]: *** [CMakeFiles/rgbd_tum.dir/all] Error 2
    Makefile:83: recipe for target ‘all’ failed
    make: *** [all] Error 2

    解决方案:
    在CmakeLists里面将find_page(opencv 版本号改成自己的)。怎么看版本?```pkg-config --modversion opencv```
    
    
  • 相关阅读:
    Linux学习
    官网地址
    Unsupported major.minor version 51.0
    获取select的option值
    网页中JS函数自动执行常用三种方法
    Python活力练习Day3
    时间复杂度的简单理解版本,非专业~~
    Python活力练习Day2
    Python活力练习Day1
    状压DP之LGTB 与序列
  • 原文地址:https://www.cnblogs.com/ailitao/p/11787509.html
Copyright © 2011-2022 走看看