Quakespasm Spiked · Multiplayer

Build QSS-M
from source.

Copy-paste, caveman-proof instructions for every platform — Linux (all the popular distros), macOS, and Windows. These are the exact same recipes our GitHub Actions CI runs, so if it builds here, it builds for you.

Linux · one script macOS · universal Windows · MSYS2 / VS 📦 GitHub source

You need the retail Quake data first

QSS-M is the engine only. It cannot run without pak0.pak and pak1.pak from a registered copy of Quake, placed in an id1 folder next to the binary. Buy Quake on Steam (files live in steamapps/common/Quake/Id1) or dig out the original CD.

Get the code

Every platform below starts the same way. Clone once, then jump to your OS.

git clone https://github.com/timbergeron/QSS-M.git
cd QSS-M

Linux

Install the dev libraries for your distro, then run the one build script. Pick your family:

1Install dependencies
sudo apt-get update
sudo apt-get install -y build-essential pkg-config libsdl3-dev \
  libgnutls28-dev libmad0-dev libopus-dev libopusfile-dev \
  libvorbis-dev zlib1g-dev libcurl4-openssl-dev zip

# libsdl3-dev needs Debian 13 or Ubuntu 25.04 or newer. On older releases, build SDL 3.2.12
# or newer from source — CI uses .github/scripts/build-sdl3-linux.sh — then run
# PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig SDL3_RUNTIME=$PREFIX/lib/libSDL3.so.0 ./build-linux.sh
# so the zip carries libSDL3.so.0 beside the executable.

2Build & package
./build-linux.sh

# QSS-M needs SDL 3.2.12 or newer in the SDL3 series; releases bundle SDL 3.4.20. It asks SDL
# for X11 first and falls back to Wayland; run SDL_VIDEO_DRIVER=wayland ./QSS-M-l64 to use Wayland.

Done. You get the QSS-M-l64 binary and a ready-to-ship Quake/QSS-M-l64.zip. Drop your id1 folder beside the binary and run it.

Prefer to drive make yourself?

Skip the script and compile directly — handy for quick dev iteration. The QSS_LDFLAGS below is required on GCC 10+ (Ubuntu 22.04+, current Fedora/Arch); without it the link fails with “multiple definition” errors:

cd Quake
make QSS_LDFLAGS="-Wl,--allow-multiple-definition" -j8

macOS

Builds a Universal app (Intel + Apple Silicon) via Xcode. Audio and TLS libraries are compiled statically with vcpkg on the first run.

1Install Xcode + build tools

Install Xcode from the App Store (the full IDE, not just the command-line tools), then the Homebrew helpers the crypto libraries need:

brew install autoconf automake libtool pkg-config autoconf-archive
2Build & package

One command does everything — it runs setup-vcpkg.sh to fetch and compile the static deps, then builds and zips the app. Run it as your normal user, never with sudo.

cd macOS
./build-macos.sh

# The first run pulls a pinned vcpkg checkout and builds every static dep
# (GnuTLS, Nettle, Opus, Vorbis, FLAC, ...) for both x86_64 and arm64 — go get a coffee.
# Later builds reuse the vcpkg cache and are much faster.

Done. Your universal QSS-M.app and QSS-M-macOS.zip land in macOS/build/Release/.

Working in Xcode directly?

If you skip the script and build the target yourself, run the dependency setup once first — otherwise the static libraries won't exist:

cd macOS
./setup-vcpkg.sh            # builds libs_universal/ for both arches
xcodebuild -project QuakeSpasm.xcodeproj -target QSS-M -configuration Release

Windows

Three proven paths. MSYS2 is the easiest if you're on Windows. You can also cross-compile the .exe from Linux — that's what our CI does. Visual Studio is there if you'd rather stay in the IDE.

Recommended · MSYS2 (MinGW-w64)
1Install MSYS2

Grab the installer from msys2.org. From the Start menu open the “MSYS2 MINGW64” shell (the blue one — not the plain UCRT/MSYS shell).

2Install the toolchain & libraries
pacman -S --needed base-devel git make curl zip \
  mingw-w64-x86_64-gcc mingw-w64-x86_64-pkgconf \
  mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-python
3Clone & build (64-bit)
git clone https://github.com/timbergeron/QSS-M.git
cd QSS-M
export CC=gcc CXX=g++ WINDRES=windres STRIP=strip
bash Misc/qssm_pak/build.sh
sh build-w64.sh

Done. Out come Quake/QSS-M-w64.exe and its ZIP. SDL3 and the other bundled libraries are embedded in the executable; no third-party DLLs are required.

Want a 32-bit build?

Open the MSYS2 MINGW32 shell instead, install the matching mingw-w64-i686-* packages, and run sh build-w32.sh.


Alternative · Cross-compile from Linux (MinGW-w64)

The release scripts build pinned SDL3, curl, zlib, audio codec, and GnuTLS sources as static libraries. The first build downloads and compiles dependencies; later builds reuse their objects. See the static build notes for details.

1Install the MinGW-w64 cross toolchain
# Debian / Ubuntu / Mint — one package covers both 64- and 32-bit targets
sudo apt-get install -y build-essential git zip mingw-w64 python3 cmake ninja-build \
  pkg-config curl xz-utils autoconf automake libtool gettext texinfo gperf bison flex

On Fedora/RHEL that's mingw64-gcc mingw32-gcc; on Arch it's mingw-w64-gcc.

2Build & package
sh ./build-w64.sh          # 64-bit
sh ./build-w32.sh          # 32-bit

Done. The 64-bit command produces Quake/QSS-M-w64.exe and Quake/QSS-M-w64.zip; the 32-bit command produces the matching QSS-M-w32.exe and QSS-M-w32.zip. Each ZIP includes support files and dependency licenses, with no bundled DLLs.

# These scripts are checked in without the executable bit, so run them via sh
# (or chmod +x build-w64.sh first). Override the defaults with environment
# variables: MAKEARGS=-j16, CC=, WINDRES=, STRIP=.

A word about TLS

MinGW builds compile GnuTLS and its dependencies statically and retain TLS support. A dependency build failure stops the release build.


Alternative · Visual Studio 2022

Install Python 3.12+, CMake, Git, and the C++ desktop workload. Build the static dependencies before opening Windows/VisualStudio/quakespasm.sln or running MSBuild:

python Windows/build-static.py --toolchain msvc --arch x64
msbuild Windows\VisualStudio\quakespasm.vcxproj ^
  -p:Configuration=Release -p:Platform=x64

Stuck? Read the CI

Every command on this page comes straight from the automated build recipes. If something drifts, the workflows are the source of truth:

linux.yml · macos.yml · windows-mingw.yml · windows-msys2.yml · windows-msvc.yml  —  plus the build-linux.sh, build-w64.sh, and macOS/build-macos.sh scripts in the repo root.