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 main Cygnus Gnu-Win32 page is at:
10 http://www.cygnus.com/misc/gnu-win32/
12 You can download the Cygnus Gnu-Win32 compiler from:
14 ftp://ftp.cygnus.com/pub/gnu-win32/latest/cdk.exe
16 To install, just run the file: "cdk.exe". Be sure to read this
17 package's README for post installation configuration instructions:
19 http://www.cygnus.com/misc/gnu-win32/readme_toc.html
22 2. Fetch the Flight Gear prototype code. It can be found at:
24 http://www.menet.umn.edu/~curt/fgfs/prototype/source/
26 Grab the latest .zip file.
29 3. Unpack the FG prototype code. Run:
33 Be sure to use the -d option. This will create all the needed
34 subdirectories. Otherwise you will have one big mess!
36 This should create a directory called ``FlightGear'' with several
40 3. Install the OpenGL/GLUT headers. Cd to the newly created
41 directory: ``FlightGear\Src\Win32''. There you will find a file
42 called gl-hdrs.zip. Assuming you installed the free Cygnus
43 compiler in C:\gnuwin32\b18,, copy the file ``gl-hdrs.zip'' to
44 ``c:\gnuwin32\b18\include\":
46 copy gl-hdrs.zip c:\gnuwin32\b18\include\
48 Then go to the c:\gnuwin32\b18\include\ directory and run:
50 pkunzip -d gl-hdrs.zip
52 Remember the -d option! You can remove the gl-hdrs.zip file if
56 4. Install the OpenGL dynamic link libraries. If you are running
57 an NT system you can skip this step. NT comes with the OpenGL
58 libraries. If you are running windows 95, you should grab the
59 OpenGL libraries from the Microsoft ftp server:
61 ftp://ftp.microsoft.com/Softlib/MSLFILES/Opengl95.exe
63 This is a self extracting compressed archive, so run this .exe to
64 extract the files. To install these permanently on your system,
65 you can copy them to your ``c:\windows\system\" directory.
66 Otherwise, you could just as easily copy them to the
67 ``FlightGear\Src\GLUT'' directory or else someplace that is in
70 4. Edit the ``make.inc'' file. Go back to the main FlightGear source
71 directory. From where ever you extracted the FG code, cd to
72 ``FlightGear\Src''. Edit the file called ``make.inc''. Find the
73 part of the file that says: ``Uncomment one of the following
74 sections depending on your system''
76 Uncomment all the makefile defines in the ``Cygnus Win32''
77 section. Also, you should comment out any of the defines in the
78 other platform dependent sections.
81 5. Build the executable. From the same ``FlightGear\Src'' directory,
82 run the following command:
86 make is a build utility that comes with the Cygnus development
89 You will see a few warning messages from the compiler, but none of
93 6. Try it out! When make is done, cd to the FlightGear\Src\GLUT
94 directory and run the simulator:
99 7. I wrote this document from the top of my head so it is certain to
100 contain errors. Please send me email (curt@me.umn.edu) and let
101 me know what changes need to be made to this document and these
102 procedures to make them easier to understand and follow.