88
edits
(→Dependencies: Typography and wikimarkup.) |
m (Add CentOS) |
||
(11 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{Main article|Building Flightgear}} | {{Main article|Building Flightgear}} | ||
{{WIP}} | |||
This section describes how to build [[FlightGear]] on Linux system. | This section describes how to build [[FlightGear]] on Linux system. | ||
Line 7: | Line 9: | ||
openSUSE also provides binary packages of the latest development version, which are continuously updated. | openSUSE also provides binary packages of the latest development version, which are continuously updated. | ||
Follow [http://software.opensuse.org/download.html?lang=en&project=games:FlightGear:Unstable&package=fgrun this link] to select your openSUSE version and install, or manually add ''games:FlightGear:Unstable'' to your ''YaST Software Repositories''. | Follow [http://software.opensuse.org/download.html?lang=en&project=games:FlightGear:Unstable&package=fgrun this link] to select your openSUSE version and install, or manually add ''games:FlightGear:Unstable'' to your ''YaST Software Repositories''. | ||
For Ubuntu, there is a PPA that provides the latest development version of FlightGear and SimGear and a recent version of FlightGear data. See [https://launchpad.net/~saiarcot895/+archive/flightgear-edge this page] for more info. To add the PPA, run <tt>sudo apt-add-repository ppa:saiarcot895/flightgear-edge</tt>. | |||
Or if you develop on Ubuntu or Debian, consider trying the script described in [[Scripted Compilation on Linux Debian/Ubuntu]]. | Or if you develop on Ubuntu or Debian, consider trying the script described in [[Scripted Compilation on Linux Debian/Ubuntu]]. | ||
Line 18: | Line 22: | ||
=== Gentoo === | === Gentoo === | ||
* Gentoo users can also use overlays to build FlightGear without much hassle: [[Building Flightgear - Gentoo]]. | * Gentoo users can also use overlays to build FlightGear without much hassle: [[Building Flightgear - Gentoo]]. | ||
=== CentOS === | |||
CentOS users can follow these instructions to build FlightGear on [[Building Flightgear - CentOS | CentOS 8]]. | |||
== Requirements == | == Requirements == | ||
{{Note|as of 12/2017, people may have to build using at least OSG 3.4 due to some compilation issues -for details, refer to [[Howto:Building FlightGear without HiDPI support]]}} | |||
Edit 12/9/15 - These instructions are out of date! Do not use for compiling. | |||
Before you can compile FlightGear, you need to have the following installed on your computer: | Before you can compile FlightGear, you need to have the following installed on your computer: | ||
Line 100: | Line 110: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ git clone git:// | $ git clone git://git.code.sf.net/p/flightgear/simgear simgear | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 106: | Line 116: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ git clone http:// | $ git clone http://git.code.sf.net/p/flightgear/simgear simgear | ||
</syntaxhighlight> | </syntaxhighlight> | ||
By default after cloning you should have a local next branch that tracks the master next branch. It can be updated it with git pull. | By default after cloning you should have a local next branch that tracks the master next branch. It can be updated it with <code>git pull</code>. | ||
'''Step 2:''' | '''Step 2:''' | ||
Line 122: | Line 132: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
'''Note''' that if you don't want to install simgear globally on the system but in a specific directory, you can do so by adding - | '''Note''' that if you don't want to install <tt>simgear</tt> globally on the system but in a specific directory, you can do so by adding <code>-DCMAKE_INSTALL_PREFIX=/path/to/your/fgInstallation</code> to the <code>cmake</code> command | ||
'''Step 3:''' | '''Step 3:''' | ||
Line 132: | Line 142: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
''Note:'' with gcc 4.2 or later,on some platforms, you can get compiling errors about alc.h like: | ''Note:'' with <tt>gcc</tt> 4.2 or later,on some platforms, you can get compiling errors about <tt>alc.h</tt> like: | ||
'<anonymous>' has incomplete type | '<anonymous>' has incomplete type | ||
Line 144: | Line 154: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ git clone git:// | $ git clone git://git.code.sf.net/p/flightgear/flightgear | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 185: | Line 195: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ git clone git:// | $ git clone git://git.code.sf.net/p/flightgear/fgdata | ||
</syntaxhighlight> | </syntaxhighlight> | ||
edits