]> git.mxchange.org Git - flightgear.git/blob - docs-mini/README.mingw
KIll off ALUT now it's gone from SimGear
[flightgear.git] / docs-mini / README.mingw
1 How to compile FlightGear with mingw
2 ====================================
3
4
5 MinGW & MSYS
6 ============
7
8 You need to install mingw & msys: 
9
10 http://www.mingw.org
11
12 You need at least:
13
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.
17
18 Please read instructions carefully.
19
20 Set the follwing environment variables within msys shell.
21
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
26
27 Pthread-win32
28 =============
29
30 http://sources.redhat.com/pthreads-win32/
31
32 compile:
33 make  GCE-inlined
34
35 Install:
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
39
40 patch header:
41
42 --- pthread.h   Sat Oct  1 20:56:43 2005
43 ***************
44 *** 210,218 ****
45    * -----------------
46    */
47   
48 ! #if HAVE_CONFIG_H
49 ! #include "config.h"
50 ! #endif /* HAVE_CONFIG_H */
51   
52   #ifndef NEED_FTIME
53   #include <time.h>
54 --- 210,218 ----
55    * -----------------
56    */
57   
58 ! //#if HAVE_CONFIG_H
59 ! //#include "config.h"
60 ! //#endif /* HAVE_CONFIG_H */
61   
62   #ifndef NEED_FTIME
63   #include <time.h>
64
65 OpenAL
66 ======
67
68 Get OpenAL for instance from Creative
69
70 OpenAL win32 package
71 install Redist
72
73
74 install:
75
76 cd libs
77 reimp  OpenAL32.lib
78 cp libopenal32.a  /usr/local/lib
79 cd ..
80 mkdir /usr/local/include/AL
81 cp Include/* /usr/local/include/AL
82
83
84 zlib-1.2.3
85 ==========
86
87 configure --prefix=/usr/local
88 make
89 make install
90
91 plib-1.6.8
92 ==========
93 configure --prefix=/usr/local
94 make 
95 make install
96
97 simgear
98 =======
99 get simgear from CVS
100 configure --prefix=/usr/local
101 make
102 make  install
103
104 flightgear
105 =========
106 configure --prefix=/usr/local --with-threads
107 make 
108 make install
109