Next Generation of FlightGearBuilder, by Megaf
FlightGearBuilder-NG Is a Shell Script that is used to build the FlightGear Flight Simulator from it's source code.
It will download, configure and compile FlightGear and its main dependencies.
Running FlightGearBuilder-NG
./FlightGearBuilder-NG --install-plib --install-osg \
--install-simgear --install-flightgear
- By default, FlightGear will be installed to
/home/$USER/FlightGear
. - You can change the install location with the
--install-dir="/path"
flag. - DO NOT run two instances of the script at the same time!
- DO NOT run two instances of two difference versions of FlightGear!
- FlightGear Stable and FlightGear Next will share FGData, Aircraft, Scenery and Downloads.
You need to specify which "component" you want the script to build and install.
The following options are available:
--install-plib
: Installs Plib--install-osg
: Installs OpenSceneGraph--install-osgxr
: Install osgXR, enabled VR support in FlightGear--install-simgear
: Install SimGear--install-flightgear
: Installs FlightGear
FlightGear depends on SimGear, OSG and Plib.
SimGear depends on OSG.
osgXR depends on OSG.
You can specify them in any order and the script will figure out the right install order for you.
cd FlightGearBuilder-NG
./FlightGearBuilder-NG --install-osg --install-flightgear --install-plib --install-simgear
You can also tell the script to not download, run cmake, compile or install your component selection.
--no-download
: Will not download/update the source code before trying to compile it.--no-cmake
: Will not runcmake
, jumping straight to compiling.--no-compile
: Will not runmake
.--no-install
: Will not runmake install
.--no-config
| Will not create a custom configuration file for FlightGear.
The script should be clever enough to find the main software to build FlightGear, things like gcc
, cmake
, git
and so on.
Specific dependencies will be pointed out by each component's own cmake however.
By the way, --help
. Try it.