Building FlightGear - Linux: Difference between revisions

Jump to navigation Jump to search
m
Line 143: Line 143:
  rm -Rf -- "${FGFS_PREFIX}/src/sg_build/"
  rm -Rf -- "${FGFS_PREFIX}/src/sg_build/"


== Flightgear ==
== FlightGear ==
The data for Flightgear can be provided:
The data for FlightGear can be provided:
* as an official release that can be downloaded from [https://sourceforge.net/projects/flightgear/files/ here].
* as an official release that can be downloaded from [https://sourceforge.net/projects/flightgear/files/ here].
  rm -f -- "${FGFS_PREFIX_LIB}/FlightGear"
  rm -f -- "${FGFS_PREFIX_LIB}/FlightGear"
Line 156: Line 156:
  popd
  popd


* as a clone of the Flightgear Git repo by using the following commands:
* as a clone of the FlightGear Git repo by using the following commands:


  pushd -- "${FGFS_PREFIX_LIB}/"
  pushd -- "${FGFS_PREFIX_LIB}/"
Line 163: Line 163:
  popd
  popd


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


  pushd -- "${FGFS_PREFIX_LIB}/flightgear-fgdata/"
  pushd -- "${FGFS_PREFIX_LIB}/flightgear-fgdata/"
Line 169: Line 169:
  popd
  popd


The source code of Flightgear can be provided:
The source code of FlightGear can be provided:
* as an official release that can be downloaded from [https://sourceforge.net/projects/flightgear/files/ here]. The version of Simgear and Flightgear must match. The environment variable <code>FLIGHTGEAR_VERSION</code> must be set to the relevant version of Flightgear, for example <code>FLIGHTGEAR_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 version of SimGear and FlightGear must match. The environment variable <code>FLIGHTGEAR_VERSION</code> must be set to the relevant version of FlightGear, for example <code>FLIGHTGEAR_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 177: Line 177:
  tar axvf "${FGFS_PREFIX}/src/flightgear-${FLIGHTGEAR_VERSION}.tar.bz2"
  tar axvf "${FGFS_PREFIX}/src/flightgear-${FLIGHTGEAR_VERSION}.tar.bz2"


* as a clone of the Flightgear Git repo by using the following commands:
* as a clone of the FlightGear Git repo by using the following commands:


  cd -- "${FGFS_PREFIX}/src/"
  cd -- "${FGFS_PREFIX}/src/"
Line 183: Line 183:
  FLIGHTGEAR_SRC=${FGFS_PREFIX}/src/flightgear-flightgear
  FLIGHTGEAR_SRC=${FGFS_PREFIX}/src/flightgear-flightgear


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


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


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


  cd -- "${FGFS_PREFIX}/src/"
  cd -- "${FGFS_PREFIX}/src/"
Line 204: Line 204:
  make --jobs=${NR_JOBS}
  make --jobs=${NR_JOBS}
  export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${FGFS_PREFIX_LIB}/
  export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${FGFS_PREFIX_LIB}/
  FG_ROOT=${FGFS_PREFIX_LIB}/Flightgear make --jobs=${NR_JOBS} -- test_suite
  FG_ROOT=${FGFS_PREFIX_LIB}/FlightGear make --jobs=${NR_JOBS} -- test_suite
  FG_ROOT=${FGFS_PREFIX_LIB}/Flightgear make -- test
  FG_ROOT=${FGFS_PREFIX_LIB}/FlightGear make -- test
  make -- install
  make -- install
  popd
  popd
88

edits

Navigation menu