STEP-BY-STEP GUIDE

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.

Last verified Expanded build-error diagnostic order and updated clone commands to active GPLv3 forks.

Clean isometric beginner developer desk showing a laptop compiling source code, an NVMe SSD with a 350 GB build progress bar, and a game controller
Keep at least 350 GB free on an SSD and always use git clone --recursive so nested submodules are included.
Quick Summary (TL;DR)

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.bat and make_game.py in 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:

  1. Missing Submodule Directories (CMakeLists.txt does not exist or missing third-party headers):
    • Symptom: CMake aborts in the first 5 seconds citing an empty folder under third_party/ or external/.
    • Root cause & fix: You downloaded a GitHub ZIP or omitted --recursive. Run git submodule status to confirm uninitialized entries (prefixed with -), then run git submodule update --init --recursive and delete any partial build/ directory before retrying.
  2. LLVM Built Without the AMDGPU Target (Target 'amdgpu' not registered or LLVMConfig.cmake not found):
    • Symptom: CMake fails to locate LLVM, or the shader lifter exits immediately when initializing the AMDGPU backend.
    • Root cause & fix: Run llc --version and verify amdgpu appears under Registered Targets. If it is missing, point LLVM_DIR to an LLVM build compiled with -DLLVM_TARGETS_TO_BUILD="X86;AMDGPU" rather than a stripped binary release.
  3. Python Version or Environment Collision (SyntaxError or ModuleNotFoundError in make_game.py):
    • Symptom: make_game.py fails immediately on modern type-hint syntax or cannot import standard packages.
    • Root cause & fix: Windows often resolves python to an older 3.9/3.10 install or the Microsoft Store stub. Run where python and python --version inside the exact shell running Build.bat to verify Python 3.12+ is first on PATH.
  4. .NET 8 SDK Missing or Wrong Runtime (NETSDK1045 / SDK 'Microsoft.NET.Sdk' not found):
    • Symptom: The C# asset-parser step exits with NETSDK1045 complaining that the current SDK does not support targeting .NET 8.0.
    • Root cause & fix: Run dotnet --list-sdks (not dotnet --list-runtimes) and confirm an 8.0.x SDK is listed. Installing the Desktop Runtime alone is not enough to compile the helper utilities.
  5. 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.

COMMON QUESTIONS

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.

Found this guide helpful? — readers

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.