Step by step

  1. Understand what macOS support covers today

    --macos writes an x86-64 macOS program, and v0.1.2 accepts it. What the release does not give you is anything to run on a Mac: there is no macOS relinker download and no macOS library archive, so both have to be built. On Apple silicon the output runs through Rosetta, not as native ARM64 code, so a Mac without Rosetta installed cannot start it at all. The project's compatibility notes have no macOS column either, so no game has a published macOS result to compare yours against.

    The relinker-only build works on macOS and is enough to test the conversion itself. It does not produce the system libraries the converted program needs, which is why the full build follows below.

  2. Install the toolchain

    Terminal
    xcode-select --install
    brew install cmake ninja git

    The compiler must support C++20. CMake 3.22.1 or newer is required for the full build. If you installed CMake and Ninja another way, use that instead of Homebrew.

  3. Clone the repository with its submodules

    Terminal
    mkdir -p ~/anyps5 && cd ~/anyps5
    git clone https://github.com/boykopovar/AnyPS5.git
    cd AnyPS5
    git submodule update --init --recursive

    The submodules are only needed for the full build, but fetching them now avoids a confusing configuration error later. Note the commit you checked out: the documentation describes the main branch as it is today, and both move quickly.

  4. Build the relinker, then the system libraries

    Start with the converter alone. It builds fastest and tells you whether your toolchain is usable:

    Relinker only
    cmake -S . -B ../build-relinker -G Ninja -DCMAKE_BUILD_TYPE=Release -DANYPS5_RELINKER_ONLY=ON
    cmake --build ../build-relinker --parallel

    Then build the whole project and the libs target, which is the step that actually produces the system libraries. The default build step alone does not:

    Full build with system libraries
    cmake -S . -B ../build -G Ninja -DCMAKE_BUILD_TYPE=Release
    cmake --build ../build --parallel
    cmake --build ../build --target libs --parallel

    The libraries end up in build/core/libs/libs. Our build guide covers the toolchain requirements and the dependency problems that show up on each platform.

  5. Convert the executable for macOS

    Folder layout before conversion
    ~/anyps5/
    ├── AnyPS5/             <- the cloned repository
    ├── build/              <- full build output (system libraries)
    ├── build-relinker/     <- relinker-only build output
    └── source/
        ├── eboot.elf        <- the game's main executable (plain ELF)
        └── sce_module/      <- the modules that ship with the game (plain ELF)
    Apple silicon (Rosetta)
    cd ~/anyps5
    mkdir -p game
    ./build/core/relinker/relinker --macos --to-rosetta source/eboot.elf game/app
    Intel Mac
    cd ~/anyps5
    mkdir -p game
    ./build/core/relinker/relinker --macos --to-intel source/eboot.elf game/app

    Without --macos the output is a Linux ELF whatever you call the file. --to-intel rewrites the AMD-only instructions the relinker finds in the files; --to-rosetta does the same and additionally lowers instructions Rosetta does not provide. Neither can fix code a game generates while it runs.

    The bundled modules are converted too and printed as Guest module: lines. Exit code 0 means success, 1 invalid arguments, 2 a failed conversion with the reason printed.

  6. Build the runtime folder

    The layout is the same as on Linux: AnyPS5's own libraries in libs, the converted modules and the game's data in app0. Only AnyPS5's libraries belong in libs, never the game's original modules.

    Terminal
    mkdir -p game/libs
    cp -R build/core/libs/libs/ game/libs/
    Runtime folder
    ~/anyps5/game/
    ├── app
    ├── libs/               <- the .prx files from build/core/libs/libs
    └── app0/
        ├── sce_module/      <- converted modules ("Guest module:" lines)
        └── ...              <- the game's data files

    The default lookup path is $ORIGIN/libs; a custom --rpath at conversion time changes it. See the usage reference for the full folder rules.

  7. Run it and read the first error

    Terminal
    cd game
    chmod +x app
    ./app

    Expect it to stop. A converted program still needs a working Vulkan path, and macOS has no native Vulkan driver, so a translation layer such as MoltenVK through the Vulkan SDK has to be in place before the graphics side can even be attempted. When a game reaches something AnyPS5 has not implemented yet, it stops and prints an error that names it; our games list shows how far other testers have got, on which platform and on which build.

Controls

Controllers recognised by SDL work without configuration, and the first recognised controller is used. For keyboard and mouse, create anyps5-input.ini next to the converted program; the input mapping reference covers the format and the available actions.

What to expect, honestly

macOS is the least-tested target of the three. A successful build and a successful conversion tell you that the relinker handled the file; they say nothing about whether the game renders, plays sound or saves. There is no official macOS compatibility column and no release binary, so any result you get is yours alone until someone reproduces it.

If you do get somewhere, the exact commit, the relinker command, the Mac model and the Vulkan setup are the details that make a report useful in Game bring-up. Our troubleshooting page collects the errors that are already known cross-platform.

Sources: BUILD.md, USAGE.md and the v0.1.2 argument parser, which is where the option availability in this guide comes from.