opencv|ubuntu16.04 +opencv3.2.0安装笔记+Downloading ippicv_linux_20151201.tgz

一.安装依赖包 【opencv|ubuntu16.04 +opencv3.2.0安装笔记+Downloading ippicv_linux_20151201.tgz】按正opencv3.2.0所需要的依赖

sudo apt-get install build-essentialsudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-devsudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev # 处理图像所需的包sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev liblapacke-devsudo apt-get install libxvidcore-dev libx264-dev # 处理视频所需的包sudo apt-get install libatlas-base-dev gfortran # 优化opencv功能sudo apt-get install ffmpeg

二.下载opencv3.2.0.zip opencv3.2.0
三.编译和安装opencv3.2.0 将安装包放在根目录下,进行解压,再执行命令
cd opencv-3.2.0mkdir buildcd buildcmake..make

如果安装成功,继续执行命令
sudo make install

如果出现下载ICV: Downloading ippicv_linux_20151201.tgz超时等问题,请自行下载
ippicv
然后将下载到文件复制替换到opencv-3.2.0/3rdparty/ippicv/downloads/linux-808b791a6eac9ed78d32a7666804320e文件下,不需要解压。再删掉build,进行命令
mkdir buildcd buildcmake..make

大功告成了。
四.测试 输入命令
pkg-config --modversion opencv

出现版本号说明成功了。

    推荐阅读