当前位置:网站首页>orb slam build bug: undefined reference to symbol ‘_ZN5boost6system15system_categoryEv‘
orb slam build bug: undefined reference to symbol ‘_ZN5boost6system15system_categoryEv‘
2022-06-24 07:01:00 【蓝羽飞鸟】
build_ros.sh时遇到如下错误:
/usr/bin/ld: CMakeFiles/RGBD.dir/src/ros_rgbd.cc.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
/usr/lib/x86_64-linux-gnu/libboost_system.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/RGBD.dir/build.make:220: recipe for target '../RGBD' failed
make[2]: *** [../RGBD] Error 1
CMakeFiles/Makefile2:709: recipe for target 'CMakeFiles/RGBD.dir/all' failed
make[1]: *** [CMakeFiles/RGBD.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
把ORB_SLAM2/Examples/ROS/ORB_SLAM2下的CmakeLists.txt作如下修改:
在LIBS中加上-lboost_system
set(LIBS
${OpenCV_LIBS}
${EIGEN3_LIBS}
${Pangolin_LIBRARIES}
${PROJECT_SOURCE_DIR}/../../../Thirdparty/DBoW2/lib/libDBoW2.so
${PROJECT_SOURCE_DIR}/../../../Thirdparty/g2o/lib/libg2o.so
${PROJECT_SOURCE_DIR}/../../../lib/libORB_SLAM2.so
-lboost_system #added
)
解决
边栏推荐
- 5分钟,客服聊天处理技巧,炉火纯青
- Rust procedure macro simply imitates Lombok function
- Robot acceleration level task priority inverse kinematics
- How to implement approval function in Tekton
- Maya re deployment
- 11-- longest substring without repeated characters
- Use cpulimit to free up your CPU
- [untitled]
- ZUCC_编译语言原理与编译_实验08 语法分析 LR 分析
- "Wechat cloud hosting" first practical battle | introduction to minimalist demo
猜你喜欢

2021-03-16 COMP9021第九节课笔记

ZUCC_ Principles of compiling language and compilation_ Experiment 02 fsharp Ocaml language

MAYA重新拓布

Redis的Cluster集群数据倾斜

Understanding of the concept of "quality"

【无标题】

2022 mobile crane driver special operation certificate examination question bank and online simulation examination

New technology practice, encapsulating the permission application library step by step with the activity results API

2022年流动式起重机司机特种作业证考试题库及在线模拟考试

2022年制冷与空调设备运行操作上岗证题库及模拟考试
随机推荐
Introduction to NC machine tool programming [G-code]
Synthesize video through ffmpeg according to m3u8 file of video on the network
IIS build wordpress5.7 manually
Three categories of financial assets under the new standards: AMC, fvoci and FVTPL
贷款五级分类
Getting started with ffmpeg
ZUCC_ Principles of compiling language and compilation_ Experiment 01 language analysis and introduction
The JS macro of WPS implements the separation method of picture text in the same paragraph
JS scroll div scroll bar to bottom
"Adobe international certification" Photoshop software, about drawing tutorial?
2021-03-04 COMP9021第六节课笔记
Markdown 实现文内链接跳转
Promise usage scenarios
The reason why the qtimer timer does not work
Promise的使用場景
问题3 — messageBox弹框,修改默认背景色
Robot acceleration level task priority inverse kinematics
2021-03-16 COMP9021第九节课笔记
1279_ Vsock installation failure resolution when VMware player installs VMware Tools
SQL intra statement operation