392
edits
m (typo) |
(added TerraGear) |
||
Line 10: | Line 10: | ||
== Requirements and Preparations == | == Requirements and Preparations == | ||
You need an OpenGL capable graphics including a proper installed driver.<br /> | You need an OpenGL capable graphics including a proper installed driver supporting direct rendering.<br /> | ||
Also a bunch of packages (and some of their dependencies) are required: | Also a bunch of packages (and some of their dependencies) are required: | ||
Line 29: | Line 29: | ||
Because we are going to install versions different to the ones in the repositories it is recommended to install FG-2.2.0 and/or GIT in a place independent to the base system such as /usr/local/FG-2.2.0, /opt/FG-2.2.0 or in a subdirectory of your $HOME. I suggest to make it writeable by the user that there is no need to become root for the <code>make install</code> commands. I'll use <code>$prefix</code> as a placeholder for this directory. <br /> | Because we are going to install versions different to the ones in the repositories it is recommended to install FG-2.2.0 and/or GIT in a place independent to the base system such as /usr/local/FG-2.2.0, /opt/FG-2.2.0 or in a subdirectory of your $HOME. I suggest to make it writeable by the user that there is no need to become root for the <code>make install</code> commands. I'll use <code>$prefix</code> as a placeholder for this directory. <br /> | ||
Another one will be <code>$srcdir</code>, it stands for the absolute path to the directory which is supposed to keep the folders of the various source codes. So, in the following instructions, you have to replace these with the local paths or even <code>export</code> them during the process. | Another one will be <code>$srcdir</code>, it stands for the absolute path to the directory which is supposed to keep the folders of the various source codes. So, in the following instructions, you have to replace these with the local paths or even <code>export</code> them during the process. | ||
export prefix=[path to install to] | |||
export srcdir=[path to sources] | |||
Have in mind that the data is a relatively large download (GIT about 3.5 GB and 2.2.0 300 MB). So, to save some time, it is a good idea to fetch it while building the sources. | Have in mind that the data is a relatively large download (GIT about 3.5 GB and 2.2.0 300 MB). So, to save some time, it is a good idea to fetch it while building the sources. | ||
Line 57: | Line 59: | ||
=== OpenSceneGraph === | === OpenSceneGraph === | ||
ln -s lib $prefix/lib64 # 64bit OS' only, if lib64 does not exist | |||
cd $srcdir | cd $srcdir | ||
svn co http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-2.9.10 OpenSceneGraph | svn co http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-2.9.10 OpenSceneGraph | ||
mkdir osg-build && cd osg-build | mkdir osg-build && cd osg-build | ||
cmake -D CMAKE_BUILD_TYPE="Release" \ | cmake -D CMAKE_BUILD_TYPE="Release" \ | ||
Line 156: | Line 158: | ||
To compile [[Taxidraw|TaxiDraw]] we need to install some more packages: | To compile [[Taxidraw|TaxiDraw]] we need to install some more packages: | ||
* either libcurl4-gnutls-dev or libcurl4-openssl-dev for curl.h | * either libcurl4-gnutls-dev or libcurl4-openssl-dev for curl.h | ||
* wx2.8-headers (at least, maybe even more than just that one. Please report! | * wx2.8-headers (at least, maybe even more than just that one. Please [http://wiki.flightgear.org/index.php?title=Talk:Building_FlightGear_-_Debian&action=edit&redlink=1 report]! | ||
su -c "aptitude install [libcurl4-gnutls-dev|libcurl4-openssl-dev]" | su -c "aptitude install [libcurl4-gnutls-dev|libcurl4-openssl-dev]" | ||
cd $srcdir | cd $srcdir | ||
Line 163: | Line 165: | ||
./autogen.sh | ./autogen.sh | ||
./configure --prefix=$prefix | ./configure --prefix=$prefix | ||
make install | |||
=== TerraGear === | |||
To resolve some of the dependencies of [[TerraGear]] the GIT sections of steps [[#plib|plib]], [[#OpenSceneGraph|OpenSceneGraph]] and [[#SimGear|SimGear]] have to be done first. Additionally some packages and their dependencies have to be installed: | |||
* libgdal1-dev, libproj-dev, libogdi3.2-dev (probably even more, please [http://wiki.flightgear.org/index.php?title=Talk:Building_FlightGear_-_Debian&action=edit&redlink=1 report]!) | |||
<u>Wheezy:</u> As of June 2nd there is a bug ([http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=617240 #617240]) in package libmysqlclient16 which causes compilation to fail. If it is not fixed by the time you're building TerraGear, downgrade to the version from Stable/Squeeze. | |||
Two of the dependencies have to be installed manually (See [http://mapserver.flightgear.org/git/?p=terragear-cs;a=blob;f=README.gpc;h=226e185b1ce1d1578006b48bb426e35848cce93b;hb=HEAD README.gpc] and [http://mapserver.flightgear.org/git/?p=terragear-cs;a=blob;f=README.newmat;h=95570b6b279d3d00bd7664cd4f00d6c4802aed1b;hb=HEAD README.newmat] for details.): | |||
# gpc install | |||
mkdir $srcdir/gpc232 && cd $srcdir/gpc232 | |||
wget ftp://ftp.cs.man.ac.uk/pub/toby/gpc/gpc232-release.zip | |||
unzip gpc232-release.zip | |||
sed s/DBL_EPSILON/0.000001/ -i gpc.h | |||
grep -A 18 '# Unix/Linux makefile' $srcdir/terragear-cs/README.gpc > Makefile | |||
sed "s|/usr/local/lib|$prefix/lib|" -i Makefile | |||
sed "s|/usr/local/include|$prefix/include|" -i Makefile | |||
make install | |||
# newmat install | |||
mkdir $srcdir/newmat11 && cd $srcdir/newmat11 | |||
wget http://www.robertnz.net/ftp/newmat11.tar.gz | |||
tar xzfv newmat11.tar.gz | |||
make -f nm_gnu.mak | |||
cp libnewmat.a $prefix/lib | |||
mkdir $prefix/include/newmat | |||
cp *.h $prefix/include/newmat | |||
Finally TerraGear itself: | |||
cd $srcdir | |||
git clone git://mapserver.flightgear.org/terragear-cs | |||
cd terragear-cs | |||
./autogen.sh | |||
./configure prefix=$prefix | |||
sed s/-O2// -i src/Lib/TriangleJRS/Makefile | |||
make install | make install | ||
edits