ORB_SLAM2 icon indicating copy to clipboard operation
ORB_SLAM2 copied to clipboard

symbol lookup error: libORB_SLAM2.so, undefined symbol: _ZN5DBoW24FORB1LE

Open HayatoTajiri opened this issue 6 years ago • 13 comments

I can't run orb_slam2.

environment(環境)
Jetson nano
Ubuntu 18.04LTS
ROS melodic
opencv ver.3.3.1

I had used orb_slam2 on jetson nano with Ros melodic. However I haven't been able to use Orb_slam2 before installing Realsense r200 drivers(librealsense,realsense_camera,etc). Probably.

error content(エラー内容)

Using with Ros $ rosrun ORB_SLAM2 RGBD Vocabulary/ORBvoc.txt Examples/RGB-D/TUM1.yaml /opt/ros/melodic/share/ORB_SLAM2/RGBD: symbol lookup error: /home/hayato/orb_slam2_ws/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../lib/libORB_SLAM2.so: undefined symbol: _ZN5DBoW24FORB1LE Using without Ros $ ~/orb_slam2_ws/ORB_SLAM2/Examples/Monocular/mono_tum Vocabulary/ORBvoc.txt Examples/Monocular/TUM1.yaml /home/hayato/orb_slam2_ws/ORB_SLAM2/Examples/Monocular/mono_tum: symbol lookup error: /home/hayato/orb_slam2_ws/ORB_SLAM2/lib/libORB_SLAM2.so: undefined symbol: _ZN5DBoW24FORB1LE

I can't understand what causes. please tell me solutions,anyone. thanks.

HayatoTajiri avatar Oct 15 '19 16:10 HayatoTajiri

I can't run orb_slam2.

environment(環境) Jetson nano Ubuntu 18.04LTS ROS melodic opencv ver.3.3.1 I had used orb_slam2 on jetson nano with Ros melodic. However I haven't been able to use Orb_slam2 before installing Realsense r200 drivers(librealsense,realsense_camera,etc). Probably.

error content(エラー内容)

Using with Ros $ rosrun ORB_SLAM2 RGBD Vocabulary/ORBvoc.txt Examples/RGB-D/TUM1.yaml /opt/ros/melodic/share/ORB_SLAM2/RGBD: symbol lookup error: /home/hayato/orb_slam2_ws/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../lib/libORB_SLAM2.so: undefined symbol: _ZN5DBoW24FORB1LE Using without Ros $ ~/orb_slam2_ws/ORB_SLAM2/Examples/Monocular/mono_tum Vocabulary/ORBvoc.txt Examples/Monocular/TUM1.yaml /home/hayato/orb_slam2_ws/ORB_SLAM2/Examples/Monocular/mono_tum: symbol lookup error: /home/hayato/orb_slam2_ws/ORB_SLAM2/lib/libORB_SLAM2.so: undefined symbol: _ZN5DBoW24FORB1LE

I can't understand what causes. please tell me solutions,anyone. thanks.

hi,i have the same problem now,and did you have solved it?

mathuse avatar Nov 08 '19 03:11 mathuse

I have same problem, Please help us

FaikVural avatar Mar 09 '20 16:03 FaikVural

Hi. Finally, I could't solve it but, I formated SDcard and reinstalled ubuntu, so it is running.

HayatoTajiri avatar Mar 09 '20 17:03 HayatoTajiri

I also have the same problem, maybe the version problem of DBOW ? Waiting for the solution from "Big God (Chinese words)"...

SkylerGao avatar Sep 11 '20 03:09 SkylerGao

forgot to say... I met the problem in ORB-SLAM3

SkylerGao avatar Sep 11 '20 03:09 SkylerGao

I encountered the same issue with ORB_SLAM2. What solved the issue for me was moving ORB_SLAM2 to a different directory whch had not been built by catkin build. In my case, I had tried to add new packages to the workspace and build them with catkin_build. Undoing that solved the problem for me.

segozcan avatar Sep 15 '20 12:09 segozcan

Hi this is caused by repetitive installation of DBoW2 in my case. I searched for the DBoW2 in my computer and removed all files named DBoW2 under /usr/local and the problem was solved

wh200720041 avatar Mar 14 '21 12:03 wh200720041

Hi, I've tried that @wh200720041 and the error still persists for me. Any other recommendations? Thanks!

Viky397 avatar Mar 16 '21 19:03 Viky397

Hi, I've tried that @wh200720041 and the error still persists for me. Any other recommendations? Thanks!

Make sure all previous DBoW is removed, including DBoW folder and its related files under /usr/.

wh200720041 avatar Mar 17 '21 14:03 wh200720041

1、 ldd -r libORB_SLAM3.so find: libDBoW2.so => xxxxx/xxxxx/xxxxx/lib/libDBoW2.so remove this libDBoW2.so and make again, can solved this problem

================================== 2、/ORB_SLAM2/Thirdparty/DBoW2/CMakeLists.txt or /ORB_SLAM3/Thirdparty/DBoW2/CMakeLists.txt
from: add_library(DBoW2 SHARED ${SRCS_DBOW2} ${SRCS_DUTILS}) target_link_libraries(DBoW2 ${OpenCV_LIBS}) to: add_library(DBoW2_1 SHARED ${SRCS_DBOW2} ${SRCS_DUTILS}) target_link_libraries(DBoW2_1 ${OpenCV_LIBS})

then:open /ORB_SLAM2/CMakeLists.txt from: ${PROJECT_SOURCE_DIR}/Thirdparty/DBoW2/lib/libDBoW2.so to: ${PROJECT_SOURCE_DIR}/Thirdparty/DBoW2/lib/libDBoW2_1.so

https://blog.csdn.net/qq_35942419/article/details/117163042

dnaglucose avatar May 22 '21 08:05 dnaglucose

Hi this is caused by repetitive installation of DBoW2 in my case. I searched for the DBoW2 in my computer and removed all files named DBoW2 under /usr/local and the problem was solved

correct, DBoW2 is one of thirdparties, but I have installed one before

Shivelino avatar Aug 12 '22 10:08 Shivelino

Thank you very much.

---Original--- From: @.> Date: Fri, Aug 12, 2022 18:33 PM To: @.>; Cc: @.@.>; Subject: Re: [raulmur/ORB_SLAM2] symbol lookup error: libORB_SLAM2.so,undefined symbol: _ZN5DBoW24FORB1LE (#827)

Hi this is caused by repetitive installation of DBoW2 in my case. I searched for the DBoW2 in my computer and removed all files named DBoW2 under /usr/local and the problem was solved

correct, DBoW2 is one of thirdparties, but I have installed one before

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

mathuse avatar Aug 12 '22 12:08 mathuse

Hi this is caused by repetitive installation of DBoW2 in my case. I searched for the DBoW2 in my computer and removed all files named DBoW2 under /usr/local and the problem was solved

It works! Thx a lot~

tigerschweiger avatar Jan 09 '24 13:01 tigerschweiger