ubuntu卸载opencv

opencv安装后,即使编译成功,而在调用处理图像视频时,尤其访问摄像头时,会出现错误,其实错误是安装opencv前,没有安装好必要的依赖库,而这需要安装顺序的,所以出现这类问题必须卸载重装。

本人在不同平台重装opencv好多次,卸载opencv的步骤如下:


1、在自己编译的文件夹下,执行此命令,本人的是 /home/guit/opencv3.0/build/     

$ make uninstall

2、回到 /home/guit/opencv3.0/下
$ cd ..

3、删除build   
$ sudo rm -r build

4、删除其余的
$ sudo rm -r /usr/local/include/opencv2 /usr/local/include/opencv /usr/include/opencv /usr/include/opencv2 /usr/local/share/opencv        /usr/local/share/OpenCV /usr/share/opencv /usr/share/OpenCV /usr/local/bin/opencv* /usr/local/lib/libopencv

你可能感兴趣的:(Linux,OpenCV)