From 79235c3577020e19d5719b651d48f5848fbca0bb Mon Sep 17 00:00:00 2001 From: tomboylover93 <95257311+tomboylover93@users.noreply.github.com> Date: Wed, 22 Jan 2025 17:01:49 -0300 Subject: [PATCH] change instructions for building from terminal reference: https://github.com/shadps4-emu/shadPS4/pull/2211#issuecomment-2608134455 --- documents/building-linux.md | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/documents/building-linux.md b/documents/building-linux.md index 3501551e0..2672c70f4 100644 --- a/documents/building-linux.md +++ b/documents/building-linux.md @@ -70,16 +70,10 @@ cmake -S . -B build/ -DENABLE_QT_GUI=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COM To disable the Qt GUI, remove the `-DENABLE_QT_GUI=ON` flag. To change the build type (for debugging), add `-DCMAKE_BUILD_TYPE=Debug`. -2. Enter the directory: +2. Use CMake to build the project: ``` -cd build/ -``` - -3. Use CMake to build the project: - -``` -cmake --build . --parallel$(nproc) +cmake --build ./build --parallel$(nproc) ``` If your computer freezes during this step, this could be caused by excessive system resource usage. In that case, remove `--parallel$(nproc)`. @@ -87,15 +81,16 @@ If your computer freezes during this step, this could be caused by excessive sys Now run the emulator. If Qt was enabled at configure time: ``` -./shadps4 +./build/shadps4 ``` Otherwise, specify the path to your PKG's boot file: ``` -./shadps4 /"PATH"/"TO"/"GAME"/"FOLDER"/eboot.bin +./build/shadps4 /"PATH"/"TO"/"GAME"/"FOLDER"/eboot.bin ``` +You can also specify the Game ID as an argument for which game to boot, as long as the folder containing the games is specified in config.toml (example: Bloodborne (US) is CUSA00900). #### Option 2: Configuring with cmake-gui `cmake-gui` should be installed by default alongside `cmake`, if not search for the package in your package manager and install it.