User:Daemonburrito/Building FlightGear - Linux: Difference between revisions

(Created page with "== Compiling == Assuming you are root, do: <syntaxhighlight lang="bash"> # cd /usr/local/src </syntaxhighlight> '''Note:''' When tracking a fast changing software like Fligh...")
 
Line 1: Line 1:
== Compiling ==
== Compiling ==
Assuming you are root, do:


<syntaxhighlight lang="bash">
When tracking a fast changing software like FlightGear/Git it is highly advisable to install it in a separate directory. That way one can also easily build and reinstall without being root, which greatly reduces the risk of messing up one's system.
# cd /usr/local/src
</syntaxhighlight>


'''Note:''' When tracking a fast changing software like FlightGear/Git it is highly advisable to install it in a separate directory. That way one can also easily build and reinstall without being root, which greatly reduces the risk of messing up one's system.
To install in a directory of your choice, add the <code>CMAKE_INSTALL_PREFIX</code> argument to <code>cmake</code>. E.g., <code>-DCMAKE_INSTALL_PREFIX==/path/to/your/fgInstallation</code>. I would recommend installing all of OSG, plib, SimGear and FlightGear with the same prefix.
To install in a directory of your choice add the <tt>--prefix</tt> argument to configure. E.g. <tt>./configure --prefix=$HOME/FlightGear</tt>. I would recommend installing all of OSG, plib, SimGear and FlightGear with the same prefix.


=== Getting and compiling SimGear ===
=== Getting and compiling SimGear ===