Difference between revisions of "Building Flightgear - Ubuntu"

From FlightGear wiki
Jump to navigation Jump to search
m
m (grammar)
 
Line 5: Line 5:
 
All the commands are run in <code>bash</code> as normal user (not <code>root</code>). The user needs  <code>sudo</code> access to install packages.
 
All the commands are run in <code>bash</code> as normal user (not <code>root</code>). The user needs  <code>sudo</code> access to install packages.
  
The following packages need to be install on the the system before starting the build of FlightGear. The packages can be install using the <code>apt</code> command:
+
The following packages need to be installed on the the system before starting the build of FlightGear. The packages can be install using the <code>apt</code> command:
  
 
  sudo apt install libplib-dev libopenscenegraph-dev cmake g++ libboost-all-dev libopenal-dev libglew-dev \
 
  sudo apt install libplib-dev libopenscenegraph-dev cmake g++ libboost-all-dev libopenal-dev libglew-dev \

Latest revision as of 18:01, 17 November 2020

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.

Compiling