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

[Solved]How specify OpenCV version in cv_bridge

asked 2021-11-29 12:01:55 -0600

Elektron97 gravatar image

updated 2021-11-30 05:10:15 -0600

Hi everyone. I'm in ROS Melodic and I'm working with OpenCV 4.5.3 for xfeatures2d. At the end of catkin_make, i have this warnings:

/usr/bin/ld: warning: libopencv_imgproc.so.4.5, needed by /usr/local/lib/libopencv_xfeatures2d.so.4.5.3, may conflict with libopencv_imgproc.so.3.2

I've seen many questions for this warnings, that suggest to clone cv_bridge from source code. But I don't understand I specify OpenCV version in my cv_bridge. I've tried to change CMakeFile of cv_bridge like this:

find_package(OpenCV 3 REQUIRED -> find_package(OpenCV 4 REQUIRED

but can't build.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-11-29 16:48:54 -0600

Elektron97 gravatar image

I found a solution in Github:

In catkin_ws/src:

git clone https://github.com/fizyr-forks/vision_opencv/tree/opencv4
cd vision_opencv
git checkout opencv4
edit flag offensive delete link more

Comments

Thank you for sharing

osilva gravatar image osilva  ( 2021-11-29 17:05:13 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2021-11-29 12:01:55 -0600

Seen: 1,015 times

Last updated: Nov 30 '21