Open FabianFoss opened 4 months ago
Hi, I am using ROS2 humble on a Ubuntu 22.04. When i try to build the orbslam3 node, I get the following error:
$ colcon build --symlink-install --packages-select orbslam3 Starting >>> orbslam3 --- stderr: orbslam3 ~/repos/tello-ros2/libs/ORB_SLAM3/ ~/repos/tello-ros2/libs/ORB_SLAM3//include ~/repos/tello-ros2/libs/ORB_SLAM3//Thirdparty/DBoW2/DBoW2 /usr/bin/ld: warning: libopencv_imgcodecs.so.4.5d, needed by /opt/ros/humble/lib/libcv_bridge.so, may conflict with libopencv_imgcodecs.so.409 /usr/bin/ld: warning: libopencv_imgproc.so.4.5d, needed by /opt/ros/humble/lib/libcv_bridge.so, may conflict with libopencv_imgproc.so.409 /usr/bin/ld: warning: libopencv_core.so.4.5d, needed by /opt/ros/humble/lib/libcv_bridge.so, may conflict with libopencv_core.so.409 /usr/bin/ld: warning: libopencv_imgcodecs.so.4.5d, needed by /opt/ros/humble/lib/libcv_bridge.so, may conflict with libopencv_imgcodecs.so.409 /usr/bin/ld: warning: libopencv_imgproc.so.4.5d, needed by /opt/ros/humble/lib/libcv_bridge.so, may conflict with libopencv_imgproc.so.409 /usr/bin/ld: warning: libopencv_core.so.4.5d, needed by /opt/ros/humble/lib/libcv_bridge.so, may conflict with libopencv_core.so.409 /usr/bin/ld: CMakeFiles/stereo.dir/src/stereo/stereo-slam-node.cpp.o: undefined reference to symbol '_ZN2cv23initUndistortRectifyMapERKNS_11_InputArrayES2_S2_S2_NS_5Size_IiEEiRKNS_12_OutputArrayES7_' /usr/bin/ld: /usr/local/lib/libopencv_calib3d.so.409: error adding symbols: DSO missing from command line /usr/bin/ld: CMakeFiles/stereo-inertial.dir/src/stereo-inertial/stereo-inertial-node.cpp.o: undefined reference to symbol '_ZN2cv23initUndistortRectifyMapERKNS_11_InputArrayES2_S2_S2_NS_5Size_IiEEiRKNS_12_OutputArrayES7_' /usr/bin/ld: /usr/local/lib/libopencv_calib3d.so.409: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status gmake[2]: *** [CMakeFiles/stereo.dir/build.make:218: stereo] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:195: CMakeFiles/stereo.dir/all] Error 2 gmake[1]: *** Waiting for unfinished jobs.... collect2: error: ld returned 1 exit status gmake[2]: *** [CMakeFiles/stereo-inertial.dir/build.make:217: stereo-inertial] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:221: CMakeFiles/stereo-inertial.dir/all] Error 2 gmake: *** [Makefile:146: all] Error 2 --- Failed <<< orbslam3 [1.69s, exited with code 2] Summary: 0 packages finished [2.82s] 1 package failed: orbslam3 1 package had stderr output: orbslam3
I cannot find a good solution to this problem. Does anyone have a good fix for this?
Hey fabian, do you discover how fix that? I found the same error
Hi, I am using ROS2 humble on a Ubuntu 22.04. When i try to build the orbslam3 node, I get the following error:
I cannot find a good solution to this problem. Does anyone have a good fix for this?