RTFTR Installation Guide Fedora Core 10 For more details, visit http://rtftr.sourceforge.net First, we will install all the external libraries that RTFTR depends on for its functionality. 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&package_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 NOTE: You must have root privileges to perform the installations! Download all the library tarballs from their respective project pages 0. Installation of FFTW library: 0.0 login as root using "su" command 0.1 ./configure --enable-shared --enable-openmp && make && make install 1. Installation of Boost library 1.0 ./configure && make && make install 2. Installation of Vigra library 2.0 ./configure --prefix=/usr/local && make && make install 3. Installation of Octave library 3.0 ./configure --prefix=/usr && make && make install 3.1 create a new file named "/etc/ld.so.conf.d/octave-i386.conf" and add the following line /usr/lib/octave-3.0.3 Now let us verify the installations of libraries, until now, using the following commands ls /usr/lib/libfftw3* ls /usr/lib/libboost* ls /usr/local/lib/libvigraimpex* ls /usr/lib/octave-3.0.3/lib* 4. Installation of ffmpeg library 4.0 If you have older versions of faad2 and faac libraries, remove it (as it conflict with ffmpeg-0.5) $ yum remove faad2 faac 4.1 ./configure --enable-gpl --enable-shared --enable-swscale --prefix=/usr 4.2 make && make install 4.3 ldd ./ffmpeg { to verify the installation } 5. Installation of opencv library 5.0 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 5.1 Now execute the configure script as $ ./configure --prefix=/usr 5.2 Make the following changes to opencv-1.1.0/otherlibs/highgui/cvcap_ffmpeg.cpp #include // old was #include // old was #include // old was 5.3 Now compile the source using $ make && make install 6. Installation and compilation of RTFTR source 6.0 ./configure && make 6.1 ./rtftr NOTE: * You might encounter error messages like ./rtftr: error while loading shared libraries: /usr/lib/libavcodec.so.52: cannot restore segment prot after reloc: Permission denied This is due to a restriction by SELinux. So issue the following command to remove the restrictions $ chcon -t textrel_shlib_t '/usr/lib/libavutil.so.49.15.0' $ chcon -t textrel_shlib_t '/usr/lib/libavcodec.so.52.20.0' $ chcon -t textrel_shlib_t '/usr/lib/libavformat.so.52.31.0' $ chcon -t textrel_shlib_t '/usr/lib/libavformat.so.52.31.0' $ chcon -t textrel_shlib_t '/usr/lib/libswscale.so.0.7.1' :) That's all Bye