Building FlightGear - Devuan: Difference between revisions

Jump to navigation Jump to search
m
OSG update and some dependencies
m (Temporarily remove OSG from the equation until issues are resolved.)
m (OSG update and some dependencies)
Line 17: Line 17:
: If you prefer you might replace <code>libcurl4-openssl-dev</code> by <code>libcurl4-gnutls-dev</code>.
: If you prefer you might replace <code>libcurl4-openssl-dev</code> by <code>libcurl4-gnutls-dev</code>.
: For VR support add package <code>libopenxr-dev</code> to the list below.
: For VR support add package <code>libopenxr-dev</code> to the list below.
: [[File:Zeichen_144_icon.png|21px]] During installation development packages of libraries which are going to be compiled ''must not'' be installed. They can safely be re-installed after compilation. Namely these are <code>libplib-dev</code><!--, <code>libpopenscenegraph-dev</code>--> and <code>libsimgear-dev</code>.
: [[File:Zeichen_144_icon.png|21px]] During installation development packages of libraries which are going to be compiled ''must not'' be installed. They can safely be re-installed after compilation. Namely these are <code>libplib-dev</code>, <code>libpopenscenegraph-dev</code> and <code>libsimgear-dev</code>.
  su - -c "apt-get remove libplib-dev libsimgear-dev"
  su - -c "apt-get remove libopenscenegraph-dev, libplib-dev libsimgear-dev"
<!-- libpopenscenegraph-dev-->


  su - -c "apt-get install freeglut3-dev libavcodec-dev libavformat-dev libboost-dev libc-ares-dev libcurl4-openssl-dev libdbus-1-dev libeudev-dev libevent-dev libfreetype6-dev libglew-dev liblzma-dev libopenal-dev libqt5quick5 libqt5svg5-dev libswscale-dev libxi-dev libxmu-dev pkg-config qtbase5-dev qtbase5-private-dev qtdeclarative5-dev qttools5-dev zlib1g-dev libopenscenegraph-dev"
  su - -c "apt-get install freeglut3-dev libavcodec-dev libavformat-dev libboost-dev libc-ares-dev libcurl4-openssl-dev libdbus-1-dev libeudev-dev libevent-dev libfreetype6-dev libglew-dev libjpeg62-turbo-dev liblzma-dev libopenal-dev libqt5quick5 libqt5svg5-dev librsvg2-dev libswscale-dev libxi-dev libxmu-dev pkg-config qtbase5-dev qtbase5-private-dev qtdeclarative5-dev qttools5-dev zlib1g-dev"




Line 31: Line 30:


  # Examples, adapt to your own needs:
  # Examples, adapt to your own needs:
  export FG_VERSION=release/2024.1 #OR# export FG_VERSION=next
  export FG_VERSION=release/2024.1   #OR#   export FG_VERSION=next
  export FG_SRC_DIR=$HOME/src/
  export FG_SRC_DIR=$HOME/src/
  export FG_INSTALL_DIR=$HOME/FlightGear/
  export FG_INSTALL_DIR=$HOME/FlightGear/
Line 58: Line 57:
  make install
  make install


<!--
 
=== [[OpenSceneGraph]] ===
=== [[OpenSceneGraph]] ===
To compile FlightGear release version branch <code>release/2024-build</code> is required, for FlightGear next branch <code>fgfs-osg-36-2</code>.
To compile FlightGear release version branch <code>release/2024-build</code> is required, for FlightGear next branch <code>next</code>.
  export FG_OSG_VERSION=release/2024-build  #OR#  export FG_OSG_VERSION=fgfs-osg-36-2
  if [ "$FG_VERSION" = "release/2024.1" ]; then export FG_OSG_VERSION=release/2024-build; fi
  if [ "$FG_VERSION" = "next" ]; then export FG_OSG_VERSION=next; fi


  cd $FG_SRC_DIR
  cd $FG_SRC_DIR
Line 71: Line 71:
  make -j$(nproc)
  make -j$(nproc)
  make install
  make install
<!--
libgdal-dev libsdl2-dev libcairo2-dev libgtk2.0-dev libgtkglext1-dev libxrandr-dev libxinerama-dev libdcmtk-dev libgles2-mesa-dev libcoin-dev
-->
-->


=== [[SimGear]] ===
=== [[SimGear]] ===
Line 111: Line 115:
  $FG_INSTALL_DIR/bin/fgfs --launcher
  $FG_INSTALL_DIR/bin/fgfs --launcher
: The <code>fgfs</code> binary needs to find our self compiled libraries at runtime and therefore we have to tell the linker (ld) where to find them. That is what the first line here does.
: The <code>fgfs</code> binary needs to find our self compiled libraries at runtime and therefore we have to tell the linker (ld) where to find them. That is what the first line here does.
: Since [http://www.linfo.org/path_env_var.html $PATH] most likely does not cover the FG_INSTALL_DIR the full path to the fgfs binary is required to run it.
: Since [http://www.linfo.org/path_env_var.html $PATH] most likely does not cover the FG_INSTALL_DIR, the full path to the fgfs binary is required to run it.
: Even though it's a tad more laborious than installing it to <code>/usr/local/</code>, this approach has the advantage of easlily managing several FlightGear installations.
: Even though it's a tad more laborious than installing it to <code>/usr/local/</code>, this approach has the advantage of easlily managing several FlightGear installations.


406

edits

Navigation menu