Steps for install Opencv2.2.0 in Ubuntu 10.04
Reference:
1, Make sure the latest GTK, GCC 4.x or later
$ sudo apt-get install build-essential libgtk2.0-dev
2, Configure and install ffmpeg
Download the ffmpeg from "
http://ffmpeg.org/releases/ffmpeg-0.5.tar.bz2"
$ tar -jxvf ffmpeg-0.5.tar.bz2
$ mv ./ffmpeg-0.5 ~/software ----------(move ffmpeg file into your own file, there my is "~/software")
$ cd ~/software/ffmpeg-0.5 -----------(enable shared)
$ make
$ sudo make install
3, I already have downloads opencv2.2.0 sources in "~/Donwloads/OpenCV-2.2.0.tar.bz2"
$ tar -jxvf OpenCV-2.2.0.tar.bz2
$ mv ./OpenCV-2.2.0 ~/sotware -------------(move opencv file into your own software file,)
$ cd ~/OpenCV-2.2.0
$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON ~/software/OpenCV-2.2.0/
$ make
$ sudo make install
$ cd ./samples/c -------------------(turn to c file, and compile it)
$ .build_all.sh --------------------(this is so simple, we can only ".build_all.sh")
$ cd ../cpp -------------------(turn to cpp file, and compile it)
$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON ~/software/OpenCV-2.2.0/samples/cpp/