Robotics StackExchange | Archived questions

Update to OpenCV 3 without destroying everything

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

Asked by Mehdi. on 2015-09-03 06:38:47 UTC

Comments

Answers

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.

Asked by VitaliyProoks on 2015-09-04 02:28:10 UTC

Comments

Thanks, I will try this.

Asked by Mehdi. on 2015-09-15 03:23:23 UTC