Scripted Compilation on Linux Debian/Ubuntu: Difference between revisions

Remove obsolete information (already contained in the previous change, in a way that works today) ; the change in directory structure being automatically handled by d&c and already an old thing, doesn't warrant drawing reader attention nowadays
(Revised instructions that avoid the well-known fatal “RPC failed (...) The remote end hung up unexpectedly” error when cloning FGData, without compromising security (using git:// doesn't offer any authentication of the server → unacceptable))
(Remove obsolete information (already contained in the previous change, in a way that works today) ; the change in directory structure being automatically handled by d&c and already an old thing, doesn't warrant drawing reader attention nowadays)
Line 336: Line 336:
  $ git log -p -- download_and_compile.sh
  $ git log -p -- download_and_compile.sh


== Update Available ==
== List of compiled programs ==


The latest version of <tt>download_and_compile.sh</tt> can be obtained {{fgmeta source
| path = download_and_compile.sh
| text = here
}}, however there are advantages getting it from an [[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; this and the following section are not up-to-date at the time of this writing.
== 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 https://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 ==
Earlier versions of the script used a different directory structure. If you used the earlier version, the new script includes a section that will convert the earlier structure to the current set of directories.
== List of compiled programs ==
The <tt>download_and_compile.sh</tt> script is able to download and compile:
The <tt>download_and_compile.sh</tt> script is able to download and compile:
* [[SimGear]] (”base libraries” that are part of the FlightGear project, and required)
* [[SimGear]] (”base libraries” that are part of the FlightGear project, and required)
377

edits