Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unistall opencv 2.4.9 and install 3.0.0

Im using openCV on Ubuntu 14.04, but some of the functions that I require particularly in cv2 library (cv2.drawMatches, cv2.drawMatchesKnn) does not work in 2.4.9. How do I uninstall 2.4.9 and install 3.0.0 from the their git? I know the procedure for installing 3.0.0 but how do I make sure that 2.4.9 get completely removed from disk?

like image 291
meteors Avatar asked Oct 21 '22 05:10

meteors


1 Answers

The procedure depends on whether or not you built OpenCV from source with CMake, or snatched it from a repository.

From repository

sudo apt-get purge libopencv* will cleanly remove all traces. Substitute libopencv* as appropriate in case you were using an unofficial ppa.

From source

If you still have the files generated by CMake (the directory from where you executed sudo make install), cd there and sudo make uninstall. Otherwise, you can either rebuild them with the exact same configuration and use the above command, or recall your CMAKE_INSTALL_PREFIX (/usr/local by default), and remove everything with opencv in its name within that directory tree.

like image 50
bcoka Avatar answered Oct 22 '22 18:10

bcoka