Scripted Compilation on Linux Debian/Ubuntu: Difference between revisions

(→‎Compiling last stable versions (Experimental): Remove “Experimental” from the title)
Line 241: Line 241:


=== Advanced options ===
=== Advanced options ===
* Build a release version using '''-b Release''' option
* Build a debug version for more complete bug reporting using '''-b RelWithDebInfo''' option (default)
* Build a full debug version for very complete bug reporting using '''-b Debug''' option
* Skip download of distro packages using '''-p n''' option
* Skip compilation of programs using '''-c n''' option
* Skip retrieving software updates using '''-d n''' option
* Skip reconfigure (make clean) using '''-r n''' option


For example, if you are a developer and wish to quickly recompile and reinstall only your own modifications for FlightGear do this:
* Build a release version: <code>-b Release</code>
<pre>
* Build a version that should run as fast as a release build, yet has debug information that can be used to post backtraces: <code>-b RelWithDebInfo</code> (this is the default)
./download_and_compile.sh -p n -d n -r n FGFS
* Build a full debug version for very complete bug reporting: <code>-b Debug</code>
</pre>
* Skip download of distro packages (i.e., by default: <tt>apt-get install ...</tt>): <code>-p n</code>
* Skip retrieving of software updates (i.e., by default: <tt>apt-get update</tt>): <code>-d n</code>
* Skip the configure step (like running [https://cmake.org/ CMake] or [https://www.gnu.org/software/autoconf/ autoconf]'s <tt>./configure</tt>): <code>-r n</code>
* Skip compilation of programs: <code>-c n</code>.


this will only recompile modifications and reinstall them.
For example, if you are a developer and wish to quickly recompile and reinstall only your own modifications for FlightGear, you can do this:
./download_and_compile.sh -p n -d n -r n FGFS
 
Note that this is the same as:
./download_and_compile.sh -pn -dn -rn FGFS
 
This command will only rebuild modified files and reinstall FlightGear. Note that depending on the kind of changes you made, reconfiguring and thus dropping the <code>-d n</code> option may be necessary, though (this is the case in particular if you added or removed C++ files).


=== Multicore Acceleration ===
=== Multicore Acceleration ===
377

edits