406
edits
(Update for Devuan Daedalus / Debian Bookworm) |
(Update for the 2024.1 release) |
||
Line 11: | Line 11: | ||
'''Tools''' | '''Tools''' | ||
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" | |||
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 | |||
Line 29: | Line 30: | ||
# Examples, adapt to your own needs: | # Examples, adapt to your own needs: | ||
export FG_VERSION=release/ | 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]] === | ||
cd $FG_SRC_DIR | cd $FG_SRC_DIR | ||
<nowiki>git clone | <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 | echo -e "alias fgfs='LD_LIBRARY_PATH=$FG_INSTALL_DIR/lib/:$LD_LIBRARY_PATH $FG_INSTALL_DIR/bin/fgfs' \n" >> $HOME/.bashrc | ||
source $HOME/.bashrc | source $HOME/.bashrc | ||
: Now running <code> | : 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#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- | cd $FG_SRC_DIR/build-osg && make uninstall; rm -R $FG_SRC_DIR/lib/osgPlugins-3.6.5 | ||
rm - | rm -RI $FG_INSTALL_DIR/include/plib; rm $FG_INSTALL_DIR/lib/libplib*.a | ||
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}} |
edits