- Install the tools from your distribution: Clang 19 or newer (or GCC 15 or newer),
Python 3.11+, Git, pkg-config, glslang and SDL3 with its headers. For example:
# Arch
sudo pacman -S clang python git pkgconf glslang sdl3
# Fedora
sudo dnf install clang python3 git pkgconf glslang SDL3-devel
# Debian 13, Ubuntu 25.04 or newer
sudo apt install clang python3 git pkg-config glslang-tools libsdl3-dev
Set [tools] cc = "clang" in your config (the default is gcc).
- Build, from the project folder:
python3 -m tools.yw4.ingest
python3 -m recomp.translate
python3 -m tools.yw4.shaders
python3 -m recomp.shader --check
python3 -m recomp.build --run
Bazzite, SteamOS or any system where you can't or won't install these:
python3 -m tools.yw4.system downloads the compiler and glslang into the build folder and
prints the two config lines to add.
Ubuntu 24.04 has no SDL3 package and an older Clang: install clang-19,
build SDL3 with CMake into a folder of your own,
and build and run with PKG_CONFIG_PATH=<folder>/lib/pkgconfig and
LD_LIBRARY_PATH=<folder>/lib.