documents/building-docker.md
This guide explains how to build shadPS4 using Docker while keeping full compatibility with VSCode development.
Before starting, ensure you have:
Docker Engine or Docker Desktop installed
Installation Guide
Git installed on your system.
Inside the container (or on your host if mounting volumes):
cd <path-to-repo>
docker compose up -d
This will spin up a container with all the necessary build dependencies, including Clang, CMake, SDL2, Vulkan, and more.
mkdir emu
cd emu
git clone --recursive https://github.com/shadps4-emu/shadPS4.git .
or your fork link.
git submodule update --init --recursive
Generate build with CMake Tools.
CMake Tools > Configure > '>'Build > '>'Compiled executable in Build folder.
Generate the build directory and configure the project using Clang:
cmake -S . -B build/ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
Then build the project:
cmake --build ./build --parallel $(nproc)
After a successful build, the executable is located at:
./build/shadps4