Skip to content

Ubuntu18.04下编译orbslam3报错 #969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DAVE-WS924 opened this issue Apr 23, 2025 · 0 comments
Open

Ubuntu18.04下编译orbslam3报错 #969

DAVE-WS924 opened this issue Apr 23, 2025 · 0 comments

Comments

@DAVE-WS924
Copy link

运行./build.shj出现报错,有realsense库也链接了,删除build重新编译,但还是报错。
CMakeFiles/mono_inertial_realsense_D435i_old.dir/Examples_old/Monocular-Inertial/mono_inertial_realsense_D435i.cc.o:在函数‘rs2::context::context(char const*)’中:
mono_inertial_realsense_D435i.cc:(.text._ZN3rs27contextC2EPKc[_ZN3rs27contextC5EPKc]+0x3b):对‘rs2_create_context_ex’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/mono_inertial_realsense_D435i_old.dir/build.make:168: recipe for target '../Examples_old/Monocular-Inertial/mono_inertial_realsense_D435i_old' failed
make[2]: *** [../Examples_old/Monocular-Inertial/mono_inertial_realsense_D435i_old] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/mono_inertial_realsense_D435i_old.dir/all' failed
make[1]: *** [CMakeFiles/mono_inertial_realsense_D435i_old.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
CMakeFiles/mono_realsense_t265_old.dir/Examples_old/Monocular/mono_realsense_t265.cc.o:在函数‘rs2::context::context(char const*)’中:
mono_realsense_t265.cc:(.text._ZN3rs27contextC2EPKc[_ZN3rs27contextC5EPKc]+0x4a):对‘rs2_create_context_ex’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/mono_realsense_t265_old.dir/build.make:168: recipe for target '../Examples_old/Monocular/mono_realsense_t265_old' failed
make[2]: *** [../Examples_old/Monocular/mono_realsense_t265_old] Error 1
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/mono_realsense_t265_old.dir/all' failed
make[1]: *** [CMakeFiles/mono_realsense_t265_old.dir/all] Error 2
CMakeFiles/stereo_inertial_realsense_t265_old.dir/Examples_old/Stereo-Inertial/stereo_inertial_realsense_t265.cc.o:在函数‘rs2::context::context(char const*)’中:
stereo_inertial_realsense_t265.cc:(.text._ZN3rs27contextC2EPKc[_ZN3rs27contextC5EPKc]+0x3b):对‘rs2_create_context_ex’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/stereo_inertial_realsense_t265_old.dir/build.make:168: recipe for target '../Examples_old/Stereo-Inertial/stereo_inertial_realsense_t265_old' failed
make[2]: *** [../Examples_old/Stereo-Inertial/stereo_inertial_realsense_t265_old] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/stereo_inertial_realsense_t265_old.dir/all' failed
make[1]: *** [CMakeFiles/stereo_inertial_realsense_t265_old.dir/all] Error 2
CMakeFiles/mono_realsense_D435i_old.dir/Examples_old/Monocular/mono_realsense_D435i.cc.o:在函数‘rs2::context::context(char const*)’中:
mono_realsense_D435i.cc:(.text._ZN3rs27contextC2EPKc[_ZN3rs27contextC5EPKc]+0x3b):对‘rs2_create_context_ex’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/mono_realsense_D435i_old.dir/build.make:168: recipe for target '../Examples_old/Monocular/mono_realsense_D435i_old' failed
make[2]: *** [../Examples_old/Monocular/mono_realsense_D435i_old] Error 1
CMakeFiles/Makefile2:178: recipe for target 'CMakeFiles/mono_realsense_D435i_old.dir/all' failed
make[1]: *** [CMakeFiles/mono_realsense_D435i_old.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant