JuliaMultimedia / SimpleDirectMediaLayer.jl

SDL2
MIT License
79 stars 17 forks source link

Does not work in Julia 1.10 on Ubuntu 22.04 #80

Open adamltaylor opened 3 months ago

adamltaylor commented 3 months ago

Super-helpful package, thank you for making it publicly available!

But just FYI, I tried to add this package to Julia 1.10.3 in Ubuntu 22.04.4. The precompilation step failed with this error:

ERROR: LoadError: The following 1 direct dependency failed to precompile:

SimpleDirectMediaLayer [98e33af6-2ee5-5afd-9e75-cbc738b767c4]

Failed to precompile SimpleDirectMediaLayer [98e33af6-2ee5-5afd-9e75-cbc738b767c4] to "/home/taylora/.julia/compiled/v1.10/SimpleDirectMediaLayer/jl_Te1Mlk".
ERROR: LoadError: InitError: could not load library "/home/taylora/.julia/artifacts/d587f48a6815c72dec4b083bf297caec7a8e3f4b/lib/alsa-lib/libasound_module_pcm_a52.so"
libavresample.so.4: cannot open shared object file: No such file or directory
Joh11 commented 3 months ago

Hi,

I have the same issue, with Linux Mint 21.3 and Julia 1.10.3.

One temporary fix I found is to downgrade to the last version not using the jll packages:

add SimpleDirectMediaLayer@0.1.1
adamltaylor commented 3 months ago

Ahh, ok, thanks for that. Partly for this issue, partly b/c of a seeming SDL/Cairo conflict, I had simply copied the main .jl files out of both those packages, modified them slightly, and then installed the system SDL2 and Cairo using apt. Non-ideal in several ways, but it seems to be working at the moment.

georgeglidden commented 3 months ago

I'm also having this issue, worked around it by installing FFMPEG.jl before installing SimpleDirectMediaLayer.

Kyjor commented 1 month ago

This pr may be related https://github.com/JuliaPackaging/Yggdrasil/pull/8863

Kyjor commented 1 month ago

Hey @adamltaylor , can you check now? I created a pr for a related package, and as a side effect, @giordano raised this pr: https://github.com/JuliaRegistries/General/pull/111347 to fix that issue, as it was blocking my pr. It looks like it has fixed it for this as well. I think we should be able to close this issue now. I ran all the tests on my fork and the ubuntu ones are passing now. They were all failing before this pr. 画像_2024-07-19_123112621

adamltaylor commented 1 month ago

At work now, will test this evening or this weekend. Thank you @Kyjor for your efforts!