FC5 Build

Building on FC5 requires a uptodate system with the latest versions of the standard development tools installed i.e. gcc, pkgconfig, etc.

System Update

  • do a full system update
    • as root: yum update
    • this will take some time
  • install opengl
    • search YUM for GLU
    • I used mesa-libGLU-devel.i386

Dependencies

  • install boost-devel
  • ffmpeg
    • best to get from SVN
    • get dependencies
      • lame, faac, faad2 can be retrieved from livna: sudo yum install faac-devel.i386 faad2-devel.i386 lame-devel.i386
    • configure with:
      • ./configure --enable-shared --disable-static --disable-vhook --enable-libmp3lame --enable-libfaad
      • note that for FAAD2 support you need to add --enable-gpl
    • make, sudo make install

openlibraries

  • dependencies (none of these require livina)
  • OpenAL: sudo yum install openal-devel.i386
  • GLUT: sudo yum install freeglut-devel.i386
  • GLEW: you can get this for FC5 here: http://rpmfarm.free.fr/5/i386/SRPMS.farm/repodata/repoview/glew-0-1.3.4-1.EL.FC5.html
    • this provides a source RPM which needs to be turned into an RPM and then installed
    • rpmbuild --rebuild glew-1.3.4-1.EL.FC5.src.rpm
    • rpm -Uvh /usr/src/redhat/RPMS/i386/glew-1.3.4-1.%\{disttag\}.%\{repotag\}.i386.rpm
    • rpm -Uvh /usr/src/redhat/RPMS/i386/glew-devel-1.3.4-1.%\{disttag\}.%\{repotag\}.i386.rpm
  • configure openlibraries
    • you may need to update the qt paths
      • default is /usr/lib/qt3, on FC5 this is /usr/lib/qt-3.3
    • ./bootstrap
    • configure:
      • export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
      • ./configure --enable-gpl --with-pythonversion=2.5 --with-boostthreadruntime=mt
    • make, sudo make install
  • SELinux
    • if you have SELinux enabled, then you will need to modify the openlibraries .so to allow text relocation. This can be done as follows:
      • sudo find /usr/local/lib/ -name '*.so*' -exec chcon -t texrel_shlib_t {} \;
    • i got context errors so i did this
      • sudo find /usr/local/lib/ -name '*.so*' -exec chcon -R -h root:object_r:texrel_shlib_t {} \;
      • chcon -h system_u:object_r:texrel_shlib_t /usr/local/lib