You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Installing dependencies on WSL, Debian and Ubuntu
177
178
178
-
### 32-bit
179
-
180
-
In addition to the 32-bit MinGW build tools, the build process depends on the 32-bit MinGW Development Libraries for [SDL2](https://www.libsdl.org/download-2.0.php) and [libsodium](https://github.com/jedisct1/libsodium/releases) as well as headers for [zlib](https://zlib.net/zlib-1.2.12.tar.gz). These dependencies will need to be placed in the appropriate subfolders under `/usr/i686-w64-mingw32`. This can be done automatically by running [`Packaging/windows/mingw-prep.sh`](/Packaging/windows/mingw-prep.sh).
In addition to the 64-bit MinGW build tools, the build process depends on the 64-bit MinGW Development Libraries of[SDL2](https://www.libsdl.org/download-2.0.php) and [libsodium](https://github.com/jedisct1/libsodium/releases) as well as headers for [zlib](https://zlib.net/zlib-1.2.12.tar.gz). These dependencies will need to be placed in the appropriate subfolders under `/usr/x86_64-w64-mingw32`. This can be done automatically by running [`Packaging/windows/mingw-prep64.sh`](/Packaging/windows/mingw-prep64.sh).
189
+
The 32-bit build depends on the 32-bit MinGW Development Libraries for[SDL2](https://www.libsdl.org/download-2.0.php) and [libsodium](https://github.com/jedisct1/libsodium/releases) as well as headers for [zlib](https://zlib.net/zlib-1.2.12.tar.gz). These dependencies will need to be placed in the appropriate subfolders under `/usr/i686-w64-mingw32`.
# Download the 64-bit development libraries for SDL2 and libsodium
201
-
# as well as the headers for zlib and place them in subfolders under
202
-
# /usr/x86_64-w64-mingw32
203
-
Packaging/windows/mingw-prep64.sh
204
-
```
191
+
When linking zlib, libpng will always prefer dynamically linking with `libz.dll.a` if it can be found. We recommend renaming or deleting `libz.dll.a` to force libpng to use static linkage. This will prevent errors about missing dlls when you attempt to run the game.
205
192
206
-
### Before compiling
193
+
These can be done automatically by running [`Packaging/windows/mingw-prep.sh`](/Packaging/windows/mingw-prep.sh).
207
194
208
-
When linking zlib, libpng will always prefer dynamically linking with `libz.dll.a` if it can be found. We recommend renaming or deleting `libz.dll.a` to force libpng to use static linkage. This will prevent errors about missing dlls when you attempt to run the game.
195
+
Note: If your `i686-w64-mingw32` directory is not in `/usr` (e.g. when on
196
+
Debian), the mingw-prep scripts and the CMake command won't work. You need
197
+
adjust the mingw-prep scripts and pass `-DCROSS_PREFIX=/path` to CMake to set
198
+
the path to the parent of the `i686-w64-mingw32` directory.
# Download the 32-bit development libraries for SDL2 and libsodium
202
+
# as well as the headers for zlib and place them in subfolders under
203
+
# /usr/i686-w64-mingw32
204
+
Packaging/windows/mingw-prep.sh
213
205
```
214
206
215
207
### Compiling
216
208
217
209
By compiling the `package` target, the build will produce the `devilutionx.zip` archive which should contain all the dlls necessary to run the game. If you encounter any errors suggesting a dll is missing, try extracting the dlls from the zip archive.
The 64-bit build depends on the 64-bit MinGW Development Libraries of [SDL2](https://www.libsdl.org/download-2.0.php) and [libsodium](https://github.com/jedisct1/libsodium/releases) as well as headers for [zlib](https://zlib.net/zlib-1.2.12.tar.gz). These dependencies will need to be placed in the appropriate subfolders under `/usr/x86_64-w64-mingw32`.
229
+
230
+
When linking zlib, libpng will always prefer dynamically linking with `libz.dll.a` if it can be found. We recommend renaming or deleting `libz.dll.a` to force libpng to use static linkage. This will prevent errors about missing dlls when you attempt to run the game.
231
+
232
+
These can be done automatically by running [`Packaging/windows/mingw-prep64.sh`](/Packaging/windows/mingw-prep64.sh).
233
+
234
+
Note: If your `x86_64-w64-mingw32` directory is not in `/usr` (e.g. when
235
+
on Debian), the mingw-prep scripts and the CMake command won't work. You need
236
+
adjust the mingw-prep scripts and pass `-DCROSS_PREFIX=/path` to CMake to set
237
+
the path to the parent of the `x86_64-w64-mingw32` directory.
238
+
239
+
```bash
240
+
# Download the 64-bit development libraries for SDL2 and libsodium
241
+
# as well as the headers for zlib and place them in subfolders under
0 commit comments