1 How to compile FlightGear with mingw
2 ====================================
8 You need to install mingw & msys:
14 MinGW: binutils, gcc-core, gcc-g++, mingw-runtime, mingw-utils, w32api
15 I would recommed the gcc-3.4.4 versions.
16 MSYS: msys-1.0.10.exe, msys-autoconf, msys-automake, msys-libtool, msys-DTK.
18 Please read instructions carefully.
20 Set the follwing environment variables within msys shell.
22 export CFLAGS="-I/usr/local/include -O2"
23 export CXXFLAGS="-I/usr/local/include -O2"
24 export CPPFLAGS=-I/usr/local/include
25 export LDFLAGS=-L/usr/local/lib
30 http://sources.redhat.com/pthreads-win32/
36 cp pthread.h sched.h semaphore.h /usr/local/include
37 cp linpthreadGCE2.a /usr/local/lib/libpthread.a
38 cp pthread-GCE.dll /usr/local/bin
42 --- pthread.h Sat Oct 1 20:56:43 2005
50 ! #endif /* HAVE_CONFIG_H */
59 ! //#include "config.h"
60 ! //#endif /* HAVE_CONFIG_H */
68 use precompiled in order to avoid conflicts with glut32.dll already installed.
70 http://www.xmission.com/~nate/glut.html
71 http://www.xmission.com/~nate/glut/glut-3.7.6-bin.zip
73 The header has to be updated with respect to MINGW.
75 *** glut.h Tue Dec 12 22:22:52 2000
76 --- /local_old/include/GL/glut.h Thu Aug 18 20:41:15 2005
79 /* XXX This is from Win32's <windef.h> */
81 # define GLUT_APIENTRY_DEFINED
82 ! # if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__) || defined(__LCC__)
83 # define APIENTRY __stdcall
87 /* XXX This is from Win32's <windef.h> */
89 # define GLUT_APIENTRY_DEFINED
90 ! # if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__) || defined(__LCC__) || defined(__MINGW32__)
91 # define APIENTRY __stdcall
97 cp glut.h /usr/local/include
98 cp glut32.dll /usr/local/bin
101 cp libglut32.a /usr/local/lib
106 Get OpenAL for instance from Creative
116 cp libopenal32.a /usr/local/lib
117 cp alut.lib /usr/local/lib/libalut.a
119 mkdir /usr/local/include/AL
120 cp Include/* /usr/local/include/AL
126 configure --prefix=/usr/local
132 configure --prefix=/usr/local
139 configure --prefix=/usr/local
145 configure --prefix=/usr/local --with-threads