OpenCV 2.4.2 のインストール
$ sudo apt-get install build-essential
$ sudo apt-get build-dep opencv
$ sudo apt-get install libjpeg-dev
$ sudo apt-get install libopenjpeg-dev
$ sudo apt-get install jasper
$ sudo apt-get install libjasper-dev libjasper-runtime
$ sudo apt-get install libpng12-dev
$ sudo apt-get install libpng++-dev libpng3
$ sudo apt-get install libpnglite-dev libpngwriter0-dev libpngwriter0c2
$ sudo apt-get install libtiff-dev libtiff-tools pngtools
$ sudo apt-get install zliblg-dev zlib1g-dbg
$ sudo apt-get install v4l2ucp
$ sudo apt-get install python
$ sudo apt-get install autoconf
$ sudo apt-get install libtbb2 libtbb-dev
$ sudo apt-get install libeigen2-dev
$ sudo apt-get install cmake
$ sudo apt-get install openexr
$ sudo apt-get install gstreamer-plugins-*
$ sudo apt-get install freeglut3-dev
$ sudo apt-get install libglui-dev
$ sudo apt-get install libavc1394-dev libdc1394-22-dev libdc1394-utils
$ sudo apt-get install libxine-dev
$ sudo apt-get install libxvidcore-dev
$ sudo apt-get install libva-dev
$ sudo apt-get install libssl-dev
$ sudo apt-get install libv4l-dev
$ sudo apt-get install libvo-aacenc-dev
$ sudo apt-get install libvo-amrwbenc-dev
$ sudo apt-get install libvorbis-dev
$ sudo apt-get install libvpx-dev
OpenCV-2.4.2 の取得と解凍
$ wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.2/OpenCV-2.4.2.tar.bz2
$ tar -xvjof ./OpenCV-2.4.2.tar.bz2
cmake CMakeList.txt
make
sudo make install
sudo ldconfig