You are on page 1of 2

Ubuntu 9.

04
First, we will install necessary packages from the repository
1.sudo apt-get install build-essential
2.sudo apt-get install automake libtool
3.sudo apt-get install gfortran libreadline-dev
4.sudo apt-get install libgtk2.0-dev libswscale-dev libxml2-dev
Next, we will install all the external libraries that RTFTR depends on for its f
unctionality. RTFTR uses the following libraries:
fftw-3.2.1 : ftp://ftp.fftw.org/pub/fftw/fftw-3.2.1.tar.gz
boost-1.37 : http://sourceforge.net/project/showfiles.php?group_id=7586&pack
age_id=8041&release_id=637761
vigra1.6.0 : http://hci.iwr.uni-heidelberg.de/vigra/vigra1.6.0.tar.gz
octave-3.0.3 : ftp://ftp.octave.org/pub/octave/octave-3.0.3.tar.gz
ffmpeg-0.5 : http://www.ffmpeg.org/releases/ffmpeg-0.5.tar.bz2
opencv-1.1pre1 : http://sourceforge.net/project/showfiles.php?group_id=22870
&package_id=16948
Download all the library tarballs from their respective project pages
1.Installation of FFTW library:
a.$ ./configure --enable-shared --enable-openmp && make
b.$ sudo make install
2.Installation of Boost library
a.$ ./configure && make
b.$ sudo make install
3.Installation of Vigra library
a.$ ./configure --prefix=/usr/local && make
b.$ sudo make install
4.Installation of Octave library
a.$ ./configure --prefix=/usr && make
b.$ sudo make install
c.create a new file named "/etc/ld.so.conf.d/octave-i386.conf" and add the f
ollowing line
/usr/lib/octave-3.0.3
5.Now let us verify the installations of libraries, until now, using the followi
ng commands
a.$ ls /usr/lib/libfftw3*
b.$ ls /usr/lib/libboost*
c.$ ls /usr/local/lib/libvigraimpex*
d.$ ls /usr/lib/octave-3.0.3/lib*
6.Installation of ffmpeg library
a.$ ./configure --enable-gpl --enable-shared --enable-swscale --prefix=/usr
&& make
b.$ sudo make install
c.$ ldd ./ffmpeg { to verify the installation }
7.Installation of opencv library
The location of header files for libavcodec of ffmpeg library, used by opencv to
read AVI video files, had changed in ffmpeg-0.5
(Instead of location /usr/include/ffmpeg/avcodec.h, the header file is placed in
/usr/include/libavcodec/avcodec.h). So to fix this
issue, use the following command as a patch
$ cd opencv-1.1.0/
$ sed -e 's/ffmpeg\/avcodec.h/libavcodec\/avcodec.h/' -e 's/ffmpeg\/swscale.
h/libswscale\/swscale.h/' -i configure
Now execute the configure script as
$ ./configure -prefix=/usr
Make the following changes to
opencv-1.1.0/otherlibs/highgui/cvcap_ffmpeg.cpp
#include <libavformat/avformat.h> // old was <ffmpeg/avformat.h>
#include <libavcodec/avcodec.h> // old was <ffmpeg/avcodec.h>
#include <libswscale/swscale.h> // old was <ffmpeg/swscale.h>
Now compile the source
$ make
$ sudo make install
8.Installation and compilation of RTFTR
a.$ ./configure && make
b.$ ./rtftr

You might also like