Project Leonida Build Tutorial: SDKs, Git Clone & Setup
Step-by-step guide to compiling the Project Leonida (Leonida PC / Leonida port) GPLv3 source toolchain: required SDKs, 350 GB SSD preparation, recursive Git cloning, and build-error diagnostics.
Building Project Leonida (Leonida PC) from source is strictly for developers validating the GPLv3 toolchain—it does not boot GTA VI yet. You need ~350 GB free SSD space, Python 3.12+, .NET 8 SDK, Vulkan SDK, LLVM (AMDGPU), VS 2022 C++, and git clone --recursive on an active fork.
Before You Start: What Building Project Leonida Actually Does
Whether you found this guide searching for Project Leonida, Leonida PC, or Leonida port, all three names refer to the same open-source static recompilation toolchain targeting the Xbox Series X/S (1.0.2.1) build of Grand Theft Auto VI. Before installing 20+ GB of compilers and clearing 350 GB of SSD space, note the current reality: compiling this toolchain validates developer parsers, shader translation passes, and GDK shims—it does not launch playable gameplay yet. If you just want to track milestones, bookmark the Project Leonida homepage.
Step 1: Verify Your Local Prerequisites
This is the full software and storage stack required by the C++, Rust, Python, and .NET build steps:
| Prerequisite | Minimum Version / Target | Purpose in Pipeline |
|---|---|---|
| Operating System | Windows 10/11 (64-bit) or Linux (64-bit) | Native x86-64 compilation and Vulkan runtime |
| Free SSD Space | ~350 GB (400 GB recommended) | Unpacked intermediate files, asset work dirs, shader caches |
| Git | Latest 64-bit Git CLI | Recursive cloning of required Git submodules |
| Python | Python 3.12+ (added to PATH) | Runs make_game.py and asset orchestration scripts |
| .NET SDK | .NET 8 SDK | Builds C# helper utilities and package parsers |
| Vulkan SDK | Latest LunarG Vulkan SDK | Provides SPIR-V validation and Vulkan headers |
| LLVM | LLVM with AMDGPU target enabled | Handles RDNA2 shader disassembly and IR lowering |
| C++ Toolchain | Visual Studio 2022 (C++ Desktop Workload) | Compiles native Windows x86-64 shims and runtime stubs |
Not sure if your PC meets the disk, RAM, and hardware baseline? Test your machine locally in seconds with our Can I Run Leonida PC spec checker.
Step 2: Clone a Verified GPLv3 Continuation Recursively
Because the original ItsNotRexed/Leonida repo went 404 on November 24, 2026 (see our Project Leonida GitHub status tracker for the full fork comparison and safety audit), clone an active GPLv3 continuation such as ubiquitarianism/leonida using --recursive:
git clone --recursive https://github.com/ubiquitarianism/leonida
cd leonida
If you already cloned without submodules, initialize them before building:
git submodule update --init --recursive
Quick safety reminder: Inspect
Build.batandmake_game.pyin plain text before running them. For the full fake-installer and password-ZIP checklist, see the Malware Alert table on our homepage.
Step 3: Supply Legal Xbox Series Game Files (1.0.2.1)
Open-source forks ship zero game assets or keys. To run full pipeline validation beyond compiling the toolchain binaries themselves, place your own legally obtained Xbox Series X/S (1.0.2.1) package files in the working directory documented by your chosen fork's README.md.
Step 4: Run the Build Scripts
Open a Developer Command Prompt for VS 2022 (so MSVC cl.exe and cmake are on PATH) and verify your tool versions before building:
REM 1. Verify toolchain versions
python --version
dotnet --version
cmake --version
llc --version
REM 2. Compile the toolchain components
Build.bat
REM 3. Run the iterative pipeline script (validation only)
python make_game.py
Keep Task Manager open during the first shader and asset-processing pass to monitor SSD free space and memory pressure.
Common Build Errors: Exact Symptoms & Diagnostic Order
When Build.bat or make_game.py fails, work through these five checks in order—earlier failures often cascade into misleading linker or Python errors later in the log:
- Missing Submodule Directories (
CMakeLists.txt does not existor missing third-party headers):- Symptom: CMake aborts in the first 5 seconds citing an empty folder under
third_party/orexternal/. - Root cause & fix: You downloaded a GitHub ZIP or omitted
--recursive. Rungit submodule statusto confirm uninitialized entries (prefixed with-), then rungit submodule update --init --recursiveand delete any partialbuild/directory before retrying.
- Symptom: CMake aborts in the first 5 seconds citing an empty folder under
- LLVM Built Without the AMDGPU Target (
Target 'amdgpu' not registeredorLLVMConfig.cmakenot found):- Symptom: CMake fails to locate LLVM, or the shader lifter exits immediately when initializing the AMDGPU backend.
- Root cause & fix: Run
llc --versionand verifyamdgpuappears under Registered Targets. If it is missing, pointLLVM_DIRto an LLVM build compiled with-DLLVM_TARGETS_TO_BUILD="X86;AMDGPU"rather than a stripped binary release.
- Python Version or Environment Collision (
SyntaxErrororModuleNotFoundErrorinmake_game.py):- Symptom:
make_game.pyfails immediately on modern type-hint syntax or cannot import standard packages. - Root cause & fix: Windows often resolves
pythonto an older 3.9/3.10 install or the Microsoft Store stub. Runwhere pythonandpython --versioninside the exact shell runningBuild.batto verify Python 3.12+ is first onPATH.
- Symptom:
- .NET 8 SDK Missing or Wrong Runtime (
NETSDK1045/SDK 'Microsoft.NET.Sdk' not found):- Symptom: The C# asset-parser step exits with
NETSDK1045complaining that the current SDK does not support targeting.NET 8.0. - Root cause & fix: Run
dotnet --list-sdks(notdotnet --list-runtimes) and confirm an8.0.xSDK is listed. Installing the Desktop Runtime alone is not enough to compile the helper utilities.
- Symptom: The C# asset-parser step exits with
- Mid-Pass Disk Exhaustion or Corrupted Shader Cache (
ENOSPC/ truncated output files):- Symptom: The pipeline runs for 20+ minutes and crashes during asset extraction or SPIR-V translation with I/O write errors.
- Root cause & fix: Move the entire workspace to an NVMe SSD with 350–400 GB free, delete the partial output directory so corrupted intermediates are not reused, and restart
make_game.py.
To understand what these build steps are translating under the hood, read our GTA 6 Recomp vs. Emulation architecture explainer.
Frequently Asked Questions
Can I download the Project Leonida source as a ZIP instead of using Git?
No. Downloading a ZIP omits required Git submodules, which causes Build.bat and make_game.py to fail immediately. Always clone with git clone --recursive.
Will following this Project Leonida build tutorial let me play GTA VI?
No. Completing Build.bat and make_game.py only compiles and validates early engineering components such as asset parsers, shader translators, and GDK shims. The game does not boot yet.
What SDKs and tools are required to build Project Leonida?
You need Windows 10/11 (64-bit) or Linux (64-bit), roughly 350 GB of free SSD space, Python 3.12+, .NET 8 SDK, Vulkan SDK, LLVM with AMDGPU target support, and Visual Studio 2022 with C++ desktop tools.
Questions & Community Updates
Can I test compiling the Project Leonida toolchain if I do not have Xbox Series game files yet? Hacker News
Yes, running Build.bat without game files lets you verify that your C++, .NET 8, Vulkan, and LLVM toolchains compile cleanly. You only need legally supplied Xbox Series 1.0.2.1 files when running the full asset and shader passes in make_game.py.
Why does Build.bat fail right away when I download the repo as a ZIP? Reddit / r/GTA6
No. Downloading a ZIP skips nested Git submodules, which causes CMake to fail immediately with missing CMakeLists.txt errors. Always clone with git clone --recursive.
Why does LLVM fail even after I installed the official Windows LLVM installer? Community Q&A
Most prebuilt LLVM installers omit or misconfigure CMake discovery for the AMDGPU backend. Running llc --version lets you verify in two seconds whether amdgpu is registered before debugging CMake.