1, Vim/etc/apt/sources.list
Add the following content
Deb Http://mirrors.ustc.edu.cn/debian-multimedia/oldstable main Non-free
deb-src http://mirrors.ustc.edu.cn/ Debian-multimedia/oldstable Main Non-free
2, installation related dependence:
# apt-get Update
# apt-get Install Libswresample-dev libavutil-dev
# apt-get Install Libresample-dev Libavutil-dev
# apt-get Install cmake-curses-gu<pre name= "code" class= "plain" ># apt-get install ffmpeg
# Apt-get Install libv4la*
# Apt-get Install Libv4l-dev
# apt-get Install ant# apt-get Install Doxygen
# Apt-get Install Libavformat-dev
# Apt-get Install Libavcodec-dev
# Apt-get Install Libswscale-dev
3, installation
$ unzip Opencv2.4.11.zip
$ cd opencv-2.4.11/
$ mkdir Build
$ cd build/
$ ccmake.
Ccmake some configuration to get, you can also directly default configuration
$ make
opencv-2.4.11/build$ sudo made install
4, to see if the installation was successful
$ ls/usr/local/lib/libopencv_*/usr/local/lib/libopencv_calib3d.so /usr/local/lib/libopencv_highgui.so.2.4 /usr/local/ lib/libopencv_photo.so.2.4.11/usr/local/lib/libopencv_calib3d.so.2.4 /usr/local/lib/libopencv_highgui.so.2.4.11 /usr/local/lib/libopencv_stitching.so/usr/local/ lib/libopencv_calib3d.so.2.4.11 /usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_stitching.so.2.4/usr/local/lib/libopencv_ contrib.so /usr/local/lib/libopencv_ imgproc.so.2.4 /usr/local/lib/libopencv_stitching.so.2.4.11/usr/local/lib/ libopencv_contrib.so.2.4 /usr/local/lib/libopencv_imgproc.so.2.4.11 &nbsP /usr/local/lib/libopencv_superres.so/usr/local/lib/libopencv_contrib.so.2.4.11 /usr/ local/lib/libopencv_legacy.so /usr/local/lib/ libopencv_superres.so.2.4/usr/local/lib/libopencv_core.so /usr/local/lib/libopencv_legacy.so.2.4 /usr/local/lib/libopencv_superres.so.2.4.11/usr/local/lib/libopencv_core.so.2.4 /usr/local/lib/libopencv_legacy.so.2.4.11 /usr/ local/lib/libopencv_ts.a/usr/local/lib/libopencv_core.so.2.4.11 /usr/ local/lib/libopencv_ml.so /usr/local/lib/libopencv_video.so/usr/local/lib/libopencv_features2d.so /usr/local/lib/libopencv_ml.so.2.4 / usr/local/lib/libopencv_video.so.2.4/usr/local/lib/libopencv_features2d.so.2.4 /usr/ local/lib/libopencv_ml.so.2.4.11 /usr/local/lib/libopencv_ video.so.2.4.11/usr/local/lib/libopencv_features2d.so.2.4.11 /usr/local/lib/libopencv_nonfree.so /usr/local/lib/libopencv_videostab.so/usr/local/lib/ libopencv_flann.so /usr/local/lib /libopencv_nonfree.so.2.4 /usr/local/lib/libopencv_videostab.so.2.4/usr/ local/lib/libopencv_flann.so.2.4 /USR/LOCAL/LIB/LIBOPENCV _nonfree.so.2.4.11 /usr/local/lib/libopencv_videostab.so.2.4.11/usr/local/lib/libopencv_ flann.so.2.4.11 /usr/local/lib/libopencv_objdetect.so /usr/local/lib/libopencv_world.so/usr/local/lib/libopencv_gpu.so /usr/local/lib/libopencv_objdetect.so.2.4 /usr/local/lib/libopencv_world.so.2.4/usr/local/lib/libopencv_gpu.so.2.4 /usr/local/lib/libopencv_objdetect.so.2.4.11 /usr/local/lib/ libopencv_world.so.2.4.11/usr/local/lib/libopencv_gpu.so.2.4.11 /usr/local/lib/libopencv_photo.so/usr/local/lib/libopencv_highgui.so
/usr/local/lib/libopencv_photo.so.2.4
$ LS/USR/LOCAL/INCLUDE/OPENCV
cvaux.h cvaux.hpp cv.h cv.hpp cvwimage.h cxcore.h cxcore.hpp cxeigen.hpp Cxmisc . h highgui.h Ml.h
opencv-2.4.11/build$ ls
apps cmakefiles cpacksourceconfig.cmake Doc Lib Opencvconfig.cmake src
bin cmake_install.cmake ctesttestfile.cmake include Makefile opencvconfig-version.cmake unix-install
build.xml cmake_uninstall.cmake Cvconfig.h install_manifest.txt modules opencvmodules.cmake version_string.tmp
CMakeCache.txt cpackconfig.cmake data
Installation Complete