88
edits
m (→Definitions) |
m (→Flightgear) |
||
Line 143: | Line 143: | ||
rm -Rf -- "${FGFS_PREFIX}/src/sg_build/" | rm -Rf -- "${FGFS_PREFIX}/src/sg_build/" | ||
== | == FlightGear == | ||
The data for | 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 | * 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 | * 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 | 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 | * 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 | * 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 | * 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 | 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}/ | FG_ROOT=${FGFS_PREFIX_LIB}/FlightGear make --jobs=${NR_JOBS} -- test_suite | ||
FG_ROOT=${FGFS_PREFIX_LIB}/ | FG_ROOT=${FGFS_PREFIX_LIB}/FlightGear make -- test | ||
make -- install | make -- install | ||
popd | popd |
edits