Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Changes

Jump to: navigation, search
Update start of page
The following <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 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 version 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 Fedoraand CentOS, CentOS) you may want to check out [[CentOS]].
Necessary 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 via ">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 aptoutput of <code>download_and_compile.sh -get system while libraries not included -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 (i.e. this can be the case for [[Plib]], [[Simgear]] and [[OSG]], for instance—depending on the arguments passed to <tt>download_and_compile.sh</tt>).
For Hints hints on Using using a RPM -based distribution like CentOS, please see [[CentOS]].
Please also see [[Superbuild]].
=== Update Available ===
The FlightGear development team has published latest version 2.34 of the script. download the newest script with this command:  wget -O <tt>download_and_compile.sh http</tt> can be obtained [https://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/download_and_compile.sh?format=rawhere], 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.
=== Cut to the Chase: for the impatient ===
 
Beware: with the following, you are likely to encounter problems when cloning [[FGData]]: read just above.
cd <your working directory for building FlightGear>
wget -O download_and_compile.sh httphttps://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/download_and_compile.sh?format=raw
chmod +x download_and_compile.sh
mkdir -p stable
mkdir -p next
cd stable
../download_and_compile.sh -j$(nproc) -s
cd ../next
../download_and_compile.sh -j$(nproc) -p n {{Note|With <code>-j$(nproc)</code> as above, the compilation will use all cores available on your processor, which can save several hours. If you want to use, say, 4 cores, replace <code>-j$(nproc)</code> with <code>-j4</code>.}}
=== Conversion of directory structure from earlier versions of download_and_compile.sh ===
[[nl:Compileren met een Script op Linux Debian/Ubuntu]]
[[fr:Script de compilation sous Linux Debian/Ubuntu]]
 
== References ==
<references/>
289
edits

Navigation menu