编译orbslam遇到的⼀些bug和错误解决⽅案1. error usleep not in this scope
解决⽅案:在你报错的那些⽂件⾥⾯加上#include<unistd>
2.
/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
解决⽅案:
parse error怎么解决在CmakeLists⾥⾯将find_page(opencv 版本号改成⾃⼰的)。怎么看版本?```pkg-config --modversion opencv```
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论