首页 > 代码库 > ubuntu安装opencv3.1.0

ubuntu安装opencv3.1.0

配置环境:

sudo apt-get install build-essential
    
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev

sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev

opencv下载:

wget https://github.com/Itseez/opencv/archive/3.1.0.zip

找到3.1.0.zip压缩包,并解压:

unzip  ./3.1.0.zip

创建编译的临时目录:

cd ~/opencv-3.1.0
mkdir build
cd build

生成cmake编译配置:

cmake ..

编译:

make

安装opencv:

sudo make install

结束。。

 

ubuntu安装opencv3.1.0