]> git.mxchange.org Git - flightgear.git/blob - docs-mini/README.Win32-X
Merge branch 'ehofman/atc-sound' into next
[flightgear.git] / docs-mini / README.Win32-X
1 http://www.cygnus.com/ml/gnu-win32/1998-Nov/0177.html
2
3 Building cross cygwin b20 tools [Re: Linux->Win32 cross
4 compiler ?]
5
6 Mumit Khan (khan@xraylith.wisc.edu)
7 Wed, 4 Nov 1998 09:38:23 -0600 (CST) 
8
9       Messages sorted by: [ date ][ thread ][ subject ][ author ] 
10       Next message: Austin David France: "RE: B20 & bash 2.02.1(2) broken" 
11       Previous message: Neil Schemenauer: "Bash exits after background command exits (B20)" 
12       In reply to: Felix E. Klee: "Linux->Win32 cross compiler ?" 
13       Next in thread: Peter Dalgaard BSA: "Re: Linux->Win32 cross compiler ?" 
14
15 On Mon, 2 Nov 1998, Felix E. Klee wrote:
16
17 > Hi,
18
19 > does anyone know if a cross compiler exists for Linux which
20 > creates Win32 executables just like gnuwin32 does?
21
22
23 ============ building CROSS
24
25 You can always build one yourself. Download the CDK source, and do the
26 following:
27   
28   $ mkdir /cygwin-b20
29   $ cd /cygwin-b20
30   $ tar zxvf /tmp/dev-src.tar.gz
31   $ cd src
32   $ mkdir CROSS
33   $ cd CROSS
34   $ ../configure --prefix=/usr/local/cygb20 --target=i386-cygwin32 -v
35   $ make > make.log 2>&1
36   [ check for errors . If OK ]
37   $ make install > install.log 2>&1
38
39 After you're done, add it to path (if you're using a bourne-shell
40 compatible, otherwise use csh syntax).
41   
42   $ export PATH=$PATH:/usr/local/cygb20/bin
43   $ i386-cygwin32-gcc -v
44   [ should report egcs-1.1 etc ]
45
46 All the binaries for i386-cygwin32 target are prefixed with i386-cygwin32-
47 prefix.
48
49 ============ building NATIVE tools using CROSS tools just built.
50
51 Now if you want to build native tools on eg., a i686-pc-linux-gnu box with 
52 the same pathnames that wCygnus uses:
53
54   $ cd /cygwin-b20/src
55   $ mkdir NATIVE
56   $ cd NATIVE
57   $ ../configure --prefix=/Cygnus/cygwin-b20 \
58     --exec-prefix=/Cygnus/cygwin-b20/H-i586-cygwin32 \
59     --target=i386-cygwin32 --host=i386-cygwin32 \
60     --build=i686-pc-linux-gnu -v
61   $ make > make.log 2>&1
62   [ check for errors . If OK ]
63
64 Now of course, you want to install it to a *DIFFERENT* location than
65 /Cygnus/cygwin-b20 on your Unix host before creating an archive to
66 copy to a Cygwin box. Let's say you first install it to /tmp/cygwin.
67
68   $ make prefix=/tmp/cygwin exec_prefix=/tmp/cygwin/H-i586-cygwin32 \
69     install > install.log 2>&1
70   $ cd /tmp/cygwin
71   $ tar zcvf /tmp/dev-cygwin-b20.tar.gz .
72
73 Copy /tmp/dev-cygwin-b20.tar.gz to your Cygwin box and unpack:
74   
75   [win32]$ cd /Cygnus/cygwin-b20
76   [win32]$ tar zxvf /tmp/dev-cygwin-b20.tar.gz
77
78 Regards,
79 Mumit
80
81
82 -
83 For help on using this list (especially unsubscribing), send a message to
84 "gnu-win32-request@cygnus.com" with one line of text: "help".
85