Ubuntu Opencv 安装

#[compiler] 
sudo apt-get install build-essential
#[required] 
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
#[optional] 
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev

cd ~/<my_working_directory>
git clone https://github.com/opencv/opencv.git

git checkout tags/3.2.0 -b my3.2.0

cd opencv
mkdir build
cd build

cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..

make -j7 # runs 7 jobs in parallel

sudo make install


猜你喜欢

转载自blog.csdn.net/u010284636/article/details/80455277