So I created a bash script for doing it all with a single command . This makes it much easier to test any new RC/release or even GIT. The installation of everything (including the dependency libraries from OpenSceneGraph and Simgear) is within one folder anywhere you wish and have write access, you don't need root rights to perform this. Uninstalling is as simple as deleting that single folder. Of course you might want to symlink your aircraft and scenery folders (or change this in your launcher).
You need to feed it the uncompressed folders with source files and fgdata.
One of the outputs is a script which is usable in place of the fgfs executable, it contains all the evironment variables needed for this self-contained installation to run and passes all command line arguments to the fgfs binary.
Get the script here: http://pastebin.com/h85DxvwT
Instructions (as containd in a comment in the script itself):
- Code: Select all
# User-friendly single-command FlightGear compilation for Linux
# by Tomaskom
#
# This bash script handles everything needed to compile FlightGear
# as a standalone isolated installation, not colliding with any other
# FlightGear version possibly already present on the system. Everything
# is handled automatically without any user interaction and knowledge
# of the build system. The whole installation (FlightGear + its
# dependency libraries from the OpenSceneGraph and Simgear packages) is
# contained within a single folder and can be "uninstalled" simply by
# deleting it.
#
# The user must however already have some dependencies installed on
# the system, including:
# make automake cmake gcc gcc-c++ boost-devel freeglut-devel plib-devel
# openal-soft-devel (package names may slightly vary on your distro)
#
# All the user needs to supply as the input are the uncompressed folders
# with Flightgear, OpenSceneGraph and Simgear sources, together with the
# fgdata folder containing the FlightGear-data package. The folders must
# be placed in the same folder as this script and their names must be
# assigned to the variables below. To my knowledge, the Simgear version
# must exactly match the Flightgear version, OpenSceneGraph needs to be
# present in the same version or higher.
# Flightgear is installed to a newly created folder (its name is
# assigned to the INST_D variable). Don't create this folder manually,
# or the process will fail. This is to prevent overwriting any existing
# data. To restart after a failed attempt, simply delete that folder.
#
# At the end, a script usable as the fgfs executable for the just
# installed FlightGear version is created.
# The process will stop upon any error, and can be completely stopped by
# using the Ctrl+C (interrupt) signal at any time as well.