Centos 6.9 安装 Opencv-3.1.0

1.环境检查

需安装:

gcc

cmake


2.下载下载opencv的安装包opencv-3.1.0.zip

wget  http://nchc.dl.sourceforge.net/project/opencvlibrary/opencv-unix/3.1.0/opencv-3.1.0.zip


3.将安装包移动到指定安装路径并解压

mv  opencv-3.1.0.zip /usr/local  

unzip opencv-3.1.0.zip


4.编译

cd /usr/loacal/opencv-3.1.0

camke CMakeList.txt

如果这里出错,显示808b791a6eac9ed78d32a7666804320e的hash dismatch

可以自己先在网上下载好ippicv_linux_20151201.tgz这个压缩包,然后将其拷贝到下面的文件夹目录:

/usr/local/opencv-3.1.0/3rdparty/ippicv/downloads/linux-808b791a6eac9ed78d32a7666804320e/

然后重新cmake CMakeList.txt


5.编译安装

cd /usr/local/opencv-3.1.0

make

Centos 6.9 安装 Opencv-3.1.0_第1张图片

如下所示为编译成功

执行

make  install

即可

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