Building FlightGear - Linux: Difference between revisions

Jump to navigation Jump to search
m
Robot: Cosmetic changes
m (Robot: Cosmetic changes)
Line 48: Line 48:
*** [http://plib.sourceforge.net/ PLIB]. Since march 2008, you will need version 1.8.5 - your distro probably supplies 1.8.4 still.
*** [http://plib.sourceforge.net/ PLIB]. Since march 2008, you will need version 1.8.5 - your distro probably supplies 1.8.4 still.
**** For versions pre march/2008: (Free)GLUT or SDL (We recommend the use of SDL over Free/GLUT, [http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg16153.html however since march 2008, FreeGLUT as well as SDL are both considered depreciated, please only use --enable-osgviewer during configuration instead])  
**** For versions pre march/2008: (Free)GLUT or SDL (We recommend the use of SDL over Free/GLUT, [http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg16153.html however since march 2008, FreeGLUT as well as SDL are both considered depreciated, please only use --enable-osgviewer during configuration instead])  
*** [[ OpenSceneGraph ]] (check link for compatible versions)
*** [[OpenSceneGraph]] (check link for compatible versions)
*** You also need the development files for several basic libraries to build the software, among them the following (the package names are for Debian and derivatives(?)):
*** You also need the development files for several basic libraries to build the software, among them the following (the package names are for Debian and derivatives(?)):
**** libfreetype6-dev
**** libfreetype6-dev
Line 68: Line 68:
3. Plib - portability libraries and scene graph.  
3. Plib - portability libraries and scene graph.  


4. [[ OpenSceneGraph ]]
4. [[OpenSceneGraph]]  


5. SimGear - Simulation support libraries. If you are building FlightGear from Git, you need the Git version of SimGear. If you have strange build errors, one of the first things to check is that you have an up-to-date version of SimGear built and installed.
5. SimGear - Simulation support libraries. If you are building FlightGear from Git, you need the Git version of SimGear. If you have strange build errors, one of the first things to check is that you have an up-to-date version of SimGear built and installed.
Line 75: Line 75:
This is a list of all the apt-get commands I had to do while compiling FG, SG, and OSG on a mostly clean Ubuntu 64 system. It is a list of all the libraries you and your computer needs to compile FG, SG, OSG, and PLib. All you have to do is copy the full command, paste it in Terminal, enter your password, and it will download all the packages for you, and install them too. The full command is at the bottom, and I hope someone finds it useful :) sub-dependencies (dependencies of the dependencies) are not included as they are installed automatically by apt-get. If anyone sees something missing, please add it.
This is a list of all the apt-get commands I had to do while compiling FG, SG, and OSG on a mostly clean Ubuntu 64 system. It is a list of all the libraries you and your computer needs to compile FG, SG, OSG, and PLib. All you have to do is copy the full command, paste it in Terminal, enter your password, and it will download all the packages for you, and install them too. The full command is at the bottom, and I hope someone finds it useful :) sub-dependencies (dependencies of the dependencies) are not included as they are installed automatically by apt-get. If anyone sees something missing, please add it.
   
   
git - to get SG and FG <br>
git - to get SG and FG <br />
subversion - to get OSG <br>
subversion - to get OSG <br />
build-essential - to build (includes GCC, and other build tools) <br>
build-essential - to build (includes GCC, and other build tools) <br />
cmake - OSG Uses this <br>
cmake - OSG Uses this <br />
cmake-curses-gui -- OSG Uses this <br>
cmake-curses-gui -- OSG Uses this <br />
libpng-dev - to enable FG to use PNG textures<br>
libpng-dev - to enable FG to use PNG textures<br />
libfreetype6-dev - fonts<br>
libfreetype6-dev - fonts<br />
libjpeg-dev<br>
libjpeg-dev<br />
libungif4-dev<br>
libungif4-dev<br />
libtiff-dev<br>
libtiff-dev<br />
libxmu-dev<br>
libxmu-dev<br />
libxi-dev<br>
libxi-dev<br />
libglut3-dev<br>
libglut3-dev<br />
libalut-dev - sound<br>
libalut-dev - sound<br />
libboost-dev - makes coding for some developers easier<br>
libboost-dev - makes coding for some developers easier<br />
automake - needed by ./autogen.sh files<br>
automake - needed by ./autogen.sh files<br />
autoconf - needed by ./autogen.sh files<br>
autoconf - needed by ./autogen.sh files<br />
libfltk1.1-dev - You will need this if you will be using FGRun<br>
libfltk1.1-dev - You will need this if you will be using FGRun<br />
-----------
-----------
<pre>
<pre>
Line 108: Line 108:
  cd /usr/local/src
  cd /usr/local/src


<b>Note:</b> 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.
'''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 <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.
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.


Line 185: Line 185:
== Distro-specific instructions ==
== Distro-specific instructions ==
=== Debian/Ubuntu ===
=== Debian/Ubuntu ===
*You can use the [[Scripted_Compilation_on_Linux_Debian/Ubuntu]] script to have Flightgear compiled in one shot under both Ubuntu and Debian systems.
* You can use the [[Scripted Compilation on Linux Debian/Ubuntu]] script to have Flightgear compiled in one shot under both Ubuntu and Debian systems.
*Debian users who prefer to build it without script may look at [[Building_Flightgear_-_Debian]].
* Debian users who prefer to build it without script may look at [[Building Flightgear - Debian]].
=== 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]].


== External links ==
== External links ==
=== Instructions ===
=== Instructions ===
* [[ MSYS ]]
* [[MSYS]]  
* [[ MinGW/cross-compiler ]]
* [[MinGW/cross-compiler]]  
* [[ CodeBlocks IDE ]]
* [[CodeBlocks IDE]]  
* [[ OpenSUSE 10.1 10.2 ]]
* [[OpenSUSE 10.1 10.2]]  
* [http://www.geoffmclane.com/fg/fgmsvc7.htm MSVC7 *.Net]
* [http://www.geoffmclane.com/fg/fgmsvc7.htm MSVC7 *.Net]
* [http://www.oflebbe.de/oflebbe/FlightGear/index.html MSVC8 aka Visual 2005]
* [http://www.oflebbe.de/oflebbe/FlightGear/index.html MSVC8 aka Visual 2005]

Navigation menu