Building FlightGear - Devuan: Difference between revisions

Jump to navigation Jump to search
Update for the 2024.1 release
(Update for Devuan Daedalus / Debian Bookworm)
(Update for the 2024.1 release)
Line 11: Line 11:


'''Tools'''
'''Tools'''
: On Devuan Chimaera (Debian Bullseye) packages <code>g++-9</code> and <code>gcc-9</code> are required additionally. To utilize these older versions apply environment variables to SimGear's and FlightGear's cmake commands like so: <code>CC=gcc-9 CXX=g++-9 cmake [...]</code>.
  su - -c "apt-get install cmake g++ gcc git make sed"
  su - -c "apt-get install cmake g++ gcc git make sed"


Line 17: Line 16:
'''Dependencies'''
'''Dependencies'''
: 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.
: [[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 libpopenscenegraph-dev libsimgear-dev"


: [[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> and <code>libsimgear-dev</code>.
  su - -c "apt-get install freeglut3-dev libavcodec-dev libavformat-dev libboost-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"
  su - -c "apt-get install freeglut3-dev libboost-dev libcurl4-openssl-dev libdbus-1-dev libeudev-dev libevent-dev libfreetype6-dev libglew-dev liblzma-dev libopenal-dev libopenscenegraph-dev libqt5quick5 libqt5svg5-dev libxi-dev libxmu-dev pkg-config qtbase5-dev qtbase5-private-dev qtdeclarative5-dev qttools5-dev zlib1g-dev"




Line 29: Line 30:


  # Examples, adapt to your own needs:
  # Examples, adapt to your own needs:
  export FG_VERSION=release/2020.3
  export FG_VERSION=release/2024.1
  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 57: Line 58:




<!--
=== [[OpenSceneGraph]] ===
=== [[OpenSceneGraph]] ===
Required only for building "next": <br />
Recommended version is 3.4.1 while the Devuan/Debian repo only provides 3.4.0. Plus, at this time, SimGear does not compile against 3.4.0 so we have to compile it ourselfes.
  cd $FG_SRC_DIR
  cd $FG_SRC_DIR
  <nowiki>git clone --branch OpenSceneGraph-3.4.1 git://github.com/openscenegraph/OpenSceneGraph.git OpenSceneGraph.git</nowiki>
  <nowiki>git clone https://gitlab.com/flightgear/openscenegraph.git FG-OpenSceneGraph.git</nowiki>
cd FG-OpenSceneGraph.git
git checkout release/2024-build
  mkdir -p $FG_SRC_DIR/build-osg && cd $FG_SRC_DIR/build-osg
  mkdir -p $FG_SRC_DIR/build-osg && cd $FG_SRC_DIR/build-osg
  cmake -D LIB_POSTFIX="" -D CMAKE_INSTALL_PREFIX:PATH="$FG_INSTALL_DIR" $FG_SRC_DIR/OpenSceneGraph.git
  cmake -D LIB_POSTFIX="" -D CMAKE_INSTALL_PREFIX:PATH="$FG_INSTALL_DIR" $FG_SRC_DIR/FG-OpenSceneGraph.git
  make -j$(nproc)
  make -j$(nproc)
  make install
  make install
-->
 


=== [[SimGear]] ===
=== [[SimGear]] ===
Line 112: Line 111:


To make it permanent and less complicated one option would be to create an alias:
To make it permanent and less complicated one option would be to create an alias:
  echo -e "alias flightgear='LD_LIBRARY_PATH=$FG_INSTALL_DIR/lib\
  echo -e "alias fgfs='LD_LIBRARY_PATH=$FG_INSTALL_DIR/lib/:$LD_LIBRARY_PATH $FG_INSTALL_DIR/bin/fgfs' \n" >> $HOME/.bashrc
  $FG_INSTALL_DIR/bin/fgfs --launcher' \n" >> $HOME/.bashrc
  source $HOME/.bashrc
  source $HOME/.bashrc
: Now running <code>flightgear</code> will start the simulator.
: Now running <code>fgfs --launcher</code> will start the simulator.
 
To keep the source code git repos up to date have a look at our [[Git_for_Laymen#How_do_I_use_the_git_repository_to_update_Flightgear_stuff.3F|git for laymen]] section.


Please report issues or any kind of feedback to the [[Talk:Building_FlightGear_-_Devuan|talk page]].
To keep the source code git repos up to date have a look at our [[Git_for_Laymen#Keeping_it_current|git for laymen]] section.




Line 126: Line 122:
  cd $FG_SRC_DIR/build-fg && make uninstall
  cd $FG_SRC_DIR/build-fg && make uninstall
  cd $FG_SRC_DIR/build-sg && make uninstall
  cd $FG_SRC_DIR/build-sg && make uninstall
  cd $FG_SRC_DIR/build-plib && make uninstall
  cd $FG_SRC_DIR/build-osg && make uninstall; rm -R $FG_SRC_DIR/lib/osgPlugins-3.6.5
  rm -R $FG_INSTALL_DIR/share/fgdata
  rm -RI $FG_INSTALL_DIR/include/plib; rm $FG_INSTALL_DIR/lib/libplib*.a
<!-- cd $FG_SRC_DIR/build-osg && make uninstall -->
rm -RI $FG_INSTALL_DIR/share/fgdata
 
Please report issues or any kind of feedback to the [[Talk:Building_FlightGear_-_Devuan|talk page]].




{{Building}}
{{Building}}
406

edits

Navigation menu