1 I. GENERAL LINUX INSTRUCTIONS
2 ==============================
4 This is a short description of the things that need to be done to get
5 FlightGear up and running under Linux.
9 - You need to understand the concepts of 3D acceleration under Linux
10 and the needed libraries. You will need to install and configure
11 accelerated drivers for your specific video card. It is beyond the
12 scope of this document to describe the process for your specific
15 More and more distributions are coming out with pre-packaged drivers
16 so look around (just in case) before you go out and build software
19 Here are some potentially useful sites, but be careful and find the
20 specific instructions for your specific video card and distribution:
22 http://www.thedukeofurl.org/reviews/misc/3dlinux/
23 http://www.linux3d.net/
24 http://dri.sourceforge.net/
26 http://glide.xxedgexx.com/
28 Without accelerated 3d rendering, FlightGear could never run at
29 decent frame rates, even on the fastest CPU's.
31 - You will need the GLUT library version 3.7 (or greater, aka
36 http://reality.sgi.com/opengl/glut3/glut3.html
38 Note: glut-3.7 is included with Mesa 3.x so if you've already
39 grabbed the latest version of mesa, you should have everything you
42 Alternatively, you can use the 3D-stuff that came along with your
43 Linux distribution. At least RedHat (5.3 and later) and S.u.S.E. 6.0
44 (or later) may contain all the things you need depending again on
47 - Steve Baker's plib library. Get it from:
51 ... and follow the instructions there to install it.
53 - SimGear. Get it from:
55 http://www.simgear.org
57 ... and follow the instructions there to install it.
62 You will need the following files:
64 FlightGear-x.xx.tar.gz (source code)
66 which can be found under:
68 ftp://flightgear.sourceforge.net/pub/flightgear/Source
70 and the base package located at:
72 ftp://flightgear.sourceforge.net/pub/flightgear/Shared/
76 fgfs-base-x.xx.tar.gz (data files)
78 Ok, now that you got all the stuff, let's proceed towards installation.
80 Unpack FlightGear-x.xx.tar.gz using :
82 tar xvfz FlightGear-x.xx.tar.gz
84 and cd info FlightGear-x.xx. Run:
88 and wait a few minutes. configure knows about a lot of
89 options. Have a look at the file INSTALL in the FlightGear source
90 directory to learn about them. If run without options, configure
91 assumes that you will install the data files under
92 /usr/local/share/FlightGear. Assuming configure finished
93 successfully, simply run
97 and wait for the make process to finish. Now become root (for
98 example by using the su command) and type
102 This will install the binaries in /usr/local/bin. Notice that the
103 name of the FlightGear binary is "fgfs".
106 3. Install the data files
108 Change to /usr/local/lib
110 tar xvfz WHERE_YOU_DOWNLOADED_THE_FILES/fgfs-base-x.xx.tar.gz
117 If everything went ok, simply type
121 at the prompt. You should see the FlightGear splash-screen and a
122 few seconds later you'll find youself somewhere in the desert,
125 5. Strange things happen...
127 We have mailing lists set up for specific FlightGear problems,
128 bugs, and questions. Please see the flightgear web page for
134 I hope this document provides some help. If it does, send
135 virtual/real beer to me, if not flame me!
138 <buckel@wmad95.mathematik.uni-wuerzburg.de>
140 Updated by Curtis Olson <http://www.flightgear.org/~curt> 6/26/2001
143 II. RedHat Linux Notes
144 =======================
146 Summary: There are known problems with the versions of libstdc++ that
147 ships with both RedHat-5.1 and RedHat-5.2. You need to upgrade your
148 libstdc++ before attempting to build flight gear on a RedHat system.
150 Raymond de Vries <vries@per.nl> writes: I ran into [this] problem on
151 my RedHat 5.2 system (brand new). After some searching I found out
152 that it's got to do with a 'bug' in the stdlibc++ libraries. I picked
153 up libstdc++-2.9.0-2.i386.rpm, installed it and FGFS compiled just
154 fine. However, some other packages must have the libstdc++-2.8
157 BTW I also solved it with the 2.8 libraries by including
158 /usr/include/g++/std/bastring.cc into the example programs. I believe
159 this can be done since it's a template, correct me if I'm wrong.
165 As of 2/19/99 I'm not aware of any glide port to Linux/AXP so it's
166 software rendering only for now. :-(
168 This following information is contributed by "Daniel J. Frasnelli"
169 <dfrasnel@csee.wvu.edu>
171 1) Mesa was not built correctly by default. I had to add the "-mieee"
172 flag to the Make-config for Mesa-3.1beta1 to fix the problem. After
173 building and installation, all of the problems I had previously with
174 GL programs under AlphaLinux disappeared.
176 2) I also had to set the '-mieee' flag in $CFLAGS before configuring
177 and building FGFS. The -mieee switch fixes floating point exception
180 I heavily optimized both Mesa and FGFS, using the libffm "fast math
181 library for Alpha" in preference over the default libm, sticking all
182 sorts of strange flags in $CFLAGS, etc. These flags should be
183 adjusted for your specific architecture:
185 export CFLAGS="-mieee -mcpu=ev56 -Wa,-m21164a -pipe -g"
186 export CXXFLAGS="-mieee -mcpu=ev56 -Wa,-m21164a -pipe -g"