2012年1月3日 星期二

Install OpenCV

apt-get install libgstreamer0.10-dev
apt-get install libgtkmm* libunicap*
apt-get install libtiff* libv4l-dev libdc1394-*
apt-get install python-dev ruby-dev
apt-get install python-dev cmake
apt-get install libavformat-dev
apt-get install libswscale-dev libxine-dev
ldconfig
cd /usr/local/src
wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.0/OpenCV-2.0.0.tar.bz2
tar xvjf OpenCV-2.0.0.tar.bz2
cd OpenCV-2.0.0
mkdir release; cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON ..
make
make install
pkg-config opencv --cflags --libs

If see the following
-I/usr/local/include/opencv -L/usr/local/lib -lcxcore -lcv -lhighgui -lcvaux -lml

沒有留言: