Build AnyPS5: converter-only and full runtime paths

Reviewed October 17, 2026 against upstream main 5f61879a9 ↗. These notes describe this source snapshot; release-file instructions are maintained separately and identify their own tag.

To build AnyPS5 as a conversion tool only, current source supports ANYPS5_RELINKER_ONLY=ON. This mode does not initialize third-party submodules or configure SDL, Vulkan, FFmpeg, FreeType or the shader recompiler. It still needs CMake, a C++20 compiler and a build tool. On Windows, use the documented MinGW-w64 toolchain; on Apple Silicon, the converter can build with AppleClang.

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 -N
ctest --test-dir build-relinker --output-on-failure

Python 3 must be found when CMake configures for Python regression tests to appear. In the listed tests, look for input_magic; if discovery fails, point Python3_EXECUTABLE at your actual Python executable and configure again. A passing converter test does not establish a game-runtime result.

Build AnyPS5 host libraries separately

Use another build directory for a complete runtime. Initialize the recursive submodules and configure the full dependency set. With default BUILD_TESTING=OFF, the ordinary build does not produce the host PRX libraries: explicitly build libs, whose output is build/core/libs/libs. Rebuilding only the converter after a library fix leaves old runtime binaries in place.

git submodule update --init --recursive
cmake -S . -B build-runtime -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
cmake --build build-runtime --parallel
cmake --build build-runtime --target libs --parallel

Pinned converter-only and full-build instructions ↗. For source-build download errors, retain TLS verification and follow the certificate checks rather than replacing project files.

Use the report’s source revision

The upstream build guide documents the required toolchain and recursive submodules. Pin the commit or branch in the report, then record every extra PR or local patch. A generic source ZIP may omit submodule contents.

The relinker is not the full runtime

On Windows, an error about multiple input files can come from an unquoted forced-include path: check spaces in the source path before replacing dependencies.

Build the conversion tool and the libs target for your intended host. The project’s Windows library build uses its documented MinGW-w64 toolchain. A successful relinker-only build does not establish that host libraries have been produced.

Preserve a reproducible pair

Store the revision, toolchain, build type and output platform with your result. Avoid substituting a release library archive without recording the difference. After building, use the registry/audit workflow before launching a game.

Read current instructions when your report differs

Experimental code changes quickly. The tagged guide below describes the release context; a newer main/PR-stack report may have different requirements. Follow its source and note which instructions you used.

How to Install AnyPS5: Windows Build Steps

AnyPS5 source-build workflow: verify tools, check out a revision, initialize submodules, configure, then build relinker and libraries
Port Record workflow illustration, based on upstream BUILD.md. It is a guide to the stages, not a screenshot of a completed game test.
01 / TOOLS · VIDEO 1:10

Install Git, CMake, Ninja and GCC

Use official Git ↗, CMake ↗, Ninja ↗ and WinLibs ↗ downloads. Match the toolchain to your selected revision; the reviewed upstream instructions specify x86-64 MinGW-w64 GCC 15.2.0. Installing an archive and putting its bin directory on PATH are separate steps.

git --version
cmake --version
ninja --version
gcc --version
g++ --version
Get-Command gcc,g++,cmake,ninja | Select-Object Name,Source
02 / SOURCE · VIDEO 4:20

Clone AnyPS5 and Initialize Submodules

Clone the actual upstream repository. Record the revision before following a game report. For the full-runtime path shown in this video, a source ZIP may omit submodules; initialize the nested dependencies before configuration. The converter-only path above does not need them.

git clone https://github.com/boykopovar/AnyPS5.git
Set-Location AnyPS5
git rev-parse HEAD
git submodule update --init --recursive
Test-Path .\CMakeLists.txt
03 / CONFIGURE · VIDEO 5:57

Configure AnyPS5 with CMake

Run from the root containing CMakeLists.txt. Use a separate, newly named build directory when comparing configurations, preserving the old logs. Check certificate failures using the dedicated FFmpeg download guide; replacing a whole CMake file from a video’s shared drive changes the source you are building.

cmake -S . -B build-reviewed -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
04 / BUILD · VIDEO 7:33

Build AnyPS5 and the Runtime Libraries

The conversion executable and host libraries are separate outputs. A relinker showing its usage message only proves it launches. It does not prove the libraries are built or a particular game works.

cmake --build build-reviewed --parallel
cmake --build build-reviewed --target libs --parallel

For a missing static shader library, follow the libSPIRV.a diagnostic path and retain the configure log. Copy host libraries only from the same revision and intended host target.

CMake cannot find Python3: check the interpreter

If your configure log says Could NOT find Python3 (missing: Python3_EXECUTABLE Interpreter), check the interpreter available in that terminal. Installing Python and CMake finding the intended executable are separate checks.

Get-Command python,python3,py -ErrorAction SilentlyContinue | Select-Object Name,Source
python --version

Use the actual interpreter path if automatic discovery fails. Upstream documents Python3_EXECUTABLE for Python test discovery; the CMake FindPython3 reference ↗ explains the interpreter setting. Match the failed dependency and source revision in your log rather than assuming every build needs the same Python components.

About the build walkthrough

The video was published October 12, 2026. Its chapters are available beside the player at the top of this guide. Chapter times come from the author’s metadata. Current documentation and the revision named by a test report take precedence over a historical video command.

Sources

Prepare your next step.

Use the local tools alongside the upstream documentation.

Open tools ↗