OpenSceneGraph: Difference between revisions

Jump to navigation Jump to search
Moved some sections to make the presentation better.
(→‎Compiling OpenSceneGraph: Updated build instructions.)
(Moved some sections to make the presentation better.)
Line 3: Line 3:
As of October 29th 2006, FlightGear has migrated from PLIB to OpenSceneGraph.
As of October 29th 2006, FlightGear has migrated from PLIB to OpenSceneGraph.


Thanks to Mathias Fröhlich, we can use an current OpenSceneGraph CVS version  
Thanks to Mathias Fröhlich, we can use an current OpenSceneGraph SVN version  


== Getting OpenSceneGraph ==
== Getting OpenSceneGraph ==
=== The patched version (NOTE: The patched version should not be needed anymore) ===
OpenSceneGraph-CVS it now up to date with the required patches and should serve as well for running FlightGear. Please note that the "Producer" build system is currently in the works, you probably want to check out with the "-D 20061113" tag.
And the MSVC8 (Visual Sudio 2005) win32 build dependencies for OpenSceneGraph can be found at http://www.oflebbe.de/oflebbe/FlightGear. Look out for the link to http://www.oflebbe.de/oflebbe/FlightGear/3rdparty-2006-11-25.zip.


=== The latest OSG version from svn ===
=== The latest OSG version from svn ===
Line 20: Line 16:


The OpenSceneGraph repository includes all parts of OSG you need.
The OpenSceneGraph repository includes all parts of OSG you need.
=== The patched version (NOTE: The patched version should not be needed anymore) ===
OpenSceneGraph-CVS it now up to date with the required patches and should serve as well for running FlightGear. Please note that the "Producer" build system is currently in the works, you probably want to check out with the "-D 20061113" tag.
And the MSVC8 (Visual Sudio 2005) win32 build dependencies for OpenSceneGraph can be found at http://www.oflebbe.de/oflebbe/FlightGear. Look out for the link to http://www.oflebbe.de/oflebbe/FlightGear/3rdparty-2006-11-25.zip.


== Compiling OpenSceneGraph ==
== Compiling OpenSceneGraph ==
Line 36: Line 38:
* Build type: Release
* Build type: Release
* You don't need to build the examples, wrappers or applications.
* You don't need to build the examples, wrappers or applications.
=== Compilation work arounds ===
If you get errors when compiling the patched OpenSceneGraph after having compiled (and installed) OpenThreads and Producer successfully (happens on Arch Linux), you may have to add the following to your 'make':
    '''make PRODUCER_INC_DIR=/usr/local/include \'''
    '''PRODUCER_LIB_DIR=/usr/local/lib \'''
    '''OPENTHREADS_INC_DIR=/usr/local/include \'''
    '''OPENTHREADS_LIB_DIR=/usr/local/lib'''
== Compilation workaround ==
FIXME
Do not forget to run autogen.sh when updating sources.


=== Installing OpenSceneGraph and FlightGear with --prefix ===
=== Installing OpenSceneGraph and FlightGear with --prefix ===
Line 80: Line 67:


Installing with --prefix is a very nice way to keep several distinct and independent versions of FlightGear around. To start a new $PREFIX directory you'll also need to install plib in it, but that is easy. Most other needed dependencies are usually available through the package system of most Linux distributions (e.g. FreeGLUT, SDL, ALSA, etc).
Installing with --prefix is a very nice way to keep several distinct and independent versions of FlightGear around. To start a new $PREFIX directory you'll also need to install plib in it, but that is easy. Most other needed dependencies are usually available through the package system of most Linux distributions (e.g. FreeGLUT, SDL, ALSA, etc).
=== Compilation work arounds ===
If you get errors when compiling the patched OpenSceneGraph after having compiled (and installed) OpenThreads and Producer successfully (happens on Arch Linux), you may have to add the following to your 'make':
    '''make PRODUCER_INC_DIR=/usr/local/include \'''
    '''PRODUCER_LIB_DIR=/usr/local/lib \'''
    '''OPENTHREADS_INC_DIR=/usr/local/include \'''
    '''OPENTHREADS_LIB_DIR=/usr/local/lib'''


== Current issues ==
== Current issues ==
812

edits

Navigation menu