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 Get OpenAL for instance from Creative
78 cp libopenal32.a /usr/local/lib
80 mkdir /usr/local/include/AL
81 cp Include/* /usr/local/include/AL
87 configure --prefix=/usr/local
93 configure --prefix=/usr/local
100 configure --prefix=/usr/local
106 configure --prefix=/usr/local --with-threads