FC12 Build
Building on FC12 appears to be very straight forward; this assumed that FC12 has the standard development tools installed i.e. gcc, pkgconfig, etc.
Dependencies
- All dependencies can be installed from the standard fedora repository
- cmake: the openlibraries build system is cmake based
- check with yum list cmake
- install with yum install cmake
- boost: probably installed already
- check with yum list boost-devel.i386
- install with yum install boost-devel
- openEXR: sudo yum install OpenEXR
- libxml: sudo yum install libxml2-devel
- libXmu: sudo yum install libXmu-devel
- SDL: probably installed already
- check with yum list SDL-devel.i386
- install with yum install SDL-devel
- python: probably installed already
- check with yum list python-devel.i386
- install with yum install python-devel
- GLEW: sudo yum install glew-devel.i386
- OpenAL: sudo yum install openal-devel.i386
- GLUT: sudo yum install freeglut-devel.i386
ffmpeg for media management
The main missing dependency not found in the fedora repository is ffmpeg. There are two ways to install it, from a repository or from source. You can also extend the media functionality ffmpeg via additional ffmpeg modules when building form source.
To install ffmpeg and ffmpeg includes you should add RPMfusion as a repository yum should use, for more information on how to set it up see http://rpmfusion.org/Configuration
ffmpeg the easy way
- install ffmpeg and ffmpeg developpment tools via yum
- yum install ffmpeg; yum install ffmpeg-devel;
ffmpeg from source
NOTE: The process below is for fc8 using livna repo and has not yet been reviewed or updated for fc12!
- building ffmpeg from source
- get the latest ffmpeg from svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
- get ffmpeg dependencies
- lame, faac, faad2 can be retrieved from RPMfusion:
- sudo yum install lame-devel
- sudo yum install faac-devel
- sudo yum install faad2-devel
- amr requires manual build and install:
- get tarballs for both nb and wb from here: http://www.penguin.cz/~utx/amr
- unzip, untar
- for both (current versions 7.0.0) no problems building
- for both do: ./configure, make, sudo make install
- lame, faac, faad2 can be retrieved from RPMfusion:
- configure with:
- ./configure --enable-shared --disable-static --disable-vhook --enable-libamr-nb --enable-libamr-wb --enable-libmp3lame --enable-libfaad
- note that for FAAD2 support you rneed to add --enable-gpl
- note that for libamr you need to add --enable-nonfree
- make, sudo make install
building openlibraries
- checkout: svn co https://openlibraries.svn.sourceforge.net/svnroot/openlibraries openlibraries
- cd openlibraries/trunk
Linux
- create a build directory from within the desired branch e.g. trunk
- cd build
- run cmake: cmake ..
In most cases environmantal variables need not be set; pkgconfig is used to locate the appropriate directories.
Useful Command Line Options
If running cmake from the command line, some useful options to pass to are:
- -G "NMake Makefiles": generates makefiles for nmake
- -D CMAKE_INSTALL_PREFIX:STRING=c:\openlibraries
- -D CMAKE_BUILD_TYPE:STRING=Release
- -D WITH_PYTHON_EXTENSIONS:BOOL=FALSE
- -D WITH_OPENFX_PLUGIN:BOOL [default is FALSE]
- -D WITH_OPENML:BOOL [default is TRUE]
- -D WITH_OPENIL:BOOL [default is TRUE]
- -D WITH_OPENAL:BOOL [default is TRUE]
- -D WITH_OPENFXL:BOOL [default is FALSE]
- -D WITH_OPENOL:BOOL [default is TRUE]
- -D WITH_POOL:BOOL [default is TRUE]
To get a list of all possible generators, run cmake --help
