Building FlightGear - Linux: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
This section describes how to build FlightGear on Linux system.
Compiling FlightGear is not a task for novice users. Thus, if you're a beginner (we all were once) on a platform which binaries are available for, we recommend postponing this task and just starting with the binary distribution to get you flying.
'''October 29th 2006, Flightgear CVS MAIN Branch switched to OSG support.'''
'''October 29th 2006, Flightgear CVS MAIN Branch switched to OSG support.'''
Plib support remains available in CVS using PRE_OSG_PLIB_20061029 Branch.
Plib support remains available in CVS using PRE_OSG_PLIB_20061029 Branch.
Line 4: Line 8:


== Requirements ==
== Requirements ==
C++ compiler
Before you can compile FlightGear, you need to have the followings installed on your computer:
* OpenGL support
 
* [[ OpenSceneGraph ]] (cvs HEAD branch)
'''C++ compiler'''
 
These are: c++, cpp, gcc, g++ found under the /usr/bin directory.  You will also need to have the tools '''autoconf''' and '''automake1.9''' installed.
 
'''OpenGL support'''
 
More specifically, your system needs the support for hardware accelerated graphics.  You can check for this by running:
 
glxinfo | grep direct
 
Note: To run the above command, you need to have the tool '''mesa-utils''' installed.
 
You should then see:
 
direct rendering: Yes
 


== Dependencies ==
== Dependencies ==
* pthreads
* pthreads
* (Free)GLUT or SDL
* (Free)GLUT or SDL (We recommend the use of SDL)
* [http://plib.sourceforge.net/ PLIB] (until version 0.9.10 release sources, PRE_OSG_PLIB_20061029 CVS branch)
* [http://plib.sourceforge.net/ PLIB] (until version 0.9.10 release sources, PRE_OSG_PLIB_20061029 CVS branch)
* [http://openal.org OpenAL and ALUT]
* [http://openal.org OpenAL and ALUT]
* [http://simgear.org SimGear]
* [http://simgear.org SimGear]
* [[ OpenSceneGraph ]] (cvs HEAD branch)


== Optional Dependencies ==
== Optional dependencies ==


== Instructions ==
== External links ==
=== Instructions ===
* [[ MSYS ]]
* [[ MSYS ]]
* [[ MinGW/cross-compiler ]]
* [[ MinGW/cross-compiler ]]
Line 25: Line 47:
* [http://www.oflebbe.de/oflebbe/FlightGear/index.html MSVC8 aka Visual 2005]
* [http://www.oflebbe.de/oflebbe/FlightGear/index.html MSVC8 aka Visual 2005]
* [http://macflightgear.sourceforge.net/home/documents/ Mac OS X (0.9.10 and CVS)]
* [http://macflightgear.sourceforge.net/home/documents/ Mac OS X (0.9.10 and CVS)]
=== Tools ===
=== Tools ===
 
==== Free/Open Source ====
== Free/Open Source ==
* [http://www.gnu.org/software/gcc/onlinedocs/ gcc  - the GNU compiler (collection)]
* [http://www.gnu.org/software/gcc/onlinedocs/ gcc  - the GNU compiler (collection)]
* [http://www.gnu.org/software/make/manual/make.html make - GNU make]
* [http://www.gnu.org/software/make/manual/make.html make - GNU make]
Line 44: Line 66:
**http://www.subversion.org
**http://www.subversion.org


== Free/Proprietary ==
==== Free/Proprietary ====
* [http://www.intel.com/vtune/ Intel VTune] [http://www.intel.com/cd/software/products/asmo-na/eng/download/download/index.htm (free Win32/Linux versions available for non-commercial use:requires an INTEL CPU!)]
* [http://www.intel.com/vtune/ Intel VTune] [http://www.intel.com/cd/software/products/asmo-na/eng/download/download/index.htm (free Win32/Linux versions available for non-commercial use:requires an INTEL CPU!)]
* [http://developer.amd.com/downloads.aspx AMD's Developer Tools] (CodeAnalyst, available for free for [http://developer.amd.com/cawin.aspx Win32]/[http://developer.amd.com/calinux.aspx Linux] )
* [http://developer.amd.com/downloads.aspx AMD's Developer Tools] (CodeAnalyst, available for free for [http://developer.amd.com/cawin.aspx Win32]/[http://developer.amd.com/calinux.aspx Linux] )

Revision as of 02:25, 31 December 2006

This section describes how to build FlightGear on Linux system.

Compiling FlightGear is not a task for novice users. Thus, if you're a beginner (we all were once) on a platform which binaries are available for, we recommend postponing this task and just starting with the binary distribution to get you flying.

October 29th 2006, Flightgear CVS MAIN Branch switched to OSG support. Plib support remains available in CVS using PRE_OSG_PLIB_20061029 Branch. (cvs up -rPRE_OSG_PLIB_20061029)

Requirements

Before you can compile FlightGear, you need to have the followings installed on your computer:

C++ compiler

These are: c++, cpp, gcc, g++ found under the /usr/bin directory. You will also need to have the tools autoconf and automake1.9 installed.

OpenGL support

More specifically, your system needs the support for hardware accelerated graphics. You can check for this by running:

glxinfo | grep direct

Note: To run the above command, you need to have the tool mesa-utils installed.

You should then see:

direct rendering: Yes


Dependencies

Optional dependencies

External links

Instructions

Tools

Free/Open Source

Free/Proprietary