ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to resolve opencv multiple ver conflicts while building ORB-SLAM2?

asked 2020-08-25 07:12:05 -0600

Shiva_uchiha gravatar image

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 ?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2020-08-30 14:42:45 -0600

mirella melo gravatar image

Hi.

These are warning, not errors. Did you try to run Orbslam after built?

edit flag offensive delete link more

Comments

Hi! yes it worked . Those warnings didn't affect much .

Shiva_uchiha gravatar image Shiva_uchiha  ( 2020-08-31 08:10:36 -0600 )edit
0

answered 2021-06-10 04:04:03 -0600

aserbremen gravatar image

A simple solution is to download a suitable version of vision_opencv from https://github.com/ros-perception/vis.... 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.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-08-25 07:12:05 -0600

Seen: 3,566 times

Last updated: Aug 30 '20