当前位置:网站首页>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
)
解决
边栏推荐
- The article takes you to understand the security of Windows operating system and protect your computer from infringement
- ZUCC_编译语言原理与编译_实验08 语法分析 LR 分析
- longhorn安装与使用
- 13 -- 移除无效的括号
- How to implement approval function in Tekton
- Promise的使用場景
- List of Li Bai's 20 most classic poems
- 软件过程与项目管理期末复习与重点
- Markdown to realize text link jump
- MAYA重新拓布
猜你喜欢

For a detailed explanation of flex:1, flex:1

12--合并两个有序链表

ZUCC_ Principles of compiling language and compilation_ Experiment 04 language and grammar

ZUCC_编译语言原理与编译_实验04 语言与文法

一文带你了解Windows操作系统安全,保护自己的电脑不受侵害

根据网络上的视频的m3u8文件通过ffmpeg进行合成视频

2021-03-04 comp9021 class 6 notes

2021-03-04 COMP9021第六节课笔记

ZUCC_ Principles of compiling language and compilation_ Experiment 01 language analysis and introduction

Two methods of QT exporting PDF files
随机推荐
About the iframe anchor, the anchor is offset up and down, and the anchor has page display problems Srcdoc problem of iframe
Maya re deployment
Catégorie de prêt 5
[real estate opening online house selection, WiFi coverage temporary network] 500 people are connected to WiFi at the same time
Cloudbase database migration scheme
JUC personal simple notes
2021-06-24: find the length of the longest non repeating character substring in a string.
2022年制冷与空调设备运行操作上岗证题库及模拟考试
Export MySQL database to xxx SQL, set xxx The SQL file is imported into MySQL on the server. Project deployment.
A preliminary study of IO model
PAT 1157:校庆
2021-03-04 COMP9021第六节课笔记
【关于运维和网工的差别,一文说透】
ZUCC_编译语言原理与编译_实验02 FSharp OCaml语言
"Adobe international certification" Photoshop software, about drawing tutorial?
13 -- 移除无效的括号
JS scroll div scroll bar to bottom
Permission model DAC ACL RBAC ABAC
Question 4 - datepicker date selector, disabling two date selectors (start and end dates)
ZUCC_ Principles of compiling language and compilation_ Experiment 08 parsing LR parsing