一条脚本搞定OpenCV

opencv3.1 linux 下载与配置

这部分应该可以顺利运行

1 sudo apt-get install build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
2 mkdir ~/opencv3
3 cd ~/opencv3
4 wget -qO- https://github.com/Itseez/opencv/archive/3.1.0.tar.gz  | tar xvz
5 cd ~/opencv3/opencv-3.1.0/
6 mkdir ~/opencv3/opencv-3.1.0/release
7 cd ~/opencv3/opencv-3.1.0/release

 

下一条语句可能会报错, `ippicv_linux_20151201.tgz` 文件校验失败
如果报错,这是个诡异的问题,直接在[我的网盘下载](http://pan.baidu.com/s/1qXubN4o),之后替换原先的文件,重新运行这条语句

 1 cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. 

编译安装

 1 make -j16 2 sudo make install

posted @ 2016-03-23 20:19  法师漂流  阅读(1879)  评论(0编辑  收藏  举报