Independent community guide·Not affiliated with Sony or the AnyPS5 team
Repository and development / PRACTICAL GUIDE

Build AnyPS5 from Source: Windows & Linux Guide

Choose a full or relinker-only AnyPS5 build, pin a source revision, build host libraries, and identify common CMake and Windows toolchain problems.

THE SHORT ANSWER

What you need to know

Build the full project when you need host system libraries as well as the relinker. Relinker-only mode builds the conversion tool and its tests, not a playable-game runtime. These instructions were reviewed against v0.1.3; Atlas has not compiled or tested AnyPS5 on your PC.

Before you begin

This guide summarizes upstream documentation. It does not claim that we tested your game or PC. Match instructions to your release, and use game files you are entitled to use.

1. Clone and select a revision

Install Git, CMake and Ninja first. The commands below select v0.1.3 as a reproducible documentation baseline, not a promise that it is the newest version. If a game report requires another commit, use that revision and its own build instructions. Record git rev-parse HEAD with your test notes.

REFERENCE
git clone https://github.com/boykopovar/AnyPS5.git
cd AnyPS5
git checkout v0.1.3
git rev-parse HEAD

2. Prepare the full-build toolchain

The full build requires x86-64, CMake 3.22.1 or newer and a C++20 compiler. On Windows, upstream specifies WinLibs MinGW-w64 GCC 15.2.0, UCRT POSIX SEH r7. Python 3 and Git for Windows with Bash are also needed. Use a fresh terminal with the correct tools on PATH.

On Linux, install the display and audio development packages listed for your distribution in BUILD.md. Missing XRandR headers or all supported audio backends can stop configuration. Package names differ between Debian/Ubuntu and Fedora; do not paste a package list for another distribution.

3. Build the tool and the system libraries

Run these commands from the repository directory after choosing the revision. The explicit libs target matters: with the default testing configuration, the ordinary build does not produce the host libraries. Rebuild libs whenever you change their source.

REFERENCE
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 --parallel

4. Use a separate directory for relinker-only mode

For conversion-tool development, this mode skips the system libraries and third-party submodules. Python 3.9 or newer must be found at configuration time to register the Python tests. Use ctest -N to inspect registered tests; passing them does not prove that a game boots.

REFERENCE
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

5. Diagnose the first failure, then stage the runtime

For CMake errors, check the selected compiler and missing dependencies before retrying. On Windows, a Bash error mentioning WSL can mean the wrong bash.exe was selected. Upstream also documents Python discovery, FFmpeg certificate configuration and the toolchain runtime DLLs to copy alongside patched libraries.

After a successful full build, follow the platform setup guide to arrange libs/ and app0/. Keep the commit, compiler version and build logs with the game report. A successful compilation is a toolchain result, not a new compatibility verdict.

Sources and review scope

These links support the distinctions in this guide. A review date means we checked the source; it does not mean we ran the game. Main-branch documentation can change after this review.

Versioned upstream build documentationgithub.comVersioned upstream usage documentationgithub.com

Continue reading.

Analyze a startup log