Package Details: pcsx2-git 2.3.240.r2.g23c495b939-1

Git Clone URL: https://aur.archlinux.org/pcsx2-git.git (read-only, click to copy)
Package Base: pcsx2-git
Description: PlayStation 2 emulator
Upstream URL: https://github.com/PCSX2/pcsx2
Licenses: GPL-3.0-or-later
Conflicts: pcsx2
Provides: pcsx2
Submitter: alucryd
Maintainer: weirdbeard (xiota)
Last Packager: weirdbeard
Votes: 131
Popularity: 0.52
First Submitted: 2014-03-26 14:17 (UTC)
Last Updated: 2025-03-25 20:47 (UTC)

Dependencies (35)

Required by (4)

Sources (2)

Pinned Comments

weirdbeard commented on 2024-08-17 03:40 (UTC)

https://github.com/PCSX2/pcsx2/pull/11632

This package now enables Cmake Package mode proper. PCSX2 will here on, be installed in the package standard folders /usr/bin, /usr/share, /usr/lib. Following the XDG standard pcsx2's config files remain in .config/PCSX2

In order to ensure a proper and clean upgrade. Uninstall this package COMPLETELY and clear cache before reinstalling.

Latest Comments

« First ‹ Previous 1 .. 6 7 8 9 10 11 12 13 14 15 16 .. 70 Next › Last »

patlefort commented on 2024-06-06 19:51 (UTC)

The cache that pcsx2 use is in ~/.config/PCSX2/cache/vulkan_*. If present, it might try to use what's cached and not use shaderc at all.

Using DCMAKE_BUILD_RPATH should work. (not DCMAKE_INSTALL_RPATH).

patlefort commented on 2024-06-06 18:03 (UTC)

I managed to fix the issue.

diff --git a/PKGBUILD b/PKGBUILD
index 10b6037..6dd527c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -86,14 +86,14 @@ prepare() {
         git submodule set-url "${submodule#*::}" "$srcdir"/"${submodule%::*}"
         git -c protocol.file.allow=always submodule update "${submodule#*::}"
     done
-
+
     cd 3rdparty/rapidyaml/rapidyaml
     for submodule in ext/c4core; do
         git submodule init ${submodule}
         git submodule set-url ${submodule} "${srcdir}/${submodule##*/}"
         git -c protocol.file.allow=always submodule update ${submodule}
     done
-
+
     cd ext/c4core
     for submodule in cmake src/c4/ext/{debugbreak,fast_float}; do
         git submodule init ${submodule}
@@ -117,16 +117,16 @@ build() {
     -DCMAKE_MODULE_LINKER_FLAGS_INIT="-fuse-ld=lld" \
     -DCMAKE_SHARED_LINKER_FLAGS_INIT="-fuse-ld=lld" \
     -DSHADERC_INCLUDE_DIR=/usr/lib/shaderc-non-semantic-debug/include \
-    -DSHADERC_LIBRARY=/usr/lib/shaderc-non-semantic-debug \
+    -DSHADERC_LIBRARY=/usr/lib/shaderc-non-semantic-debug/libshaderc_shared.so.1 \
     -DUSE_VULKAN=ON \
     -DENABLE_SETCAP=OFF \
-    -DCMAKE_SKIP_RPATH=ON \
     -DX11_API=ON \
     -DWAYLAND_API=ON \
     -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
-    -DDISABLE_ADVANCE_SIMD=ON
+    -DDISABLE_ADVANCE_SIMD=ON \
+    -DCMAKE_BUILD_RPATH="/opt/${pkgname%-git}"
     ninja -C build
-
+
     cd pcsx2_patches
     7z a -r ../patches.zip patches/.
 }

The problem is that it wasn't finding libshaderc_shared.so.1 in /opt/pcsx2. The library is dynamically loaded with dlopen and to tell it to load in /opt/pcsx2, we have to define a rpath. Also SHADERC_LIBRARY should be the library file, but it doesn't really matter as it doesn't link at build time.

rodrigo21 commented on 2024-06-06 04:19 (UTC)

@xmusjackson I tried the pcsx2-latest-bin package which is appimage and Vulkan worked.