Linux builds are driven entirely from the command line using CMake and the Ninja generator. The compiler is Clang, configured via the bundledDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/hedge-dev/UnleashedRecomp/llms.txt
Use this file to discover all available pages before exploring further.
toolchains/linux-clang.cmake toolchain file. vcpkg is included as a submodule and installs all C++ dependencies automatically during the first CMake configure run.
Build Steps
Add the required game files
Copy the following files from your legally acquired copy of Sonic Unleashed into
./UnleashedRecompLib/private/:default.xex— found in the game’s root directorydefault.xexp— obtained from the title update packageshader.ar— found in the game’s root directory
Install system dependencies
Install the packages required by the build. Commands are provided for apt (Debian/Ubuntu) and pacman (Arch):
This list may not be comprehensive for every distribution. If CMake
configuration fails with a missing package error, install the equivalent
package for your distro and re-run the configure step.
Configure the project
From the repository root, run CMake with your chosen preset. The example below uses CMake will bootstrap vcpkg and download/build all required libraries into
linux-release; see the preset reference for all options:./thirdparty/vcpkg/. This only happens on the first configure and can take several minutes depending on your internet connection and CPU speed.Build the project
Compile the
UnleashedRecomp target using the build directory that matches your chosen preset:The first build is slower than usual because XenonRecomp and XenosRecomp
translate the game’s PowerPC binary and Xenos shader bytecode into C++ and
HLSL as part of the build. Subsequent builds skip this step unless the
input game files change.
Available Presets
| Preset | Build type | Notes |
|---|---|---|
linux-debug | Debug | Full debug symbols, no optimisation |
linux-relwithdebinfo | RelWithDebInfo | Debug symbols + optimisation; recommended for development |
linux-release | Release | LTO enabled; best runtime performance |
