The installation procedures detailed below have been tested and verified using:
* Ubuntu 10.04.3 LTS ("fresh" install)
* OpenCV 2.3.1
1.1 Installing OpenCV
1. Open Terminal: Applications->Accessories->Terminal
2. Download and install CMake and other required dependencies:
$ sudo apt-get update
$ sudo apt-get install build-essential cmake libgtk2.0-dev libtiff4-dev libjasper-dev libavformat-dev libswscale-dev libavcodec-dev libjpeg62-dev
3. Download OpenCV 2.3.1 (choose a folder where you wish to download the file to: e.g. home/Downloads):
$ cd Downloads
$ wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.3.1/OpenCV-2.3.1a.tar.bz2
4. Unpack archive and navigate to the newly created folder containing the OpenCV source:
$ tar -xvf OpenCV-2.3.1a.tar.bz
$ cd OpenCV-2.3.1/
5. Create a new folder and navigate to it (the build files generated by CMake will go into this folder):
$ mkdir release
$ cd release
6. Use CMake to generate the makefile:
Note: Remember to specify the source folder as the last argument while invokingcmake.
$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON .
7. Compile and install OpenCV:
$ sudo make install
8. Point system to generated libraries (change path if different):
$ export LD_LIBRARY_PATH=~/Downloads/OpenCV-2.3.1/release/lib:$LD_LIBRARY_PATH
$ sudo ldconfig
9. (Optional) Use pkg-config to simplify the "making/building" of your OpenCV projects:
$ pkg-config opencv --libs
OpenCV dependencies can now be linked with simply: `pkg-config opencv --cflags --libs`
10. Restart Ubuntu to complete installation.
11. Test a sample program.
$ cd ../sample/cpp/
$ g++ `pkg-config opencv --libs --cflags` drawing.cpp -o drawing
$ ./drawing
http://code.google.com/p/qt-opencv-multithreaded/wiki/Documentation
* Ubuntu 10.04.3 LTS ("fresh" install)
* OpenCV 2.3.1
1.1 Installing OpenCV
1. Open Terminal: Applications->Accessories->Terminal
2. Download and install CMake and other required dependencies:
$ sudo apt-get update
$ sudo apt-get install build-essential cmake libgtk2.0-dev libtiff4-dev libjasper-dev libavformat-dev libswscale-dev libavcodec-dev libjpeg62-dev
3. Download OpenCV 2.3.1 (choose a folder where you wish to download the file to: e.g. home/Downloads):
$ cd Downloads
$ wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.3.1/OpenCV-2.3.1a.tar.bz2
4. Unpack archive and navigate to the newly created folder containing the OpenCV source:
$ tar -xvf OpenCV-2.3.1a.tar.bz
$ cd OpenCV-2.3.1/
5. Create a new folder and navigate to it (the build files generated by CMake will go into this folder):
$ mkdir release
$ cd release
6. Use CMake to generate the makefile:
Note: Remember to specify the source folder as the last argument while invokingcmake.
$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON .
7. Compile and install OpenCV:
$ sudo make install
8. Point system to generated libraries (change path if different):
$ export LD_LIBRARY_PATH=~/Downloads/OpenCV-2.3.1/release/lib:$LD_LIBRARY_PATH
$ sudo ldconfig
9. (Optional) Use pkg-config to simplify the "making/building" of your OpenCV projects:
$ pkg-config opencv --libs
OpenCV dependencies can now be linked with simply: `pkg-config opencv --cflags --libs`
10. Restart Ubuntu to complete installation.
11. Test a sample program.
$ cd ../sample/cpp/
$ g++ `pkg-config opencv --libs --cflags` drawing.cpp -o drawing
$ ./drawing
http://code.google.com/p/qt-opencv-multithreaded/wiki/Documentation