1. 程式人生 > >ubuntu14.04 opencv庫的編譯與使用

ubuntu14.04 opencv庫的編譯與使用

sudo apt-get install aptitude
sudo aptitude install build-essential
sudo aptitude install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
sudo aptitude install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
mkdir out
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=../out ..
make && make install

編譯完成