RHEL 5 Workstation Build

Building on Redhat Entrprise Linux 5 appears to be very straight forward; this assumed that your RHEL5 installation has the standard development tools installed i.e. gcc, pkgconfig, etc.

This has only been tested on RHEL 5 Workstation on i386 under VMware 6. This document is a work in progress feel free to help out!

openlibraries

dependencies

  • main dependencies
    • boost: probably installed already, check with yum list boost-devel.i386
    • SDL: probably installed already, check with yum list SDL-devel.i386
    • python: probably installed already, check with yum list python-devel.i386 (note, uses python 2.4)
  • optional dependencies (we advise you fill them all)
    • ffmpeg (see below)
    • GLEW: sudo yum install glew-devel.i386
    • OpenAL: sudo yum install openal-devel.i386
    • GLUT: sudo yum install freeglut-devel.i386
      • couldnt figure out how to grab via yum so installed via RPM freeglut-devel-2.4.0-7.1.el5.i386.rpm
    • openEXR: sudo yum install OpenEXR-devel.i386 (wasnt available)

installing ffmpeg

  • ffmpeg is optional however yo should install it if you plan to work with video/media formats
  • in order to install ffmpeg you should use the dag repository
    • see http://dag.linux.iastate.edu
    • follow the instructions under Configuring yum To Use This Repository and dont forget to Install Dag's GPG Key
    • type
      • sudo yum install ffmpeg
      • sudo yum install ffmpeg-devel

compiling openlibraries

  • we are moving the build systemm to CMake
  • after making sure cmake is installed, enter the openlibraries root directory and issue the following commands
    • export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    • cmake .
    • sudo make
    • sudo make install

compiling openlibraries the old way (to be discontinued)

  • the old system used configure for openlibraries
    • ./bootstrap
    • configure:
      • export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
      • ./configure --enable-gpl --with-pythonversion=2.4
    • make, sudo make install
  • when building openlibraries I kept getting a boost error in openpluginlib when using the mt option to build openlibraries --with-boostthreadruntime=mt and so ommited it from the configure statement above. this is the error
    • /usr/bin/ld: cannot find -lboost_thread-mt

SE Linux

  • This is currently untested
    • 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

python notes

you will need to set your PYTHONPATH properly you need to add /usr/local/lib/python2.4/site-packages to PYTHONPATH

also for some reason openobjectlib didnt build the py version and so diditn copy into site packages