Install and build XCL on Windows
XCL ships no installer: get the 341-file source bundle, install Rust and the Windows SDK, point XCL at DXC 1.8, build xcl.exe, then run the tests that ship with it.
Before you build anything, check your GPU first — if the SM 6.6 or mesh-shader line fails, nothing below will run and the symptom is a black screen rather than an error.
When the build finishes, the XCL first run walkthrough covers the first launch; if the build itself dies halfway through, the XCL build failed diagnostics is the page for it.
Not sure which build you should even be on? Start with the XCL version comparison.
Before you start
Windows 10 or 11, 64-bit; about 12 MB of source once extracted, plus a few GB for the Rust build tree; and a GPU with Shader Model 6.6 and mesh shaders. If that last line fails, stop here — the build still succeeds, and the game still draws nothing.
Get the source from GitHub
The source is GPL-2.0 and free. There is no release or installer: clone the upstream repo or download its zip, then enter the xcl folder.
git clone https://github.com/xcl-dev/xcl.gitWhat is inside the zip
If you cloned the repo, enter the xcl folder. If you use the optional packaged copy, expand it here. The folder has no prebuilt xcl.exe and no game data — you build the binary yourself.
cd xclREADME.mdThe full upstream reference, in English: build requirements, every environment variable, log fieldsREADME.zh-CN.mdThe same walkthrough in Chinese — a shorter guide, not a full translationCargo.tomlThe workspace definition — the build command has to run in the folder that holds itcrates\xcl\The layer itself: loader, HLE, GPU, shader translation. xcl.exe is built from heretests\testtitle\A fake console title shipped in the repo, so the build can be verified without a gametests\testgamedll\The fake game-shipped middleware DLL that testtitle loads; built alongside itscripts\test.ps1Builds the workspace and runs every test; anything the GPU cannot run prints SKIPPEDscripts\smoke.ps1Runs a real game for a fixed time and prints a regression block to paste into a reportdocs\Topic notes, such as wave64 compute running on 32-lane GPUsHANDOFF.mdThe development handover document, for when a failure needs detailLICENSEGPL-2.0-only, covering the whole bundleThe walkthrough only touches Cargo.toml, the crates/xcl folder and scripts. Work in a plain ASCII path with no spaces (for example C:\xcl) so build errors stay readable.
Build steps
Install Rust and build tools
Choose stable-x86_64-pc-windows-msvc when installing Rust, and install Visual Studio Build Tools plus the Windows SDK.
rustup showIf cargo build stops at once with link.exe not found or LINK : fatal error LNK1181, you installed Rust without the C++ workload of Visual Studio Build Tools. If it complains about Windows Kits or missing headers, the Windows SDK components are incomplete. Install the missing components, then re-run rustup show and confirm the default host triple is x86_64-pc-windows-msvc.
Get DXC (1.8 or newer recommended)
The SDK copy of DXC may be old and slow for PSO compilation. Download the standalone build and point bin\x64 to an environment variable.
$env:XCL_DXC_DIR = "C:\DXC\bin\x64"Download: DirectXShaderCompiler Releases
Translation failing instantly with no dxcompiler.dll or dxil.dll in the log is this step. XCL looks in Windows Kits\10\bin\<version>\x64, next to xcl.exe, then %XCL_DXC_DIR%. The same 10.0.26100.0 folder can hold DXC 1.7.2308 or 1.8.2502 depending on the SDK revision — the DXC version xcl run prints at startup tells you which one actually loaded.
Build inside the xcl\ folder
cd xcl
cargo build --release --workspaceUnpack, enter the xcl folder, and build there — Cargo.toml sits at that level. The binary always lands in target\release\xcl.exe; put that folder on PATH to call xcl from anywhere.
A build that dies halfway is usually disk space, RAM, or a crate that wants a newer MSVC toolchain; a failure at the link stage means the Windows SDK components are still incomplete. The binary lands in target\release\xcl.exe, not target\debug\ — dropping --release changes the path and makes every shader compile slower.
Run the tests that ship with the folder
No game needed yet: this proves the source you just built is sound. scripts\test.ps1 builds the whole workspace, then runs an end-to-end test with the bundled tests\testtitle; anything this machine cannot run (no GPU, no DXC) prints SKIPPED with a reason instead of failing.
.\scripts\test.ps1All green, or only SKIPPED left, means the build is fine. A real game comes next.
If the build fails
Each step above prints what its own failure looks like, so match the message before changing anything. If nothing matches, read the error groups by symptom, or hand compile-stage errors to diagnostics.
Optional: packaged source & build support
The source is free on GitHub under GPL-2.0. This 4.90 USD bundle is the reviewed zip plus notes — you do not need it to build XCL.
XCL source bundle (zip)
The source is GPL-2.0 and free. There is no release or installer: clone the upstream repo or download its zip, then enter the xcl folder.
- Upstream XCL source at commit 06c9f550 — 341 files
- Docs in both languages: README.md and README.zh-CN.md
- The original GPL-2.0 licence, unmodified
Stripe handles the payment; this site never sees your card details. Buying means you accept XCL's GPL-2.0 licence.