Skip to content
Leonida Prerequisites Explained: What Each Tool Does and Why the Build Needs It
Official GTA VI screenshot, Rockstar Games. Game art, not build output: the Leonida project does not boot. · Project guide: the GTA 6 recompilation project.
  • Boots: No
  • Release: None
  • File: None

Leonida Prerequisites Explained: What Each Tool Does and Why the Build Needs It

Python, .NET, the Vulkan SDK, LLVM, Visual Studio and ffmpeg each do one job in the Leonida build. This guide explains each tool and why it is required.

Contents
  1. Why Prerequisites Matter
  2. Python 3.12 and Newer
  3. .NET 8 SDK and Visual Studio
  4. Vulkan SDK and LLVM
  5. FFmpeg: Optional, Except for WAV
  6. Checking Your Setup Before Building
  7. Conclusion
  8. Frequently Asked Questions

Why Prerequisites Matter

A build is only as reliable as the tools it runs with. Leonida needs several tools, and each tool does one job in the build. If a tool is missing, the job it does cannot be done, and the stage that needs that job will fail or produce incomplete output. If a tool is present but at the wrong level, the build may behave differently from the build the project describes. Prerequisites are therefore not a formality: they are the conditions under which the stated build results were produced.

Leonida prerequisites are Python 3.12 or newer, the .NET 8 SDK, the Vulkan SDK, LLVM 21 or newer with AMDGPU support, Visual Studio with Desktop development with C++ and Windows SDK 10.0.26100 or newer, and ffmpeg as an optional tool with one required use. The build targets Windows 10 and Windows 11 64-bit. Each item in that list is explained in its own section below, with the job it does and the reason the build needs it.

Readers should also note what is not in the list. This guide does not add tools beyond the stated set, and it does not claim levels beyond those stated. A tool that is not named here is not claimed as a prerequisite in this guide, and a level that is not stated here is not claimed either. That restraint keeps the prerequisite list checkable: a builder can go through it item by item and confirm each one, without guessing about extra requirements.

Python 3.12 and Newer

Python is the language of the build tooling. The build is driven through make_game.py, the progress dashboard is progress_dashboard.py, and the Python tools are part of the translator and tooling work as well. Python 3.12 or newer is required, and Python must be added to PATH during setup, so that the build commands can find the Python interpreter without a full path on every invocation.

Adding Python to PATH is a setup step with a practical consequence. Commands in this guide and in the build guides are written as python -I make_game.py, and that form assumes the python command resolves to the required Python. If Python is present but not on PATH, the command will not resolve, and the build will not start. The fix is a PATH setting, not a different Python, and builders should confirm the PATH setting before judging any other part of the build.

The -I form in the build command is part of the stated invocation, and it should be used as written. Builders should not substitute a different invocation and then report the result as if it were the stated build. The command form, the Python level, and the PATH setting together define the Python prerequisite, and all three should be in place before the build is run.

python -I make_game.py --check

.NET 8 SDK and Visual Studio

The .NET 8 SDK is required for the build. The SDK provides the .NET tooling that parts of the build depend on, and the level is stated as .NET 8. This guide does not claim a different .NET level, and builders should use the stated level rather than assuming a newer or older level will behave the same. The SDK is a build requirement, and its presence should be confirmed before the build is attempted.

Visual Studio is required with the Desktop development with C++ workload, together with Windows SDK 10.0.26100 or newer. The workload name matters, because Visual Studio can be set up with many workloads, and only the stated workload provides the C++ desktop development tooling the build needs. The Windows SDK level matters for the same reason: the build targets Windows 10 and Windows 11 64-bit, and the SDK provides the headers and libraries for that target. A Visual Studio setup without the stated workload, or with an older SDK, is not the stated prerequisite, even if Visual Studio itself is present.

Together, the .NET SDK and Visual Studio cover the compiled and managed parts of the build. Python covers the scripting and tooling parts. A builder who confirms Python, .NET, and Visual Studio has confirmed three different kinds of tooling, and a gap in any one of them will show up as a failure in the part of the build that needs it. The Leonida requirements guide lists the full requirement set in one place, and this guide explains why each item is there.

Vulkan SDK and LLVM

The Vulkan SDK is required for the graphics side of the build. It provides spirv-as and spirv-val, the assembler and validator for SPIR-V, which is the intermediate form that RDNA2 shaders are translated into for Vulkan. Shader translation to SPIR-V and Vulkan cannot be assembled and validated without the SDK tooling, and the presence of spirv-as and spirv-val is the concrete test of whether the Vulkan SDK prerequisite is met for shader work.

LLVM 21 or newer with AMDGPU support is required for the code translation side of the build. LLVM provides the compiler infrastructure that the translator work builds on, and AMDGPU support covers the graphics processor target family that the translation concerns. The project provides a script, scripts\build_llvm_mc.ps1, which takes about 20 to 40 minutes to run, or a builder can use conda llvm-tools instead, with the LLVM_MC environment variable pointing to the resulting tool. Either route must end with LLVM_MC set correctly, because the build looks for the tool through that variable.

Rebuild behaviour is tied to LLVM and to the translator. The build rebuilds when llvm-mc, the translator, or decoder records change. That behaviour is a correctness measure: if the tool or the translator that produced an output changes, the output is rebuilt rather than reused. Builders who change LLVM tooling should expect rebuilds, and should not treat a rebuild after a tool change as a failure. It is the build protecting its own outputs.

scripts\build_llvm_mc.ps1

FFmpeg: Optional, Except for WAV

FFmpeg is optional in the Leonida build, with one exception: it is required for the --wav option, because ffmpeg handles XMA2 material. XMA2 is an audio form, and WAV output from that material needs the ffmpeg handling. A builder who runs the build without --wav does not need ffmpeg, and a builder who runs the build with --wav must have ffmpeg in place before the run.

The conditional nature of the ffmpeg requirement is easy to misread in both directions. Treating ffmpeg as always required adds an unnecessary step for builders who do not need WAV output. Treating ffmpeg as never required leads to a failure when --wav is used. The correct reading is conditional, and this guide states it conditionally in every place it is mentioned: optional, except required for --wav.

Audio work in the build is otherwise counted through audio-config records, with 1,589 records reported. Those records are configuration entries from asset export, and they do not depend on ffmpeg in the same way that WAV output does. A builder should keep the two audio items apart: audio-config export is part of the assets stage, and WAV output is an option that needs ffmpeg for XMA2 handling.

Checking Your Setup Before Building

Before running Build.bat, a builder should confirm each prerequisite in turn. Confirm that Python 3.12 or newer is on PATH, that the .NET 8 SDK is present, that the Vulkan SDK provides spirv-as and spirv-val, that LLVM 21 or newer with AMDGPU support is available through LLVM_MC, and that Visual Studio carries the Desktop development with C++ workload with Windows SDK 10.0.26100 or newer. Confirm ffmpeg only if --wav will be used. Confirm the target, Windows 10 or Windows 11 64-bit, matches the machine the build will run on.

The Leonida build guide gives the practical build sequence once prerequisites are confirmed, and the guide to cloning Leonida safely explains how to obtain the source with its submodule before building. Prerequisites, source, and build sequence are three separate checks, and a failure in any one of them should be fixed in that check, not worked around in another. A build attempted without confirmed prerequisites will produce errors that look like build errors but are really setup errors.

The build interface can help during a run. The TUI setup screen presents the build setup, and logs numbered 1 to 4 can be switched with keys and Tab. Logs are also written to work/logs/, and the pipeline cache file pipeline_cache.bin records pipeline state. Those aids help a builder see which stage failed and why, but they do not replace prerequisite checks. A log that shows a missing tool is a setup result, and the fix is to meet the prerequisite, not to change the build options.

Confirm prerequisites before building. A missing tool is a setup gap, not a build defect, and the build should not be judged until its stated tools are in place.

Conclusion

Each Leonida prerequisite does one job. Python 3.12 or newer, added to PATH, runs the build tooling. The .NET 8 SDK provides .NET tooling. The Vulkan SDK provides spirv-as and spirv-val for SPIR-V work. LLVM 21 or newer with AMDGPU support, reached through LLVM_MC, supports code translation, with a build script that takes about 20 to 40 minutes or a conda llvm-tools route. Visual Studio with Desktop development with C++ and Windows SDK 10.0.26100 or newer provides the C++ desktop tooling for Windows 10 and Windows 11 64-bit. FFmpeg is optional, except required for --wav and XMA2 handling.

With those tools in place, a builder can run the build as stated and judge its results on their own terms. Without them, the build cannot be judged fairly. And even with them, the endpoint is unchanged: the game does not boot, there are 0 releases and 0 tags, and the loader runs a stand-in. Prerequisites make the build possible. They do not make the game run.

Frequently Asked Questions

Which Python level does Leonida need?

Python 3.12 or newer, added to PATH. The build is driven through make_game.py, and the python command must resolve to the required Python.

Is ffmpeg required for every build?

No. FFmpeg is optional, except that it is required for the --wav option, because ffmpeg handles XMA2 material.

What does LLVM_MC point to?

LLVM_MC is the environment variable for the LLVM machine code tool, built with the supplied script or obtained through conda llvm-tools. LLVM 21 or newer with AMDGPU support is required.