安装:

1:下载opencv.2.4.13.tar.gz
2:    解压 tar -xzvf opencv.2.4.13.tar.gz 
3:    cd  OpenCV-2.4.13
4:    cmake CMakeLists.txt
5:    make install 

6:配置   vim /etc/ld.so.conf.d/opencv.conf   加入 /usr/local/lib

7:g++ `pkg-config opencv --libs --cflags opencv` hehe.c -o hehe

删除opencv
1:yum remove opencv

2: make uninstall

2:模糊删除 find  -name "*opencv*" | xargs rm -rf


Logo

更多推荐