Hi, I can build shadPS4 properly (and it runs well) if I use Clang instead of GCC. Here is the diff with the current PKGBUILD to get it to run properly (I also removed cubeb
since upstream removed this audio backend):
diff --git a/PKGBUILD b/PKGBUILD
index c4687d7..f12e71a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,7 +19,7 @@ depends=(
makedepends=(
'boost>=1.84'
'cmake>=3.16.3'
- 'cubeb'
+ 'clang'
'ffmpeg>=2:5.1.2'
'fmt>=10.2'
'git'
@@ -87,6 +87,8 @@ build() {
cmake -B build -S $_pkgname \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
+ -DCMAKE_CXX_COMPILER=clang++ \
+ -DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_INSTALL_RPATH=ON \
@@ -102,7 +104,6 @@ package() {
'libavcodec.so'
'libavformat.so'
'libavutil.so'
- 'libcubeb.so'
'libfmt.so'
'libpng16.so'
'libswresample.so'
Pinned Comments
abouvier commented on 2024-10-10 22:47 (UTC) (edited on 2024-10-13 04:36 (UTC) by abouvier)
Data previously stored in
~/.local/share/shadps4/user
are now searched in~/.local/share/shadPS4