Boost
$ sudo apt-get install build-essential
$ wget -O boost_1_55_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz/download
$ tar xzvf boost_1_55_0.tar.gz
$ ./bootstrap.sh --prefix=/usr/local/boost/1.55.0
$ ./b2 -j 4
$ sudo ./b2 install
OpenCV
$ sudo apt-get install build-essential
$ 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
Get the source
$ git clone https://github.com/opencv/opencv.git
From official website
Build and install
$ mkdir release
$ cd release
$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local/opencv/xx.xx ..
$ make -j 4
$ sudo make install
沒有留言:
發佈留言