Relinker-only is not a playable runtime
Relinker-only mode intentionally skips SDL, Vulkan, FFmpeg, FreeType, the shader recompiler, and system libraries. It is useful for developing and testing format conversion but does not produce a complete game runtime.
Toolchain
Requirements for full build: x86-64, Git, CMake ≥ 3.22.1, Ninja, C++20; Linux GCC/G++ and binutils. On Windows the documented supported full-build compiler is MinGW-w64 GCC 15.2.0 with the WinLibs x86_64-ucrt-posix-seh variant. Place its mingw64/bin on PATH before CMake configuration.
Option A: Relinker-only build
cmake -S . -B build-relinker -G Ninja -DCMAKE_BUILD_TYPE=Release -DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON
cmake --build build-relinker --parallel
ctest --test-dir build-relinker --output-on-failureThis mode supports Linux, Windows, and macOS toolchains for the converter. It does not imply native macOS gaming support.
Option B: Full build with host libraries
Initialize recursive Git submodules, configure, compile, and explicitly build the libs target:
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
cmake --build build --parallel
cmake --build build --target libs --parallelThe default build step alone does not generate the runtime PRX libraries. On Windows, FFmpeg configuration downloads may need SSL_CERT_FILE pointed at an appropriate CA bundle. On Linux, SDL/X11 builds may need the development headers for X11 and Xext.
Verify what the build actually produced
A completed CMake build is not the same as a complete usable game package. First identify the target you requested and inspect that target's output, rather than assuming that any file ending in .exe or .elf can launch a game. A Relinker-only build should yield the format-conversion executable and its applicable test targets. A full build needs host system libraries in addition to that converter. The host libraries implement system functions expected by the relinked application; simply producing a new binary cannot supply those functions.
For a Relinker-only checkout, run the project's CTest suite for that build directory. Read failed test names and stderr output before using the converter against a different executable. For a full checkout, confirm that the libs target actually completed and that its generated host libraries belong to the same repository revision and target operating system as your converter. A Windows library is not a substitute for its Linux counterpart. Do not fill gaps by copying a random .prx file from a game archive into libs/: bundled guest modules and AnyPS5 host libraries have different jobs.
You can inspect the generated build graph without blindly rebuilding everything. The following commands are examples for Ninja-based configurations and should be run in the same checkout used for configuration:
# Show available targets in a configured Ninja build
cmake --build build --target help
# Re-run tests after source or configuration changes
ctest --test-dir build --output-on-failure
# Build only the required host-library target, when available
cmake --build build --target libs --parallel
Where a target or test does not exist in the chosen configuration, examine the upstream CMake options for that revision. The Relinker-only configuration intentionally excludes parts of the graphics and runtime system, so a missing full-runtime target is expected rather than a reason to copy missing binaries from another release.
Diagnose toolchain and configuration failures
CMake chose the wrong compiler
CMake stores compiler choices and resolved toolchain paths in a build directory. Changing PATH after a failed configuration does not reliably replace every cached decision. Check the compiler printed during configuration and compare it against the toolchain required by upstream BUILD.md. When you deliberately switch compilers, create a fresh build directory or explicitly reconfigure an appropriate cache rather than treating the old compiler result as current. On Windows, ensure your chosen MinGW-w64 binaries are the ones being executed, especially if other toolchains are installed. On Linux, verify that gcc, g++, Ninja and the development headers are available in the build environment.
A dependency configures but the complete build fails
Separate a compiler error from a missing system package and from a download or TLS certificate problem. Dependency failures normally appear before the Relinker or host library code is compiled. Record the first failed command and the preceding CMake summary. If the upstream instructions specify development headers or a certificate bundle, fix the missing prerequisite rather than changing unrelated rendering options. Patching a graphics runtime flag cannot resolve an SSL certificate error during dependency download.
Relinker conversion succeeds but the program does not start
The conversion step and runtime execution are distinct. A converter exit code of zero means the conversion action finished successfully, not that the game's assets, graphics and system functions were tested. The converted executable still needs the expected app0/ resource tree and the platform-appropriate AnyPS5 host libraries. Consult the command reference for target format flags and our troubleshooting guide for missing DLLs, memory allocation, imports and GPU selection. Where an upstream issue gives a specific game/build combination, use the compatibility index to compare that environment with yours.
A pull request or latest main behaves differently from v0.1.2
The tagged v0.1.2 release was published on 14 October 2026. The default branch contains later merged engineering changes and some reports depend on unmerged work from contributors. A fresh checkout can therefore have commands, output layouts or diagnostic capabilities that the public tag lacks. Record the exact commit from your local checkout and the release or branch you are comparing. Do not copy libraries compiled from one version into a different release and assume their exported interfaces or runtime behavior are equivalent.
Check the original documentation
The commands above are single lines so they work in Bash or PowerShell. Confirm that gcc and g++ resolve to the required host toolchain. Build flags, supported toolchains, and required dependencies can change faster than an independently maintained guide. The exact authoritative instructions are in upstream BUILD.md ↗. Match documentation to your checkout commit rather than using examples from unrelated branches.