1、下载opencv2.4.13的.zip包
http://opencv.org/downloads.html
2. 解压到任意目录
- unzipopencv-2.4.13.zip
3.在解压后的目录里创建一个release
cdopencv-2.4.13
3. 安装一些必要的依赖库(pkg-config非必须)
sudoapt-getinstallbuild-essentialcmakelibgtk2.0-devpkg-configPython-devpython-numpylibavcodec-devlibavformat-devlibswscale-dev