Reference · Build from source
Building AnyPS5 from source
Most people should use the official release. A source build is worth the trouble in three cases: a fix you need is only on the main branch, you need macOS binaries that no release ships, or you intend to contribute. This page covers both build modes and what each one actually gives you.
When you need a source build
- A fix that has landed on main but not in a release
- Fixes reach the main branch first and wait for the next tag. The Linux audio backend is the clearest illustration: commit 3d83999 landed on October 11, 2026 and reached users in v0.1.2 three days later. A source build is how you close that gap when the fix you need is already on main.
- macOS, which has no binaries in any release
-
The v0.1.2 relinker understands
--macosand--to-rosetta, but no release ships a macOS relinker or macOS system libraries, so a Mac has to build both; see the macOS guide. - Main-branch-only options
- v0.1.2 covers almost the whole documented option set. The one exception is
--linux-fixed-base, which loads the Linux output at a fixed base address and is only on the main branch. - Reproducing a community result
- Many reports in the games list were produced on a specific commit, sometimes with extra pull requests applied. Without the same build you are not testing the same thing.
- Contributing
- You need the full build and its tests before a pull request is worth sending.
Two build modes
| Mode | You get | You do not get |
|---|---|---|
| Relinker only | The converter. Builds on Linux, Windows and macOS, and builds quickly. | The system libraries, the shader recompiler and the runtime dependencies. A converted program cannot start. |
| Full build | The converter and the .prx system libraries a converted program loads. | Any guarantee that a given game runs. That still depends on the game. |
Toolchain
| Processor | x86-64. The build host and the output target are the same architecture. |
|---|---|
| Git | With submodule support; the full build needs the submodules checked out recursively. |
| CMake | 3.22.1 or newer, driving Ninja. |
| Compiler | C++20. GCC and g++ on Linux, with binutils. |
| Windows compiler | Only MinGW-w64 GCC 15.2.0, the WinLibs x86_64-ucrt-posix-seh variant, is documented as supported. Put its mingw64\bin on PATH before configuring. |
| Linux audio headers | SDL needs the PipeWire, PulseAudio or ALSA development packages, or configuration fails. |
Toolchain requirements change faster than any guide. Check BUILD.md at the commit you checked out, not at an older one.
Relinker-only build
The fastest way to confirm your toolchain works, and enough to test conversion behaviour on its own. It deliberately skips SDL, Vulkan, FFmpeg, FreeType, the shader recompiler and the system libraries.
git clone https://github.com/boykopovar/AnyPS5.git
cd AnyPS5
cmake -S . -B build-relinker -G Ninja -DCMAKE_BUILD_TYPE=Release -DANYPS5_RELINKER_ONLY=ON
cmake --build build-relinker --parallel
The converter ends up under build-relinker/core/relinker/. Add
-DBUILD_TESTING=ON at configuration time and run ctest --test-dir build-relinker
--output-on-failure if you want the converter's own test suite; passing tests confirm conversion
behaviour, not that any game runs.
Full build with the system libraries
The submodules are mandatory here, and the libs target has to be built explicitly: the default
build step alone does not produce the .prx libraries.
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
The libraries appear in build/core/libs/libs. Copy that folder's contents into the
libs folder next to your converted program, exactly as you would with a release archive; the
runtime folder rules do not change.
Configuration problems worth knowing
- Linux: SDL fails to configure
- The PipeWire, PulseAudio or ALSA development packages are missing. SDL's X11 support may additionally want the X11 and Xext development headers.
- Windows: the wrong GCC is picked up
-
Confirm that
gccandg++resolve to the MinGW-w64 toolchain before configuring, not to another compiler already onPATH. - Windows: FFmpeg downloads fail during configuration
- Point
SSL_CERT_FILEat a usable CA bundle and configure again. - macOS: no system libraries
- Relinker-only mode builds on macOS, but it does not imply a working macOS game runtime. The macOS guide explains what that does and does not get you.
Sources: BUILD.md, USAGE.md and CONTRIBUTING.md.