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

Update to OpenCV 3 without destroying everything

asked 2015-09-03 06:38:47 -0600

Mehdi. gravatar image

updated 2015-09-03 06:41:07 -0600

I really need some new functionalities available in OpenCV 3.0 but when trying to uninstall my current OpenCV, apt-get tries to delete Gazebo and ROS. How can I get rid of OpenCV 2.4 and install OpenCV 3 in a smooth transition without deleting anything else?

Using ROS Indigo on Ubuntu 14.04

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-09-04 02:28:10 -0600

VitaliyProoks gravatar image

I did not try with OpenCV 3, but successfully when I needed cuda-enabled OpenCV. Of course, you will need to build OpenCV from sources, and the small trick is to specify build target to a folder in your home path, for example, ~/.local. Then specify corresponding OpenCV version in your CMakeLists.txt and make sure cmake finds the library. I cannot guarantee this to work with OpenCV 3 but it will not break anything for sure.

edit flag offensive delete link more


Thanks, I will try this.

Mehdi. gravatar image Mehdi.  ( 2015-09-15 03:23:23 -0600 )edit

Question Tools

1 follower


Asked: 2015-09-03 06:38:47 -0600

Seen: 404 times

Last updated: Sep 04 '15