編譯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```

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章