Debian Codegraph @

DOC/BUILD.windows

raw
1 Building Atari800 for MS Windows
2 ================================
3
4 Atari800 executable for Windows is built the same way as on any other Unix-like
5 OS: using a Unix-like environment such as Cygwin, MinGW or MSYS2.
6
7 All of these toolchains provide a Unix-like environment on Windows, so building
8 Atari800 with them is based on the same configure/make sequence as on other
9 platforms. The procedure is described in detail in DOC/INSTALL, section
10 "Building the Emulator on most platforms" - read it before continuing below.
11
12 There are several configure options applicable to the Windows platform:
13 Type "./configure --with-video=<choice> --with-sound=<choice>" to build other
14 versions. The available options are:
15 * --with-video:
16 * sdl - uses SDL,
17 * ncurses - uses the ncurses library,
18 * no - pure console interface.
19 * --with-sound:
20 * sdl - uses SDL,
21 * no - no sound.
22 You can add other configure options if desired.
23
24 The recommended version is --with-video=sdl --with-audio=sdl, as it has the
25 largest set of features.
26
27
28 Building the SDL version
29 ------------------------
30
31 The procedure for building the SDL version is described in DOC/INSTALL, section
32 "Building the Emulator for SDL".
33
34
35 Notes on building using Cygwin
36 ------------------------------
37
38 1. Get Cygwin at http://cygwin.com/
39 2. The executable requires the following DLLs: /bin/mgwz.dll and (for SDL)
40 sdl.dll - copy them to the same directory as atari800.exe.
41
42
43 Notes on building using MinGW
44 -----------------------------
45
46 1. To build the SDL version with OpenGL support, get the OpenGL headers at
47 http://www.libsdl.org/extras/win32/common/opengl-devel.tar.gz .
48 See also http://www.libsdl.org/extras/win32/mingw32/README.txt
49 2. If the configure script does not find the SDL library, you might need to add
50 "--with-sdl-prefix=/mingw" to the configure options.
51
52
53 Notes on building using MSYS2
54 -----------------------------
55
56 1. Install MSYS2 itself:
57 - Based on:
58 https://www.msys2.org/
59 https://www.msys2.org/wiki/MSYS2-installation/
60 a) Get the MSYS2 installer package from https://www.msys2.org/ . The
61 instructions below is tailored towards MSYS2 release dated 20250221, which
62 was the latest at the time of this writing.
63 b) Run the installer to install the environment.
64 - Note: MSYS2 provides 5 Start menu shortcuts to the MSYS shell:
65 "MSYS2 MSYS" - use this and only this shell to install or remove packages.
66 "MSYS2 CLANG64" - use this shell to build 64-bit programs with clang
67 compiler and UCRT64 runtime.
68 "MSYS2 CLANGARM64" - use this shell to build 64-bit programs for ARM CPU
69 with clang compiler and UCRT64 runtime.
70 "MSYS2 UCRT64" - use this shell to build 64-bit programs with gcc
71 compiler and UCRT64 runtime.
72 "MSYS2 MinGW64" - use this shell to build 64-bit programs with gcc
73 compiler and MSVCRT runtime.
74 See https://www.msys2.org/docs/environments/ for more detailed
75 description.
76 c) If not selected at the end of installer, run "MSYS2 MSYS" shell (from Start
77 menu).
78 d) Update the environment using pacman -Syuu. Run it multiple times until no
79 more packages are left to update.
80 Note: if after an update there appears a message to "exit pacman without
81 returning to the MSYS shell", then close the MSYS shell window, and use
82 Task Manager to kill the "pacman.exe" process that is left hanging. Then
83 re-run "MSYS2 MSYS" to continue updating.
84
85 2. Install packages required by Atari800:
86 - Note: to install a package, enter
87 pacman -S <package_name1> <package_name2> ...
88 a) Start the "MSYS2 MSYS" shell.
89 b) If you want to regenerate the configure script, install the following
90 packages:
91 - autoconf
92 - automake
93 - perl
94 c) To build Atari800, install:
95 - make
96 - mingw-w64-ucrt-x86_64-gcc
97 - mingw-w64-ucrt-x86_64-SDL
98 - mingw-w64-ucrt-x86_64-readline
99 - mingw-w64-ucrt-x86_64-libpng
100
101 3. Build Atari800:
102 a) Start the "MSYS2 UCRT64" shell to build the 64-bit binary.
103 b) Follow the common build procedure as described in DOC/INSTALL, section
104 "Building the Emulator for SDL".
105 c) The executable requires the following DLLs - copy them from ucrt64/bin
106 to the same directory as atari800.exe:
107 - libpng16-16.dll
108 - libreadline8.dll
109 - libtermcap-0.dll
110 - SDL.dll
111 - zlib1.dll