New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio device not detected on Linux with SDL2_jll #1432
Comments
Can you do ldd against the system and the artifact .so's and report the results? |
Artifact:
System:
|
SDL2 needs to link against some kind of backing sound library to output on Linux; let's use `alsa` for that. X-ref: #1432
SDL2 needs to link against some kind of backing sound library to output on Linux; let's use `alsa` for that. X-ref: #1432
@dalum I just merged a new |
Unfortunately, it doesn't work I get the following errors, though:
|
Do you know what sound system your custom SDL library is using?
…On Tue, Aug 25, 2020 at 15:17 Sakse ***@***.***> wrote:
Unfortunately, it doesn't work
|
I'm not 100% certain, but it has both libpulse, alsa-lib and jack as optional dependencies, so my guess would be that it's configured to use whichever one is available. My system has PulseAudio running with an ALSA backend. |
Hmm, then ALSA should work, most likely it's buggered because the configuration file location needs to be set. What happens if you set |
But
|
What does "work" however, is to set
It looks like the builder ends up hardcoding a few too many paths from the build-agent? |
maybe
Interesting, we don't have |
That looks to me like your alsa config is telling it to use a pulseaudio plugin that it can't find. Hmmm. There is a default alsa config embedded within the artifact, isn't there? Let's try just using that. Can you set |
I get the exact same error,
|
Fascinating. I am not an expert on how ALSA and pulse audio interact; I may need to do some reading before I can solve this. I kind of assumed that ALSA was lower-level than pulse and as such should be completely oblivious to its influence, but I may be wrong. |
Bump. For what it's worth, I've also encountered the same problem on Linux. I've had to give up the idea of using ... or @aviks's |
that library is in |
Wait, they do support relocation with environment variables now: alsa-project/alsa-lib@8580c08. Try to set ENV["ALSA_PLUGIN_DIR"] = joinpath(alsa_plugins_jll.artifact_dir, "lib") or something like that. Edit: I fixed the name of the variable, it was misspelled before. |
No The problem persists. |
So I've verfied that the following invocation gets sounds working on my Manjaro linux machine
(Check spelling, compared to Mose's comment above) So that is good news, but there are couple of problems with this. One, the alsa config path may be different on different machines. The internet seems to think that it should live in The second problem is that we need to explicitly install and add So anyway, the good news is that I have verified a workaround, but the bad news is that I don't know how to proceed from here. |
Cross-ref: JuliaMultimedia/SimpleDirectMediaLayer.jl#51
Using SDL2_jll on Linux (latest Manjaro) together with SDL2_mixer_jll, no audio device is detected. If I manually copy over the system-provided
libSDL2-2.0.so.0.12.0
into the artifacts directory forSDL2_jll
, then everything works fine, so I assume something is up with the compiled.so
in the JLL.Would appreciate if someone could help resolve this.☺️
The text was updated successfully, but these errors were encountered: