Building FlightGear - Debian: Difference between revisions

m
Robot: Cosmetic changes
m (... oops :D)
m (Robot: Cosmetic changes)
Line 4: Line 4:
Even on Debian '''Oldstable''' 5.x (Lenny) this guide will work for both, 2.2.0 and GIT. At least until one or more dependencies of the GIT version are changing or beeing added.
Even on Debian '''Oldstable''' 5.x (Lenny) this guide will work for both, 2.2.0 and GIT. At least until one or more dependencies of the GIT version are changing or beeing added.


If you don't want to make your hands dirty, have a look at [[Scripted_Compilation_on_Linux_Debian/Ubuntu]].
If you don't want to make your hands dirty, have a look at [[Scripted Compilation on Linux Debian/Ubuntu]].




== Requirements and Preparations ==
== Requirements and Preparations ==
You need an OpenGL capable graphics including a proper installed driver.<BR>
You need an OpenGL capable graphics including a proper installed driver.<br />


Also a bunch of packages (and some of their dependencies) are required:
Also a bunch of packages (and some of their dependencies) are required:
*gcc, g++, make, automake, pkg-config
* gcc, g++, make, automake, pkg-config
*mawk (or gawk)
* mawk (or gawk)
*cmake   (min. version 2.6.0-5)
* cmake (min. version 2.6.0-5)
*git, subversion, wget
* git, subversion, wget
*freeglut3-dev, libgl1-mesa-dev, libxrandr-dev
* freeglut3-dev, libgl1-mesa-dev, libxrandr-dev
*libxi-dev, libxmu-dev, libxext-dev
* libxi-dev, libxmu-dev, libxext-dev
*libopenal-dev (for Lenny see [[#libopenal|libopenal]]), libalut-dev
* libopenal-dev (for Lenny see [[#libopenal|libopenal]]), libalut-dev
*libjpeg62-dev, libtiff4-dev, libpng12-dev
* libjpeg62-dev, libtiff4-dev, libpng12-dev
*libboost1.37-dev (min 1.37, 1.40 available for Lenny on backports.debian.org)
* libboost1.37-dev (min 1.37, 1.40 available for Lenny on backports.debian.org)


During installation package ''simgear-dev'' '''must not''' be installed. It can safely be re-installed after compilation. Same for ''openscenegraph-dev'', if you're using a version differnt to that in the Debian repository.
During installation package ''simgear-dev'' '''must not''' be installed. It can safely be re-installed after compilation. Same for ''openscenegraph-dev'', if you're using a version differnt to that in the Debian repository.
Line 25: Line 25:


== Build and install ==
== Build and install ==
Because we are going to install versions different to the ones in the repositories it is recommended to install FG-2.2.0 and/or GIT in a place independent to the base system such as /usr/local/FG-2.2.0, /opt/FG-2.2.0 or in a subdirectory of your $HOME. I suggest to make it writeable by the user that there is no need to become root for the <code>make install</code> commands. I'll use <code>$prefix</code> as a placeholder for this directory. <BR>
Because we are going to install versions different to the ones in the repositories it is recommended to install FG-2.2.0 and/or GIT in a place independent to the base system such as /usr/local/FG-2.2.0, /opt/FG-2.2.0 or in a subdirectory of your $HOME. I suggest to make it writeable by the user that there is no need to become root for the <code>make install</code> commands. I'll use <code>$prefix</code> as a placeholder for this directory. <br />
Another one will be <code>$srcdir</code>, it stands for the absolute path to the directory which is supposed to keep the folders of the various source codes. So, in the following instructions, you have to replace these with the local paths or even <code>export</code> them during the process.
Another one will be <code>$srcdir</code>, it stands for the absolute path to the directory which is supposed to keep the folders of the various source codes. So, in the following instructions, you have to replace these with the local paths or even <code>export</code> them during the process.


Have in mind that the data is a relatively large download (GIT about 3.5 GB and 2.2.0 300 MB). So, to save some time, it is a good idea to fetch it while building the sources.
Have in mind that the data is a relatively large download (GIT about 3.5 GB and 2.2.0 300 MB). So, to save some time, it is a good idea to fetch it while building the sources.


For some basic info on git commands for FlightGear users we have a [[Git#For_dummies|git for dummies]] section.
For some basic info on git commands for FlightGear users we have a [[Git#For dummies|git for dummies]] section.




Line 61: Line 61:


<u>GIT only:</u>
<u>GIT only:</u>
Mostly the latest revision from OpenSceneGraph svn does suit. However, sometimes this does not work and as a fallback one can go backwards through the revisions. Revision must be at least 12170 (February 2011).<BR>
Mostly the latest revision from OpenSceneGraph svn does suit. However, sometimes this does not work and as a fallback one can go backwards through the revisions. Revision must be at least 12170 (February 2011).<br />
  cd $srcdir
  cd $srcdir
  svn co http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk OpenSceneGraph
  svn co http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk OpenSceneGraph
Line 109: Line 109:


<u>GIT only:</u>
<u>GIT only:</u>
For slow/unstable internet connections it is recommended to download the [[Git#fgdata.bundle|fgdata.bundle]] instead of cloning the data.<BR>
For slow/unstable internet connections it is recommended to download the [[Git#fgdata.bundle|fgdata.bundle]] instead of cloning the data.<br />
FlightGear's primary git server on gitorious is known to have trouble cloning the data, the mapserver's mirror usually has no problems:
FlightGear's primary git server on gitorious is known to have trouble cloning the data, the mapserver's mirror usually has no problems:
  cd $prefix
  cd $prefix
Line 137: Line 137:
=== fgrun ===
=== fgrun ===
To build [[fgrun]] one more package is required:
To build [[fgrun]] one more package is required:
*libfltk1.1-dev
* libfltk1.1-dev
  cd $srcdir
  cd $srcdir
  svn co http://fgrun.svn.sourceforge.net/svnroot/fgrun/trunk fgrun
  svn co http://fgrun.svn.sourceforge.net/svnroot/fgrun/trunk fgrun
Line 148: Line 148:
{{Building}}
{{Building}}


[[de:FlightGear_bauen_-_Debian]]
[[de:FlightGear bauen - Debian]]