Building FlightGear - Debian: Difference between revisions

Jump to navigation Jump to search
update on OSG
(undoing the changes to the topics. changing steps to build it.)
(update on OSG)
Line 1: Line 1:
= HowTo build on Debian =
= HowTo build on Debian =
HowTo build FlightGear 2.2.0 or bleeding edge development version, hereinafter simply called ''GIT'', on GNU/Linux Debian '''Stable''' 6.x (Squeeze) and '''Testing'''/'''Unstable''' (Wheezy).
HowTo build FlightGear 2.2.0 or bleeding edge development version, hereinafter simply called ''GIT'', on GNU/Linux Debian '''Stable''' 6.x (Squeeze) and '''Testing''' (Wheezy).


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.
Line 11: Line 11:


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, automake1.9, 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)
Line 21: Line 21:
*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 packages ''simgear-dev'' and ''openscenegraph-dev'' '''must not''' be installed. They can safely be re-installed after compilation.
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 other than in the Debian repository.




Line 28: Line 28:
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.


...
 
Follow the instructions listed below to fetch the sources and the data needed by FlightGear and the commands to build/install each source.
Follow the instructions listed below to fetch the sources and the data needed by FlightGear and the commands to build/install each source.


Line 59: Line 59:
=== OpenSceneGraph ===
=== OpenSceneGraph ===
<u>2.2.0 only:</u>
<u>2.2.0 only:</u>
  cd $srcdir
  su -c "apt-get install libopenscenegraph-dev"
  svn co -r 12170 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk OpenSceneGraph
<!-- cd $srcdir
  svn co -r 12170 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk OpenSceneGraph -->


<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.<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
<u>2.2.0 and GIT:</u>
  ln -s lib $prefix/lib64  # 64bit OS' only, if lib64 does not exist
  ln -s lib $prefix/lib64  # 64bit OS' only, if lib64 does not exist
  mkdir osg-build && cd osg-build
  mkdir osg-build && cd osg-build
Line 73: Line 72:
       -D CMAKE_INSTALL_PREFIX:PATH="$prefix" $srcdir/OpenSceneGraph
       -D CMAKE_INSTALL_PREFIX:PATH="$prefix" $srcdir/OpenSceneGraph
  make install
  make install




392

edits

Navigation menu