Ask Your Question
5

Solve conflict between Ubuntu libcv2.1 and ROS libopencv2.3

asked 2011-10-26 03:54:35 -0500

AHornung gravatar image

updated 2014-01-28 17:10:39 -0500

ngrennan gravatar image

It looks like a recent update to OpenCV in ROS electric (as a system-wide package pulled in by ros-electric-vision-opencv) causes a conflict with the default Ubuntu library libcv2.1 (+libcvaux2.1 libhighgui2.1). With the electric apt-repository it is not possible to "apt-get upgrade" for all packages without removing the Ubuntu libraries. This will also uninstall third-party software which depends on the Ubuntu libs such as the video editing program "kdenlive" and its "frei0r-plugins".

The conflict must have happened in a recent update to vision-opencv as there was no problem before. Where lies the exact source of the problem, and how could it be fixed? Or is this just a temporary glitch in the apt repository? I feel like a ROS package should never conflict with a default system package on a supported platform. I wouldn't want to decide between the one usable video editing tool in Linux and future electric updates.

The behavior was observed on Ubuntu 11.04 and 10.04 (LTS).

Edit, more details: Updating ros-electric-desktop-full to 1.0.0-s1319593787~natty will upgrade libopencv2.3 from 2.3.1+svn6514+branch23-1~natty to 2.3.1+svn6514+branch23-5~natty. The former works fine, while the latter conflicts with Ubuntu's libcv2.1 (version 2.1.0-3ubuntu1).


Update 2: Given that this is a bug in the packaging of OpenCV (as it looks from the comments and replies), where would a ticket go? OpenCV trunk upstream? ROS package management?

edit retag flag offensive close merge delete

Comments

I added more details about the affected versions. Is this an error in the packaging?
AHornung gravatar imageAHornung ( 2011-10-27 04:30:06 -0500 )edit
I'm getting the same issue too on ROS electric with 10.04. I feel like this issue came up before and it was fixed earlier but it's broken again now. Not sure what to do...
Ibrahim gravatar imageIbrahim ( 2011-11-10 11:04:33 -0500 )edit

4 Answers

Sort by ยป oldest newest most voted
3

answered 2011-11-13 20:20:19 -0500

AHornung gravatar image

The conflict now seems to be resolved with the latest update to the debs:

sudo apt-get install libcv2.1 ros-electric-vision-opencv libopencv2.3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libcv2.1 is already the newest version.
libopencv2.3 is already the newest version.
ros-electric-vision-opencv is already the newest version.

Package: libopencv2.3 Version: 2.3.1+svn6514+branch23-8~natty

Package: ros-electric-vision-opencv Version: 1.6.8-s1321009674~natty

edit flag offensive delete link more
0

answered 2012-03-04 06:01:32 -0500

robbel gravatar image

I (again) observe this package conflict with the latest ros-electric packages on Ubuntu 11.04: ros-electric-vision-opencv 1.6.9-s1328567249~natty libopencv2.3* 2.3.1+svn6514+branch23-9~natty libcv2.1 2.1.0-3ubuntu1

Has this bug resurfaced? Cheers, Philipp

edit flag offensive delete link more
-1

answered 2011-11-03 09:19:02 -0500

Geri gravatar image

should be solved, maybe provides libcvc or simsilar is missing?

edit flag offensive delete link more
-1

answered 2011-11-03 18:36:17 -0500

noonv gravatar image

may be this answer could help you?

edit flag offensive delete link more

Comments

No, unfortunately not. If I manually compile from source I would need to compile all packages depending on libopencv (or vision_opencv) as well. This dependency conflict seems to affect the built .deb packages of opencv, distributed along with ros electric.
AHornung gravatar imageAHornung ( 2011-11-03 22:37:41 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-10-26 03:54:35 -0500

Seen: 1,300 times

Last updated: Mar 04 '12