I spent last couple of days trying to set up a build environment in MSYS2. It was a pain in the butt, so I thought I might as well post it here if there are some nondevs who still want to compile static builds on Win. (no x11 or allegro4 though)
1> First install and follow the first 6 steps on the MSYS2 website https://www.msys2.org/
2> Open C:\msys64\mingw32.exe
3> Setting up the environment and downloading packages; you can probably just highlight the whole code block below and copy/paste into mingw32 console and ENTER.
4>Now the environment is set up, so we can just download a fork we wish to compile, I'm going with ignatius here.
5> Compiled exes are in the default location i.e. %path_to_1oom_fork%/build-native/src
That said, the newest Tapani commit has buggy mouse cursor on SDL1, not sure if it's because of buggy code or because of me using MSYS2 sdl and goofing up. The version before it works fine. So if you wanted a specific version, you'd just find the specific HASH of that version on the gitlab page (https://gitlab.com/Tapani_/1oom/-/commits/master/), cd into the directory of the fork and go
git checkout HASH
rm -rf build-native/* && cd build-native
and run the long configure command and make command
1> First install and follow the first 6 steps on the MSYS2 website https://www.msys2.org/
2> Open C:\msys64\mingw32.exe
3> Setting up the environment and downloading packages; you can probably just highlight the whole code block below and copy/paste into mingw32 console and ENTER.
Code:
pacman -Sy mingw-w64-i686-toolchain mingw-w64-i686-SDL mingw-w64-i686-SDL_mixer mingw-w64-i686-libsamplerate mingw-w64-i686-SDL2 mingw-w64-i686-SDL2_mixer git autoconf automake make --noconfirm
mkdir -p ~/dev/readline && cd ~/dev/readline
wget http://repo.msys2.org/mingw/i686/mingw-w64-i686-readline-8.0.004-1-any.pkg.tar.xz
pacman -U mingw-w64-i686-readline-8.0.004-1-any.pkg.tar.xz --noconfirm
4>Now the environment is set up, so we can just download a fork we wish to compile, I'm going with ignatius here.
Code:
mkdir -p ~/dev/1oom-builds && cd ~/dev/1oom-builds/
git clone https://gitlab.com/ignatius_rbo/1oom.git 1oom_ignatius && cd 1oom_ignatius
autoreconf -fi
mkdir -p build-native && cd build-native
sed -i 's/pkg_config --static-libs/pkg_config --static --libs/' ../configure
SDL1MIXER_LIBS="$(pkg-config --static --libs SDL_mixer) -lmad -mwindows" SDL2MIXER_LIBS="$(pkg-config --static --libs SDL2_mixer) -lmpg123 -lshlwapi -lFLAC -lopusfile -lopus -lssp -lvorbisfile -lvorbis -logg" ../configure --enable-static --disable-hwalleg4 --disable-hwx11
make -j4
That said, the newest Tapani commit has buggy mouse cursor on SDL1, not sure if it's because of buggy code or because of me using MSYS2 sdl and goofing up. The version before it works fine. So if you wanted a specific version, you'd just find the specific HASH of that version on the gitlab page (https://gitlab.com/Tapani_/1oom/-/commits/master/), cd into the directory of the fork and go
git checkout HASH
rm -rf build-native/* && cd build-native
and run the long configure command and make command