centos7下opencv的安裝

os:centos7 opencv:opencv3.0.0 for linuxhtml

reference:http://www.cnblogs.com/xixixing/p/6096057.html python

details:linux

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/47668021c++

mv到/usr/local後git

cd /usr/local
unzip opencv-3.0.0.zip
github

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 nasmcentos

yum insatall cmake網站

cd opencv-3.0.0ui

mkdir buildthis

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

相關文章
相關標籤/搜索