Building FlightGear - Linux: Difference between revisions

Jump to navigation Jump to search
m
Line 104: Line 104:
  FGFS_PREFIX_LIB=${FGFS_PREFIX}/lib64
  FGFS_PREFIX_LIB=${FGFS_PREFIX}/lib64


== Simgear ==
== SimGear ==
The source code of Simgear can be provided:
The source code of SimGear can be provided:
* as an official release that can be downloaded from [https://sourceforge.net/projects/flightgear/files/ here]. The environment variable <code>SIMGEAR_VERSION</code> must be set to the relevant version of Simgear, for example <code>SIMGEAR_VERSION=2019.1.1</code> and then using the following commands to extract the source code:
* as an official release that can be downloaded from [https://sourceforge.net/projects/flightgear/files/ here]. The environment variable <code>SIMGEAR_VERSION</code> must be set to the relevant version of SimGear, for example <code>SIMGEAR_VERSION=2019.1.1</code> and then using the following commands to extract the source code:


  cd -- "${FGFS_PREFIX}/src/"
  cd -- "${FGFS_PREFIX}/src/"
Line 113: Line 113:
  tar axvf "${FGFS_PREFIX}/src/simgear-${SIMGEAR_VERSION}.tar.bz2"
  tar axvf "${FGFS_PREFIX}/src/simgear-${SIMGEAR_VERSION}.tar.bz2"


* as a clone of the Simgear Git repo by using the following commands:
* as a clone of the SimGear Git repo by using the following commands:


  cd -- "${FGFS_PREFIX}/src/"
  cd -- "${FGFS_PREFIX}/src/"
Line 119: Line 119:
  SIMGEAR_SRC=${FGFS_PREFIX}/src/flightgear-simgear
  SIMGEAR_SRC=${FGFS_PREFIX}/src/flightgear-simgear


* if you have already a clone of the Simgear Git repo, the local copy can be updated using the following commands:
* if you have already a clone of the SimGear Git repo, the local copy can be updated using the following commands:


  cd -- "${FGFS_PREFIX}/src/"
  cd -- "${FGFS_PREFIX}/src/"
Line 127: Line 127:
  popd
  popd


Now that the source code of Simgear is available under the directory <code>${SIMGEAR_SRC}</code>, the build can be started using the following commands:
Now that the source code of SimGear is available under the directory <code>${SIMGEAR_SRC}</code>, the build can be started using the following commands:


  cd -- "${FGFS_PREFIX}/src/"
  cd -- "${FGFS_PREFIX}/src/"
88

edits

Navigation menu