How to compile FlightGear with mingw ==================================== MinGW & MSYS ============ You need to install mingw & msys: http://www.mingw.org You need at least: MinGW: binutils, gcc-core, gcc-g++, mingw-runtime, mingw-utils, w32api I would recommed the gcc-3.4.4 versions. MSYS: msys-1.0.10.exe, msys-autoconf, msys-automake, msys-libtool, msys-DTK. Please read instructions carefully. Set the follwing environment variables within msys shell. export CFLAGS="-I/usr/local/include -O2" export CXXFLAGS="-I/usr/local/include -O2" export CPPFLAGS=-I/usr/local/include export LDFLAGS=-L/usr/local/lib Pthread-win32 ============= http://sources.redhat.com/pthreads-win32/ compile: make GCE-inlined Install: cp pthread.h sched.h semaphore.h /usr/local/include cp linpthreadGCE2.a /usr/local/lib/libpthread.a cp pthread-GCE.dll /usr/local/bin patch header: --- pthread.h Sat Oct 1 20:56:43 2005 *************** *** 210,218 **** * ----------------- */ ! #if HAVE_CONFIG_H ! #include "config.h" ! #endif /* HAVE_CONFIG_H */ #ifndef NEED_FTIME #include --- 210,218 ---- * ----------------- */ ! //#if HAVE_CONFIG_H ! //#include "config.h" ! //#endif /* HAVE_CONFIG_H */ #ifndef NEED_FTIME #include OpenAL ====== Get OpenAL for instance from Creative OpenAL win32 package install Redist install: cd libs reimp OpenAL32.lib cp libopenal32.a /usr/local/lib cd .. mkdir /usr/local/include/AL cp Include/* /usr/local/include/AL zlib-1.2.3 ========== configure --prefix=/usr/local make make install plib-1.6.8 ========== configure --prefix=/usr/local make make install simgear ======= get simgear from CVS configure --prefix=/usr/local make make install flightgear ========= configure --prefix=/usr/local --with-threads make make install