Building Flightgear - Ubuntu
Jump to navigation
Jump to search
Preparation
A "Minimal Install" of Ubuntu 20.04 (64 bits) is needed.
Requirements
All the commands are run in bash
as normal user (not root
). The user needs sudo
access to install packages.
The following packages need to be installed on the the system before starting the build of FlightGear. The packages can be install using the apt
command:
sudo apt install libplib-dev libopenscenegraph-dev cmake g++ libboost-all-dev libopenal-dev libglew-dev \ libcurl4-openssl-dev libfreetype-dev \ libqt5svg5-dev qttools5-dev libqt5websockets5-dev qtbase5-private-dev qtdeclarative5-private-dev qml-module-qtquick2
Definitions
The following environment variables must be set because they will be used in shell commands:
NR_JOBS
: Number of jobs for parallel compilation. For example:NR_JOBS=$(/usr/bin/nproc)
.FGFS_PREFIX
: Prefix of the Flightgear installation. For example:FGFS_PREFIX=${HOME}/Flightgear
. All the source code must be located under the directory${FGFS_PREFIX}/src
and the installation will be done under the directory${FGFS_PREFIX}
as${FGFS_PREFIX}/bin
,${FGFS_PREFIX}/include
,${FGFS_PREFIX}/lib
,...FGFS_PREFIX_LIB=${FGFS_PREFIX}/lib
in the specific case of Ubuntu.