4 Here is a quick outline of *one* way you can build FG for Win32 using
5 a completely free development environment.
7 1. Install and configure the Cygnus Gnu-Win32 development
8 environment. The latest version is Beta 19. The main
9 Cygnus Gnu-Win32 page is at:
11 http://www.cygnus.com/misc/gnu-win32/
13 You can download the Cygnus Gnu-Win32 compiler from:
15 ftp://ftp.cygnus.com/pub/gnu-win32/latest/cdk.exe
17 To install, just run the file: "cdk.exe" by double-clicking in
18 windows explorer. Be sure to read this package's README :
20 http://www.cygnus.com/misc/gnu-win32/readme_toc.html
22 After installing the cygnus compiler and the usertools you should
23 find a program group "Cygnus" in your start menu.
25 2. Install the Silicon Graphics OpenGL dynamic link libraries. For
26 this purpose, get the file sgi-opengl2.exe from the flight gear
27 project site. This is a win95/winnt self extracting installation
28 program. Install it by double-clicking in windows explorer.
30 3. Fetch the Flight Gear code and special Win32 libraries. These can
33 http://www.menet.umn.edu/~curt/fgfs/Downloads/Source/
35 Grab the latest "FlightGear-X.XX.zip" and "win32-libs-X.XX.zip"
38 4. Unpack the FG source code. Run:
40 pkunzip -d FlightGear-X.XX.zip
42 Be sure to use the -d option. This will create all the needed
43 subdirectories. Otherwise you will have one big mess! Trust me!
45 5. Change to the newly created FlightGear-X.XX directory and unpack
46 the Win32 libraries. Run:
49 pkunzip -d win32-libs-X.XX.zip
51 Side Note: we need to make a distinction between the "build tree" and
52 the "install tree." The "build tree" is what we've been talking
53 about up until this point. This is where the source code lives
54 and all the compiling takes place. Once the executables are
55 built, they need to be installed someplace. We shall call this
56 install location the "install tree". This is where the
57 executables, the scenery, the textures, and any other run-time
58 files will be located.
60 6. Configure the make system for your environment and your "install
61 tree". Tell the configure script where you would like to install
62 the exectuables and all the scenery and textures by using the
63 "--prefix" option. In the following example the base of the
64 "install tree" is "/FlightGear". Run:
66 ./configure --prefix=/FlightGear
68 7. Build the executable. Run:
72 8. Create and populate the install tree. Run:
76 currently this step fails, but I hope to find a solution soon.
77 You can probably install everything by hand for now ... for example:
79 cp Simulator/Main/fg.exe /FlightGear/bin/fg.exe
80 cp Simulator/Main/runfg.bat /FlightGear/bin/runfg.bat
82 Important Note: so far you've built and installed the simulator and
83 related tools. Before you can actually try it out, you need to
84 make sure you have the appropriate scenery and texture downloaded
85 and unzip'ed in your "install tree".
87 9. Download and install the scenery and texture files.
89 10. Set the runtime environment variable to point to the base of your
92 export FG_ROOT=/FlightGear
94 11. Try it out! There are several ways to run flight gear once it has
95 been installed. The simplest is as follows. Run:
97 /FlightGear/bin/runfg.bat
99 12. I appreciate feedback. Tell me if it works! If it doesn't, tell me
100 what went wrong. My email is curt@me.umn.edu