I’ve downloaded the latest mingw releases for SDL, SDL_image, and SDL_mixer on Github and have been able to use them to compile my game on Linux for Windows. Just recently I added MOD music to my game which has worked fine on Linux (compiled with Debian’s SDL dev packages) but fails on Windows because the latest SDL_mixer release was compiled without MOD support. When running the game, I get a single SDL error message: “MOD support not available”.
I tried to build SDL_mixer myself with MOD support but to no avail. I was able to compile the library for Linux with the steps from https://wiki.libsdl.org/SDL2/Installation but I haven’t been able to compile the library for use with 32-bit mingw.
So far I have tried running “…/configure --host=mingw64” from the build directory in the SDL_mixer root directory, but that just creates a Makefile that compiles files with gcc (instead of mingw, so I think that’s wrong), and eventually fails with this message:
libtool: compile: gcc -g -O2 -I../include -I../src -I../src/codecs -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL2 -DSDL_BUILD_MAJOR_VERSION=2 -DSDL_BUILD_MINOR_VERSION=6 -DSDL_BUILD_MICRO_VERSION=2 -Wall -DHAVE_SIGNAL_H -DHAVE_SETBUF -DHAVE_FORK -DMUSIC_CMD -DMUSIC_WAV -DMUSIC_MOD_MODPLUG -DMUSIC_MID -DMUSIC_MID_TIMIDITY -I../src/codecs/timidity -DMUSIC_MID_NATIVE -I../src/codecs/native_midi -DMUSIC_OGG -DOGG_USE_STB -DMUSIC_FLAC_DRFLAC -DMUSIC_MP3_DRMP3 -MMD -MT build/native_midi_win32.lo -c ../src/codecs/native_midi/native_midi_win32.c -o build/native_midi_win32.o >/dev/null 2>&1
/bin/bash ./libtool --tag=RC --mode=compile ../version.rc -o build/version.lo
libtool: compile: you must specify a compilation command
libtool: compile: Try `libtool --help --mode=compile' for more information.
make: *** [Makefile:252: build/version.lo] Error 1
tl;dr how can I build SDL_mixer for MinGW on Linux with MOD support?