Scripted Compilation on Linux Debian/Ubuntu: Difference between revisions

m
Normalize references and amend wording
m (Normalize references and amend wording)
Line 1: Line 1:
<tt>download_and_compile.sh</tt> is a [https://www.gnu.org/software/bash/ Bash] script that takes care of downloading and compiling FlightGear from the Git repositories with just one command execution<ref name="just-one-command">Due to technical problems on the [https://sourceforge.net/ 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 [https://www.debian.org/ Debian]-based systems (Debian, [https://www.ubuntu.com/ Ubuntu], [https://devuan.org/ Devuan], [https://www.linuxmint.com/ Linux Mint], etc.). Pre-existing installed versions (if any) of FlightGear 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 and applications. For RedHat-based systems such as Fedora and CentOS, you may want to check out [[CentOS]].
<tt>download_and_compile.sh</tt> is a [https://www.gnu.org/software/bash/ Bash] script that takes care of downloading and compiling FlightGear from the Git repositories with just one command execution<ref name="just-one-command">Due to technical problems on the [https://sourceforge.net/ 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 [https://www.debian.org/ Debian]-based systems (Debian, [https://www.ubuntu.com/ Ubuntu], [https://devuan.org/ Devuan], [https://www.linuxmint.com/ Linux Mint], etc.). Pre-existing installed versions (if any) of FlightGear 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 and applications. For RedHat-based systems such as Fedora and CentOS, you may want to check out [[CentOS]].


By default, <tt>download_and_compile.sh</tt> installs most dependencies with <tt>apt-get</tt> run under <tt>sudo</tt>.<ref name="note-on-changing-how-packages-are-installed">This can be changed with options <code>--package-manager</code> and <code>--sudo</code>, or completely turned off with option <code>-pn</code> (see the output of <code>download_and_compile.sh --help</code> for the list of available options).</ref> Other dependencies, either because they aren't available in the standard APT repositories, or because it was explicitly requested using the non-option arguments of <tt>download_and_compile.sh</tt>, are downloaded and compiled on the fly (this can be the case for [[Plib]], [[Simgear]] and [[OSG]], for instance—depending on the arguments passed to <tt>download_and_compile.sh</tt>).
By default, <tt>download_and_compile.sh</tt> installs most dependencies with <tt>apt-get</tt> run under <tt>sudo</tt>.<ref name="note-on-changing-how-packages-are-installed">This can be changed with options <code>--package-manager</code> and <code>--sudo</code>, or completely turned off with option <code>-pn</code> (see the output of <code>download_and_compile.sh --help</code> for the list of available options).</ref> Other dependencies, either because they aren't available in the standard APT repositories, or because it was explicitly requested using the non-option arguments of <tt>download_and_compile.sh</tt>, are downloaded and compiled on the fly (this can be the case for [[PLIB]], [[Simgear]] and [[OpenSceneGraph]], for instance—depending on the arguments passed to <tt>download_and_compile.sh</tt>).


For hints on using a RPM-based distribution like CentOS, please see [[CentOS]].
For hints on using a RPM-based distribution like CentOS, please see [[CentOS]].
Line 9: Line 9:
=== Update Available ===
=== Update Available ===


The latest version of <tt>download_and_compile.sh</tt> can be obtained [https://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/download_and_compile.sh?format=raw here], however there are advantages getting it from an [https://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/ FGMeta] clone as explained [[User:Rominet#Getting_download_and_compile.sh_the_.E2.80.9Cright_way.E2.80.9D|here]]. Contents should be moved from [[User:Rominet|there]] to this page; what follows hasn't been updated recently.
The latest version of <tt>download_and_compile.sh</tt> can be obtained [https://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/download_and_compile.sh?format=raw here], however there are advantages getting it from an [https://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/ FGMeta] clone as explained [[User:Rominet#Getting_download_and_compile.sh_the_.E2.80.9Cright_way.E2.80.9D|here]]. Contents should be moved from [[User:Rominet|there]] to this page; significant parts of what follows on this page haven't been updated recently.


=== Cut to the Chase: for the impatient ===
=== Cut to the Chase: for the impatient ===
377

edits