fix(build): require an SDL audio backend on Linux #3574
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3574"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by marshmll on 2026-10-11T13:35:28Z.
What
On Linux the bundled SDL builds its PipeWire, PulseAudio and ALSA audio drivers only when their development files are found. Without them it keeps only the silent
dummyanddiskdrivers and configuration still succeeds, so titles run with no sound and nothing reports why.The Linux jobs in
build.ymlandrelease.ymlinstall onlylibvulkan1andmesa-vulkan-drivers, so the published v0.1.1 Linux libraries are built this way:stringsonlibSceAudioOut.prx,libSceAgcDriver.prxandlibfmod.prxfromprx-linux-v0.1.1.tar.gzfinds only "SDL dummy audio driver" and "direct-to-disk audio", and nolibpulse.so.0,libpipewire-0.3.so.0orlibasound.so.2.CMakeLists.txt: on Linux, with the bundled SDL, configuration fails with the package names when SDL found none of PipeWire, PulseAudio or ALSA (HAVE_PIPEWIRE,HAVE_PULSEAUDIO,HAVE_ALSAin SDL's directory scope). SDL already defaults these drivers ON and loads the libraries at run time (*_SHARED), so the built libraries gain no link dependency.ANYPS5_USE_SYSTEM_DEPS=ONis unchanged.build.ymlandrelease.yml: the Linux jobs installlibpipewire-0.3-dev,libpulse-devandlibasound2-dev.docs/dev/BUILD.md: lists the packages for Debian/Ubuntu and Fedora.Tested
Fedora 44, GCC 16.2.1, AMD RX 9060 XT (RADV, Mesa), PipeWire.
mainwithout the audio development packages: the generatedSDL_config.hdefines only the DISK, DUMMY and OSS audio drivers, and the title opens its AudioOut port (Audio out started (port#1,256[samples],48000[Hz],2[ch])) with no sound. After installingpipewire-devel,pulseaudio-libs-develandalsa-lib-develand reconfiguring, SDL defines PIPEWIRE, PULSEAUDIO and ALSA, the title shows up as a PulseAudio stream and is audible. Rendering was fine in both 90 s runs; no crash.-DSDL_PIPEWIRE=OFF -DSDL_PULSEAUDIO=OFF -DSDL_ALSA=OFFstops with the new error; a normal configuration passes.ctestbefore the change: 838 tests on RADV, all passed. On lavapipe onlyagc_driver_emulated_color_compare(#3526) andagc_driver_image_plane_address_on_line_implicit_lod(#3418) fail, the same as onmain. After the change, the audio, pad and VideoOut tests (25) pass on lavapipe.python3 tools/check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T15:28:05Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main).github/workflows/build.ymlL218-219.github/workflows/release.ymlL65docs/dev/BUILD.mdL30docs/dev/BUILD.mdL29-30Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T21:35:39Z.
Checked the configure check on Linux: with
-DSDL_PIPEWIRE=OFF -DSDL_PULSEAUDIO=OFF -DSDL_ALSA=OFFit stops with the new message, and a normal configuration passes; full build and ctest on Linux pass (the only failures are window-opening video-out tests that time out here without this change too). The Ubuntu package install is covered by a manual full Build run before merging; merging once it is green.