centos7下opencv的安装
os:centos7 opencv:opencv3.0.0 for linux
reference:http://www.cnblogs.com/xixixing/p/6096057.html
details:
opencv download:because of the unstable network for github, i choose to download from baiduyun, this is the address: http://blog.csdn.net/yanzi1225627/article/details/47668021
mv到/usr/local后
cd /usr/local
unzip opencv-3.0.0.zip
yum install gcc gcc-c++ gtk2-devel gimp-devel gimp-devel-tools gimp-help-browser zlib-devel libtiff-devel libjpeg-devel libpng-devel gstreamer-devel libavc1394-devel libraw1394-devel libdc1394-devel jasper-devel jasper-utils swig python libtool nasm
yum insatall cmake
cd opencv-3.0.0
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
make
make install
-------------------------------------------------
some problems:
1.-- ICV: Downloading ippicv_linux_20141027.tgz... CMake Error at 3rdparty/ippicv/downloader.cmake:71 (file): file DOWNLOAD HASH mismatch for file: [/home/jason/program/opencv-3.0.0/3rdparty/ippicv/downloads/linux-8b449a536a2157bcad08a2b9f266828b/ippicv_linux_20141027.tgz] expected hash: [8b449a536a2157bcad08a2b9f266828b] actual hash: [0103b909e19ca9c6497a7ae696c16480]
solution:ippicv_linux_20141027.tgz的校验值不符,从http://sourceforge.net/projects/opencvlibrary/files/3rdparty/ippicv网站下载ippicv_linux_20141027.tgz放到/usr/local/opencv-3.0.0/3rdparty/ippicv/downloads/linux-8b449a536a2157bcad08a2b9f266828b/下替换原ippicv_linux_20141027.tgz