Debian Codegraph @

README.Windows

raw
1
2 Adonthell on Windows
3
4 This file contains additional information for compiling Adonthell under
5 Windows for x86 and/or x64. For general compilation instructions refer
6 to the INSTALL file. Even more details are found within the NEWBIE file.
7
8
9 Build Environment:
10 ==================
11 The recommended way to compile Adonthell for Windows is to use the mingw64
12 distribution of the GNU Compiler Collection. Since Adonthell uses a build
13 system based on GNU Autotools, a unixish environment such as provided by
14 MSys2 is also required. So start by downloading the latest version from:
15
16 https://sourceforge.net/projects/msys2/files/Base/x86_64/
17
18 For detailed installation instructions please refer to:
19
20 https://github.com/msys2/msys2/wiki/MSYS2-installation
21
22 As an alternative, http://www.msys2.org/ also links to the download and
23 runs you through the installation with a number of screenshots.
24
25 Using the 64 bit version of MSys2 is recommended as it can create both 32bit
26 and 64bit binaries.
27
28
29 Dependencies:
30 =============
31 Once MSys2 has been installed, you will need to install a number of packages
32 through the MSys2 package manager (pacman) which are required by Adonthell.
33
34 The package names below are the 64bit variants and as such result in a 64bit
35 version of Adonthell. To create 32bit binaries, replace x86_64 with i686 in
36 the package names below. Install each package by typing
37
38 pacman -S <package name>
39
40 The following packages are required:
41
42 tar
43 make
44 mingw-w64-x86_64-gcc
45 mingw-w64-x86_64-gettext
46 mingw-w64-x86_64-pkg-config
47 mingw-w64-x86_64-python3
48 mingw-w64-x86_64-SDL2_mixer
49 mingw-w64-x86_64-SDL2_ttf
50
51
52 Compiling Adonthell:
53 ====================
54 After installing all the libraries and tools above, we're finally
55 ready to compile Adonthell. For this, make sure to exit the MSys2 shell
56 and open the mingw64 (or mingw32) environment instead.
57
58 Extract both adonthell-0.3.x.tar.gz and wastesedge-0.3.x.tar.gz and
59 in each directory, run the usual commands:
60
61 ./configure
62 make
63 make install
64
65 to compile and install Adonthell locally. You can now launch Adonthell
66 by typing
67
68 adonthell-wastesedge
69
70
71 Distributable Package:
72 ======================
73 To create a version of Adonthell that can be used outside the mingw
74 environment, or on a different computer running Windows, a set of scripts
75 are provided. Make sure that the dependencies listed above are installed
76 and the compile step worked. Then, in the adonthell-0.3.x directory, run
77
78 ./make_windows_pkg.sh
79
80 If all goes well, it will configure, build and install into a directory
81 called Adonthell/, including all the required DLLs not present in the
82 Windows System32 folder. Now only the actual game data is missing.
83
84 Change into the wastesedge-0.3.x directory and run
85
86 make_windows_pkg.sh ../adonthell-0.3.x/Adonthell
87
88 (adjusting the location to the Adonthell directory as needed). This will
89 configure, build and install Waste's Edge and make the package ready to
90 use. You can now zip it up and transfer it to any other Windows system.
91
92 To start the game, use the adonthell-wastesedge.bat script.
93
94
95 Installer:
96 ==========
97 To make distribution of the Windows package a little more professional,
98 a .msi installer can be built once the steps above are complete.
99
100 This requires the WiX Toolset, downloadable from
101
102 http://wixtoolset.org/
103
104 Make sure it is in your PATH, i.e.
105
106 export PATH=$PATH:/C/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.10/bin
107
108 (adjusting the location to the WiX bin directory accordingly)
109
110 Change into the wastesedge-0.3.x/win32 directory and run
111
112 ./make_msi.sh ../../adonthell-0.3.x/Adonthell
113
114 (adjusting the location to the Adonthell directory as needed).
115
116 If all goes well, the installer will be created in the current directory.
117
118
119 Additional Notes:
120 =================
121 (1) In order to embed the correct icon in the Adonthell executable,
122 the rcedit program needs to be present in the PATH. It can be
123 dowloaded from
124
125 https://github.com/electron/node-rcedit/tree/master/bin
126
127 (2) In order to keep the list of external DLLs included in the package
128 at a minimum, it pays to use custom compiled versions of SDL2_mixer,
129 Freetype and SDL2_tff. Configure those with the following flags
130
131 Freetype : ./configure --with-png=no --with-bzip2=no
132 SDL2_mixer : ./configure --disable-music-ogg-shared
133
134 In this case, make sure to install mingw-w64-x86_64-libvorbis and
135 mingw-w64-x86_64-SDL2 instead of SDL2_mixer and SDL2_ttf.
136
137 (3) Due to bugs present in SDL 2.0.4, it is recommended to use version
138 2.0.5 (once available), or to compile SDL from source as well, using
139 at least revision 17e0ded12e6f:
140
141 https://hg.libsdl.org/SDL/archive/17e0ded12e6f.tar.bz2
142
143 To compile this using mingw, the following patch also needs to be
144 applied
145
146 https://bugzilla.libsdl.org/show_bug.cgi?id=3399
147
148 (4) Codesigning of the Adonthell executable and the MSI installer will
149 be done automatically by the make_msi.sh script, provided you have
150 Microsofts signtool from the Windows Platform SDK in your PATH and
151 a suitable certificate added to the Windows certificate store.
152
153