Changes

Building Flightgear - CentOS

130 bytes added, 13 April
m
no edit summary
{{Under Construction}}
 
= Preparation =
A "Minimal Install" of CentOS 8 (64 bits) is needed.
* <code>NR_JOBS</code>: Number of jobs for parallel compilation. For example: <code>NR_JOBS=$(/usr/bin/nproc)</code>.
* <code>FGFS_PREFIX</code>: Prefix of the Flightgear installation. For example: <code>FGFS_PREFIX=${HOME}/Flightgear</code>. All the source code must be located under the directory <code>${FGFS_PREFIX}/src</code> and the installation will be done under the directory <code>${FGFS_PREFIX}</code> as <code>${FGFS_PREFIX}/bin</code>, <code>${FGFS_PREFIX}/include</code>, <code>${FGFS_PREFIX}/lib</code>,...
* <code>OPENSCENEGRAPH_VERSION</code>: Version of OpenSceneGraph. For example: <code>OPENSCENEGRAPH_VERSION=3.6.45</code>.
= OpenSceneGraph =
-DCMAKE_VERBOSE_MAKEFILE=TRUE
make --jobs=${NR_JOBS}
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${FGFS_PREFIX}/lib64/
FG_ROOT=${FGFS_PREFIX}/lib64/Flightgear make --jobs=${NR_JOBS} -- test_suite || true
make -- test
make -- install
tar axvf "${FGFS_PREFIX}/src/FlightGear-${FLIGHTGEAR_VERSION}-data.tar.bz2"
popd
pushd -- "${FGFS_PREFIX}/liblib64/"
ln --symbolic -- "FlightGear-${FLIGHTGEAR_VERSION}/fgdata/" FlightGear
popd
cd -- "${FGFS_PREFIX}"
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${FGFS_PREFIX}/lib64/
./bin/fgfs
[[Category:Building from source]]
85
edits