A couple of months ago, I wrote a tutorial about SLiM 5.x installation process on Windows machines. I hope this works :) When installing the dependencies in Step 2, make sure that they match those in the manual.
# SLiM 5.0 Installation on Windows using MSYS2 (from SLiM5.zip)
## STEP 1: Set up MSYS2
2. Open **MSYS2 MinGW 64-bit** terminal (not MSYS or UCRT).
3. Update the system:
pacman -Syu
# Close the terminal if prompted, then reopen and run:
pacman -Su
## STEP 2: Install dependencies
pacman -S \
mingw-w64-x86_64-gcc \
mingw-w64-x86_64-cmake \
mingw-w64-x86_64-make \
mingw-w64-x86_64-qt5 \
mingw-w64-x86_64-qt5-base \
mingw-w64-x86_64-autotools \
mingw-w64-x86_64-libpng \
mingw-w64-x86_64-zlib \
git #optional, at least you want to install it through GitHub
## STEP 3: Move SLiM5.zip to MSYS2
# If downloaded via browser, it will be in Downloads.
# From MSYS2:
cp /c/Users/antid/Downloads/SLiM5.zip ~ #just unzip the compressed file in your downloads folder
cd ~
unzip SLiM5.zip
# This creates a folder, e.g., SLiM5 or slim_v5, make sure to extract it an rename it at convenience
## STEP 4: Compile SLiMgui
cd /SLiM5 # or adjust if directory has a different name
mkdir build
cd build
cmake -G"MSYS Makefiles" -D BUILD_SLIMGUI=ON ..
make SLiMgui
# Optional: install to mingw64 so slimgui is available system-wide
DESTDIR=/mingw64 make install
## STEP 5: Verify installation
ls /mingw64/bin/slimgui.exe
slimgui & # Opens SLiMgui
# Inside SLiMgui, test this script:
# initialize() {
# sim.simulationFinished();
# }
# Console output should confirm SLiM version 5.0
## Notes
- This avoids using `git clone` if you prefer using the .zip from the official site.
- The SLiM_Recipes.zip file contains examples and does not need to be installed — just extract and open the files in SLiMgui.
## Make an alias to open slimgui
nano ~/.bashrc
alias slimgui='"/mingw64/Program Files (x86)/SLiM/bin/SLiMgui.exe"' # save and close
source ~/.bashrc #reload file
slimgui
### to run slim commands
export PATH="$PATH:/mingw64/Program Files (x86)/SLiM/bin" ### Add SliM to the installation path permanently