4
edits
(Update list of required packages for Ubuntu 13.04) |
(Compile from source instructions for most recent Ubuntu (13.04)) |
||
Line 1: | Line 1: | ||
{{stub}} | {{stub}} | ||
Following steps walk through downloading the FlightGear source code, compile and run on Ubuntu 13.04 (x86_64) | |||
== Required Packages == | == Required Packages == | ||
Install the following packages and libraries to be able to compile FlightGear: | |||
<pre> | |||
sudo apt-get install git subversion build-essential cmake cmake-curses-gui libpng12-dev libfreetype6-dev | |||
libjpeg-dev libgif-dev libtiff5-dev libxmu-dev libxi-dev libglut3-dev libalut-dev libxft-dev libxinerama-dev | |||
libboost-dev libplib-dev libopenscenegraph-dev libsvn-dev libudev-dev libfontconfig1-dev | |||
</pre> | |||
== Download source == | |||
Create a fgsrc directory and get the source code with git: | |||
<pre>mkdir ~/fgsrc | |||
cd ~/fgsrc | |||
git clone git://gitorious.org/fg/simgear.git | |||
git clone git://gitorious.org/fg/flightgear.git | |||
git clone git://gitorious.org/fg/fgdata.git</pre> | |||
== Compile == | |||
Create directory to install FlightGear in and create environment variable: | |||
<pre>export prefix=$HOME/FG-install && mkdir $prefix</pre> | |||
Create a build directory for each package and run cmake from there: | |||
SimGear: | |||
<pre> | <pre>cd ~/fgsrc | ||
mkdir build-sg | |||
cd build-sg | |||
cmake -D CMAKE_INSTALL_PREFIX:PATH="$prefix" ~/fgsrc/simgear | |||
make -j2 install | |||
</pre> | </pre> | ||
FlightGear: | |||
<pre> | <pre>cd ~/fgsrc | ||
mkdir build-fg | |||
cd build-fg | |||
cmake -D CMAKE_INSTALL_PREFIX:PATH="$prefix" ~/fgsrc/flightgear | |||
make -j2 install | |||
</pre> | </pre> | ||
== Run == | |||
Link fgdata to the data directory in FG-install | |||
<pre>cd $prefix | |||
ln -s ~/fgsrc/fgdata data</pre> | |||
Run executable: | |||
<pre>$prefix/bin/fgfs --fg-root=$prefix/data</pre> | |||
== Troubleshooting == | == Troubleshooting == | ||
; Link error undefined reference to symbol 'dlopen@@GLIBC_2.2.5 | |||
: Uninstall fltk 1.3 library <pre>sudo apt-get remove libfltk1.3-dev</pre> See the [http://www.flightgear.org/forums/viewtopic.php?f=45&t=20164 forum] | |||
; Only-a-black-screen problem: | ; Only-a-black-screen problem: | ||
: If you are a nvidia user and only get a black screen at startup, you might suffer from Ubuntu bug [https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/982485 982485]. Have a look at comment [https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/982485/comments/24 #24] for a possible workaround. | : If you are a nvidia user and only get a black screen at startup, you might suffer from Ubuntu bug [https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/982485 982485]. Have a look at comment [https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/982485/comments/24 #24] for a possible workaround. |
edits