How to resolve opencv multiple ver conflicts while building ORB-SLAM2?
Hi I am trying to check out orb2SLAM . When I try to build the package . I get the following error
/usr/bin/ld: warning: libopencv_core.so.4.3, needed by /home/shyam/AMR-II/catkin_ws/src/orb_slam_2_ros/orb_slam2/lib/liborb_slam2_ros.so, may conflict with libopencv_core.so.3.2
/usr/bin/ld: warning: libopencv_imgcodecs.so.3.2, needed by /opt/ros/melodic/lib/libcv_bridge.so, may conflict with libopencv_imgcodecs.so.4.3
[100%] Built target orb_slam2_ros_rgbd
/usr/bin/ld: warning: libopencv_core.so.4.3, needed by /home/shyam/AMR-II/catkin_ws/src/orb_slam_2_ros/orb_slam2/lib/liborb_slam2_ros.so, may conflict with libopencv_core.so.3.2
/usr/bin/ld: warning: libopencv_imgcodecs.so.3.2, needed by /opt/ros/melodic/lib/libcv_bridge.so, may conflict with libopencv_imgcodecs.so.4.3
How to resolve this conflict ?
Asked by Shiva_uchiha on 2020-08-25 07:12:05 UTC
Answers
Hi.
These are warning, not errors. Did you try to run Orbslam after built?
Asked by mirella melo on 2020-08-30 14:42:45 UTC
Comments
Hi! yes it worked . Those warnings didn't affect much .
Asked by Shiva_uchiha on 2020-08-31 08:10:36 UTC
A simple solution is to download a suitable version of vision_opencv from https://github.com/ros-perception/vision_opencv/releases. Then extract the contents (containing some packages cv_bridge
image_geometry
opencv_tests
vision_opencv
) to a folder called vision_opencv
of your src
folder in your catkin workspace.
Now catkin_make
or catkin build
your workspace and the necessary ros opencv packages will compile and link against the local vision_opencv
folder. You might need to clean your workspace before that.
Asked by aserbremen on 2021-06-10 04:04:03 UTC
Comments