Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

De/FlightGear bauen - Debian

From FlightGear wiki
Revision as of 06:53, 21 September 2009 by Flughund (Talk | contribs) (page created and partly translated)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

FlightGear 1.9.1 oder aus den CVS-Ressourcen bauen

FlightGear 1.9.1 oder aus den CVS-Ressourcen auf Etch and Lenny selber kompilieren.

Für Anfänger ohne jegliche Kenntnisse zum Komilieren und für Leute die sich die Hände nicht schmutzig machen wollen gibt es ein Script welches FglighGear und Zubehör aus den CVS/SVN Quellen erstellt. http://wiki.flightgear.org/index.php/Scripted_Compilation_on_Linux_Debian/Ubuntu


Ein OpenGL-fähiger Grafikchip inklusive dem passenden und korrekt installierten Treiber.

Eine Stange von Paketen muß noch im System vorhanden sein:

   * gcc, g++, automake1.9
   * mawk (oder gawk)
   * cmake min Version 2.6.0-5, unter Etch von backports.org!
   * cvs, subversion
   * freeglut3-dev, libgl1-mesa-dev, libxrandr-dev
   * libxi-dev, libxmu-dev, libxext-dev
   * libopenal-dev, libalut-dev
   * libgtkglext1-dev
   * libjpeg62-dev, libtiff4-dev, zlib1g-dev
   * libboost1.35-dev unter Etch von backports.org! 

Zum Komilieren sollten die Pakete simgear-dev und openscenegraph-dev entfernt werden. Danach können sie gefahrlos wieder installiert werden.

backports.org zu den Paketquellen hinzufügen

(nur unter Etch)

hardcore: folgende Zeile zu /etc/apt/sources.list hinzufügen:

deb http://ftp.de.debian.org/backports.org/ etch-backports main contrib


Binaries (deb)
Address:       http://ftp.de.debian.org/backports.org/
Distribution:  etch-backports
Section(s):    main contrib

Danach nicht vergessen die Paketqullen neu zu laden ([tt]apt-get update[/tt])!
Weitere Spiegelserver findet man unter: http://www.backports.org/debian/README.mirrors.html

Fetch the Sources

No need to fetch it by CVS because there was no update for a long time...

For CVS one may use the latest developer release (for FG 1.9.1 OSG 2.7.8 is known to work):
or fetch it via SVN:

svn checkout http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk OpenSceneGraph

1.9.1: ftp://ftp.simgear.org/pub/simgear/Source/SimGear-1.9.1.tar.gz
or CVS:

cvs -d :pserver:cvsguest@cvs.simgear.org:/var/cvs/SimGear-0.3 login
#CVS passwd: guest
cvs -d :pserver:cvsguest@cvs.simgear.org:/var/cvs/SimGear-0.3 co source

FlightGear source
1.9.1: http://www.very-clever.com/download/flightgear/Source/
or CVS:

cvs -d :pserver:cvsguest@cvs.flightgear.org:/var/cvs/FlightGear-0.9 login
#CVS passwd: guest
cvs -d :pserver:cvsguest@cvs.flightgear.org:/var/cvs/FlightGear-0.9 co source

FlightGear data
1.9.1: http://www.very-clever.com/download/flightgear/Shared/FlightGear-data-1.9.0.tar.bz2
or CVS:

cvs -d :pserver:cvsguest@cvs.flightgear.org:/var/cvs/FlightGear-0.9 co data

While data (CVS: ~ 2 GB / 1.9.1: 230 MB) gets downloaded we have plenty of time to...

Build and install

Because we are going to install versions different to the ones in the repositries it is hardly recommended to install FG-CVS in a place independet to the base system such as /usr/local/fg-cvs, /opt/fg-cvs or in a subdirectory of your $HOME. I suggest to make this directory writeable by the user that there is no need to become root for the 'make install' commands. I'll use $prefix as a placeholder for this, so in the following instructions one have to replace it by the local path.

Subsequent the commands to build each source. Execute them in the according source directory, except for OSG.


./configure --prefix=$prefix
make install

Here you'll encounter another placeholder $osgsrcdir which has to be replaced by path of the OSG source directory. This is because cmake demands a build directory separate to its source directory. So 'mkdir' one and 'cd' into it.

   -D CMAKE_INSTALL_PREFIX:PATH="$prefix" $osgsrcdir
make install


./configure --prefix=$prefix --with-jpeg-factory
make install


./configure --prefix=$prefix
make install

Trial run:

$prefix/bin/fgfs --fg-root=/path/to/data


To build fgrun some more packages are required:

  • libfltk1.1-dev
  • fluid

Fetch the source:

svn co http://fgrun.svn.sourceforge.net/svnroot/fgrun/trunk fgrun

Build it:
$prefix like above

./configure --prefix=$prefix
make install