Ask Your Question
0

How to completely remove OpenCV3

asked 2019-02-20 03:38:18 -0600

MAQ74 gravatar image

I have manually removed OpenCV 3.3.1 using : sudo find / -name "opencv" -exec rm -i {} \; Now its result is just "find: ‘/run/user/1000/gvfs’: Permission denied" which i suppose is fine as their is nothing related to OpenCV on this path. But still "pkg-config --modversion opencv" is showing 3.3.1. I am confused how to remove openCV completely. Please help.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2019-02-20 03:49:09 -0600

kbarni gravatar image

If you installed OpenCV from package manager, it's best to remove those packages. Check: apt list --installed | grep opencv.

If you built it yourself, and you still got the build folder, run sudo make uninstall from the OpenCV build directory. If you don't have the build directory, you'll find the OpenCV files in /usr/local/lib and usr/local/include. Don't forget to remove /usr/local/lib/pkgconfig/opencv.pc' and run sudo ldconfig.

P.S. You didn't specify what OS are you using, this is for Debian/Ubuntu/variants. However the procedure should be similar on other Linux and probably MacOS too.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-02-20 03:38:18 -0600

Seen: 20,198 times

Last updated: Feb 20 '19