wget https://sourceforge.net/projects/opencvlibrary/files/opencv-unix/3.1.0/opencv-3.1.0.zip/download
unzip download
cd opencv-3.1.0/
mkdir release
cd release/
cmake -D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local ..
(这里如果下载ippicv出错,下载这个文件替换http://download.csdn.net/download/chu_ying/9432287,替换目录opencv-3.1.0/3rdparty/ippicv/downloads/linux-808b791a6eac9ed78d32a7666804320e/)
make
sudo make install
验证安装是否成功?
python
import cv2
没有报错,安装成功!
参考文章:http://www.linuxdiyf.com/linux/17877.html