Building Flightgear - CentOS: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
m (Fix OSG build: lib64)
mNo edit summary
(2 intermediate revisions by the same user not shown)
Line 18: Line 18:
     libXrandr-devel.x86_64 libXinerama-devel.x86_64 zlib-devel.x86_64 expat-devel.x86_64 boost.x86_64 openal-soft-devel.x86_64 cmake.x86_64 \
     libXrandr-devel.x86_64 libXinerama-devel.x86_64 zlib-devel.x86_64 expat-devel.x86_64 boost.x86_64 openal-soft-devel.x86_64 cmake.x86_64 \
     mesa-libEGL-devel.x86_64 jasper-devel.x86_64 gstreamer1-devel.x86_64 SDL2-devel.x86_64 poppler-glib-devel.x86_64 lua-devel.x86_64 fltk-devel.x86_64 boost-devel.x86_64 \
     mesa-libEGL-devel.x86_64 jasper-devel.x86_64 gstreamer1-devel.x86_64 SDL2-devel.x86_64 poppler-glib-devel.x86_64 lua-devel.x86_64 fltk-devel.x86_64 boost-devel.x86_64 \
     dbus-devel.x86_64 libevent-devel.x86_64 glew-devel.x86_64
     dbus-devel.x86_64 libevent-devel.x86_64 glew-devel.x86_64 qt5-qtdeclarative-devel.x86_64 qt5-qtsvg-devel.x86_64 qt5-linguist.x86_64


The <code>plib</code> package is not available for CentOS 8. The package from CentOS 7 can be used instead. After downloading the following packages:
The <code>plib</code> package is not available for CentOS 8. The package from CentOS 7 can be used instead. After downloading the following packages:
Line 136: Line 136:
  popd
  popd
  rm -Rf -- "${FGFS_PREFIX}/src/fg_build/"
  rm -Rf -- "${FGFS_PREFIX}/src/fg_build/"
The data for Flightgear can be provided:
* as an official release that can be downloaded from [https://sourceforge.net/projects/flightgear/files/ here].
rm -f -- "${FGFS_PREFIX}/lib/FlightGear"
rm -Rf -- "${FGFS_PREFIX}/lib/FlightGear-${FLIGHTGEAR_VERSION}/"
mkdir --parents -- "${FGFS_PREFIX}/lib/FlightGear-${FLIGHTGEAR_VERSION}/"
pushd -- "${FGFS_PREFIX}/lib/FlightGear-${FLIGHTGEAR_VERSION}/"
tar axvf "${FGFS_PREFIX}/src/FlightGear-${FLIGHTGEAR_VERSION}-data.tar.bz2"
popd
pushd -- "${FGFS_PREFIX}/lib/"
ln --symbolic -- "FlightGear-${FLIGHTGEAR_VERSION}/fgdata/" FlightGear
popd
* as a clone of the Flightgear Git repo by using the following commands:
pushd -- "${FGFS_PREFIX}/lib64/"
git clone --depth 1 https://git.code.sf.net/p/flightgear/fgdata flightgear-fgdata
ln --symbolic -- "flightgear-fgdata/" FlightGear
popd
* if you have already a clone of the Flightgear Git repo, the local copy can be updated using the following commands:
pushd -- "${FGFS_PREFIX}/lib64/flightgear-fgdata/"
git pull
popd
= Start Flightgear =
cd -- "${FGFS_PREFIX}"
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${FGFS_PREFIX}/lib64
./bin/fgfs
[[Category:Building from source]]
88

edits

Navigation menu