How to install OpenCV on Ubuntu from source
Ubuntu 10.04′s repository only has OpenCV 2.0, but if you want to use the 2.1 version, which was released in April, you would have to build it from source. Here’s a simple how-to. First, you need to install the following required packages to build OpenCV: libgtk2.0-dev libpng12-dev libjpeg62-dev libtiff4-dev zlib1g-dev libjasper-dev libavcodec-dev libdc1394-22-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev [...]