Select the packages:
-
autoconf
-
automake
-
git
-
mingw64-i686-SDL2
-
mingw64-i686-SDL2_mixer
-
mingw64-i686-SDL2_net
-
mingw64-i686-gcc-core
-
mingw64-i686-libpng
-
mingw64-i686-libsamplerate
-
pkg-config
-
python
-
zip
python3 should work equally as well as python
zip isn’t required, but if you want to give the build to others…
As usual.
Either run autoconf -fi or ./autogen.sh. The latter will fail on a fresh Cygwin install, after it runs ./configure, with only the packages I specified, there’s no Cygwin compiler installed. This is fine.
Running ./configure --host i686-w64-mingw32 should succeed at this point.
After doing that, just run make (possibly with -j for a parallelized build)
At present, doing make -C pkg/win32 doesn’t work, cp-with-libs isn’t passed in parameters that lets it find the mingw64 DLLs Cygwin installs. We can workaround:
-
cd pkg/win32
-
mkdir doom
-
./cp-with-libs --dll_path=/usr/i686-w64-mingw32/sys-root/mingw/bin ../../src/chocolate-doom-setup.exe doom
-
./cp-with-libs --dll_path=/usr/i686-w64-mingw32/sys-root/mingw/bin ../../src/chocolate-doom.exe doom
-
(Optional) zip -j chocolate-doom-sdl2.zip doom