-
Notifications
You must be signed in to change notification settings - Fork 0
/
mingw_install.rtf
50 lines (50 loc) · 2.08 KB
/
mingw_install.rtf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}}
{\colortbl ;\red0\green0\blue255;}
{\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\lang1053\f0\fs22 I had some troubles trying to compile ZX Beep on Windows, but finally got it working using MinGW.\par
\par
\par
1. Download and start the \b MinGW\b0 installer\par
\par
{\field{\*\fldinst{HYPERLINK "http://www.mingw.org/"}}{\fldrslt{\ul\cf1 http://www.mingw.org/}}}\f0\fs22\par
\par
\par
2. Select components\par
\par
Mark \b C Compiler \b0 and \b MinGW Developer Toolkit\b0 for installation (this will also install \b Msys\b0 ). When asked, used the default directory \i C:\\MinGW\i0 .\par
\par
\par
3. Verify Msys/MinGW\par
\par
After installation is finished, start msys with the script \i C:\\MinGW\\msys\\1.0\\msys.bat\i0 (send a shortcut to the desktop). Check that the commands \i gcc --version\i0 , \i cc --version\i0 and \i make --version\i0 works. If not, run the postinstall script (\i C:\\MinGW\\msys\\1.0\\postinstall\\pi.bat\i0 ) manually and try again.\par
\par
\par
4. Download and install \b Git for msys\b0\par
\par
{\field{\*\fldinst{HYPERLINK "http://msysgit.github.io/"}}{\fldrslt{\ul\cf1 http://msysgit.github.io/}}}\f0\fs22\par
\par
Use Unix newlines when asked.\par
\par
Now there will be two msys environments. \b Git bash\b0 , with git (but no gcc), and \b msys/mingw\b0 with gcc and make (but no git). To integrate the two, set the PATH environment variable from one to point to the other.\par
\par
\par
5 Set git PATH\par
\par
Start msys and add the path to the git bash bin directory to .profile:\par
\par
\i cd\par
echo 'export PATH=$PATH:/c/Program\\ Files\\ \\(x86\\)/Git/bin' >> .profile\par
\i0\par
Restart msys and try \i git --version\i0 . If this works you are finally ready for ZX Beep!\par
\par
\par
6. ZX Beep\par
\par
\i git clone https://github.com/AlbertVeli/ZX_Beep.git\par
cd ZX_Beep\par
make\par
\i0\par
Z80asm tests might fail (because of newline problems). Ignore that and run make again to continue the build. It should output:\par
\par
0 OK, 0:1\par
}