From 64e283c948c8f3c6dfd310007621f685de76298e Mon Sep 17 00:00:00 2001 From: TreezZ <105643013+BigTreezZ@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:25:04 +0100 Subject: [PATCH] Update building-linux.md with full instructions (#260) * Update building-linux.md with full instructions * Update documents/building-linux.md Co-authored-by: TheTurtle <47210458+raphaelthegreat@users.noreply.github.com> * Update documents/building-linux.md Co-authored-by: TheTurtle <47210458+raphaelthegreat@users.noreply.github.com> * Update building-linux.md with build-essentials * Update building-linux.md --------- Co-authored-by: TheTurtle <47210458+raphaelthegreat@users.noreply.github.com> --- documents/building-linux.md | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/documents/building-linux.md b/documents/building-linux.md index 9124fd9d..0fa22ebf 100644 --- a/documents/building-linux.md +++ b/documents/building-linux.md @@ -5,6 +5,35 @@ SPDX-License-Identifier: GPL-2.0-or-later ## Build shadPS4 for Linux +### Install the necessary tools to build shadPS4: + +#### Debian & Ubuntu +``` +sudo apt-get install build-essential libasound2-dev libpulse-dev libopenal-dev zlib1g-dev libedit-dev libvulkan-dev libudev-dev git libevdev-dev libsdl2-2.0 libsdl2-dev libjack-dev libsndio-dev +``` + +#### Fedora +``` +sudo dnf install alsa-lib-devel cmake libatomic libevdev-devel libudev-devel openal-devel qt6-qtbase-devel qt6-qtbase-private-devel vulkan-devel pipewire-jack-audio-connection-kit-devel qt6-qtmultimedia-devel qt6-qtsvg-devel +``` + +#### Arch Linux +``` +sudo pacman -S openal cmake vulkan-validation-layers qt6-base qt6-declarative qt6-multimedia sdl2 sndio jack2 base-devel +``` + +#### OpenSUSE +``` +sudo zypper install git cmake libasound2 libpulse-devel openal-soft-devel zlib-devel libedit-devel vulkan-devel libudev-devel libqt6-qtbase-devel libqt6-qtmultimedia-devel libqt6-qtsvg-devel libQt6Gui-private-headers-devel libevdev-devel libsndio7_1 libjack-devel +``` +### Cloning and compiling: + +Clone the repository recursively: +``` +git clone --recursive https://github.com/shadps4-emu/shadPS4.git +cd shadPS4 +``` + Generate the build directory in the shadPS4 directory: ``` cmake -S . -B build/ @@ -17,5 +46,11 @@ cd build/ Use make to build the project: ``` -make -j$(nproc) +cmake --build . --parallel +``` + +Now run the emulator: + +``` +./shadps4 /"PATH"/"TO"/"GAME"/"FOLDER"/eboot.bin ```