欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

slam14讲第13讲问题解决

程序员文章站 2022-06-24 18:32:23
[ 82%] Linking CXX shared library …/…/lib/libmyslam.so/usr/bin/ld: 找不到 -lglutcollect2: error: ld returned 1 exit statussrc/CMakeFiles/myslam.dir/build.make:510: recipe for target ‘…/lib/libmyslam.so’ failedmake[3]: *** […/lib/libmyslam.so] Error 1CMak...

[ 82%] Linking CXX shared library …/…/lib/libmyslam.so
/usr/bin/ld: 找不到 -lglut
collect2: error: ld returned 1 exit status
src/CMakeFiles/myslam.dir/build.make:510: recipe for target ‘…/lib/libmyslam.so’ failed
make[3]: *** […/lib/libmyslam.so] Error 1
CMakeFiles/Makefile2:85: recipe for target ‘src/CMakeFiles/myslam.dir/all’ failed
make[2]: *** [src/CMakeFiles/myslam.dir/all] Error 2
CMakeFiles/Makefile2:152: recipe for target ‘app/CMakeFiles/run_kitti_stereo.dir/rule’ failed
make[1]: *** [app/CMakeFiles/run_kitti_stereo.dir/rule] Error 2
Makefile:142: recipe for target ‘run_kitti_stereo’ failed
make: *** [run_kitti_stereo] Error 2

:解决方法 缺少依赖库
sudo apt-get install freeglut3-dev

本文地址:https://blog.csdn.net/lalsd/article/details/110261220