Jump to: navigation, search

Scripted Compilation on Linux Debian/Ubuntu

1,988 bytes added, 14:44, 30 April 2019
Streamline general introduction and add an Introduction section as recommended by the wiki's Manual of Style
<tt></tt> is a [ Bash] script that takes care of downloading and compiling FlightGear and related software from the Git their source code repositories with just one command execution<ref name="just-one-command">Due to technical problems on the [ SourceForge] side, this is currently only true once you have an [[FGData]] clone. See [[User:Rominet|here]] for details.</ref> for both 32-bit and 64-bit [ Debian]-based systems (Debian, [ Ubuntu], [ Devuan], [ Linux Mint], etc.). Pre-existing installed versions (if any) of FlightGear the software installed by <tt></tt> are not touched at all since the script downloads, builds and installs everything under the directory in which it is launched. You can choose between building all or only specific tools the particular components to download, build and applications. For RedHat-based systems such as Fedora and CentOS, you may want to check out [[CentOS]]install.
By defaultUnless told not to do so, <tt></tt> installs most dependencies packages with <tt>apt-get</tt> run under <tt>sudo</tt>.<ref name="note-For this reason, it is primarily useful onDebian-changing-how-packages-are-installed">This can be changed with options <code>--based distributions. However, if one disables package-manager</code> and installation (using <code>--sudopn</code>, or completely turned off with option <code>-pn</code> (see the output of <code> --helpsudo=echo</code> for ) and installs the list of available options).</ref> Other corresponding dependenciesoneself, either because they aren't available in the standard APT repositories, or because it was explicitly requested using the non-option arguments of <tt></tt>, are downloaded and compiled on the fly (this can might be the case for [[PLIB]], [[Simgear]] and [[OpenSceneGraph]], for instance—depending useful on the arguments passed to <tt></tt>)other distributions as well.
For hints on using a RPM<tt>rpm</tt>-based distribution like distributions such as Redhat, Fedora and CentOS, please see [[CentOS]]. Please also see [[Superbuild]].
Please also see === Introduction === <tt></tt> is a [ Bash] script written for [Superbuild Debian]-derived distributions ([ Ubuntu], [ Devuan], [ Linux Mint], etc.). Its purpose is to automatically install dependencies using the package manager, then build and install FlightGear-related programs. By default, <tt></tt> installs most dependencies with <tt>apt-get</tt> run under <tt>sudo</tt>.<ref name="disabling-installation-of-dependencies-via-package-manager">If you think you already have the dependencies, this installation can be disabled either by using option <code>-pn</code> or by passing option <code>--sudo=echo</code> (the latter results in printing the <tt>apt-get</tt> command line without running it).</ref> Other dependencies, either because they aren't available in the standard APT repositories, or because of non-option arguments passed to <tt></tt>, are downloaded and compiled on the fly (this can be the case for [[PLIB]], [[Simgear]] and [[OpenSceneGraph]], for instance—it all depends on the arguments passed to the script). <tt></tt> works in the directory it is run from: apart from dependencies installed via the package manager, all programs built by <tt></tt> are installed under the <tt>install</tt> subdirectory of the directory from which the script was run. In other words, installation of programs by <tt></tt> is clean, very easy to undo and doesn't interfere with other programs on the system. It is possible to manage several directory trees with <tt></tt>; as far as it is concerned, such directory trees are completely independent from each other. For instance, if you run <tt></tt> in <tt>dir1</tt> and <tt>dir2</tt>, the programs installed under <tt>dir1</tt> won't “see” those installed under <tt>dir2</tt>, and vice versa. Apart from its main purpose, <tt></tt> can be used to find hopefully up-to-date build-dependency information for FlightGear and related software. You would do so by inspecting [ the script] at the point where it installs packages.<ref name="note-inspecting-download-and-compile-sh-to-gather-build-dependency-information">Look for strings such as <tt>zlib1g-dev</tt>, <tt>libglew-dev</tt> or <tt>qt5-default</tt>.</ref>
=== Update Available ===

Navigation menu