4 Here is a quick outline of one way you can build FG for Win32 using a
5 completely free development environment.
7 1. Setup your development environment. The main Cygnus Gnu-Win32
10 http://www.cygnus.com/misc/gnu-win32/
12 Download and install the Cygnus Gnu-Win32 compiler:
14 ftp://ftp.cygnus.com/pub/gnu-win32/latest/cdk.exe
16 Be sure to read this package's README for post installation
17 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 You should now have directory called ``FlightGear'' with several
40 3. Install the OpenGL/GLUT headers. Cd to ``FlightGear\Src\Win32''.
41 There you will find a file called gl-hdrs.zip. Assuming you
42 installed the free Cygnus compiler in C:\gnuwin32\b18,, copy the
43 file ``gl-hdrs.zip'' to ``c:\gnuwin32\b18\include\":
45 copy gl-hdrs.zip c:\gnuwin32\b18\include\
47 Then go to the c:\gnuwin32\b18\include\ directory and run:
49 pkunzip -d gl-hdrs.zip
51 You can remove the gl-hdrs.zip file if you wish.
54 4. Install the OpenGL dynamic link libraries. If you are running
55 an NT system you can skip this step. NT comes with the OpenGL
56 libraries. If you are running windows 95, you should grab the
57 OpenGL libraries from the Microsoft ftp server:
59 ftp://ftp.microsoft.com/Softlib/MSLFILES/Opengl95.exe
61 This is a self extracting compressed archive, so run this .exe to
62 extract the files. To install these permanently on your system,
63 you can copy them to your ``c:\windows\system\" directory.
64 Otherwise, you could just as easily copy them to the
65 ``FlightGear\Src\OpenGL'' directory or someplace that is in your
68 4. Edit the ``make.inc'' file. Go back to the main FlightGear source
69 directory. From where ever you extracted the FG code, cd to
70 ``FlightGear\Src''. Edit the file called ``make.inc''. Find the
71 part of the file that says: ``Uncomment one of the following
72 sections depending on your system''
74 Uncomment all the makefile defines in the ``Cygnus Win32''
75 section. Also, you should comment out any of the defines in the
79 5. Build the executable. From the same ``FlightGear\Src'' directory,
80 run the following command:
84 make is a build utility that comes with the Cygnus development
87 You will see a few warning messages from the compiler, but none of
91 6. Try it out! cd to the FlightGear\Src\OpenGL directory and run the
97 7. I wrote this document from the top of my head so it is certain to
98 contain errors. Please send me email (curt@me.umn.edu) and let
99 me know what changes need to be made to this document and these
100 procedures to make them easier to understand and follow.