FireFox2000000 / Moonscraper-Chart-Editor

BSD 3-Clause "New" or "Revised" License
225 stars 61 forks source link

"SDL2 Linux runtime dependency not found" when SDL2 is installed #118

Open RomanPro100 opened 9 months ago

RomanPro100 commented 9 months ago

When I run the binary, a popup appears saying "SDL2 Linux runtime dependency not found" even though I have all dependencies installed. image The executable path is ~/Moonscraper Chart Editor v1.5.4 Linux (Universal)/Moonscraper Chart Editor.x86_64

My system: image

FireFox2000000 commented 9 months ago

@bmwalters A common solution to this is to install libsdl2-dev instead. Is there a solution to not have to install the dev version on systems that encounter this issue?

RomanPro100 commented 9 months ago

That helped, thx

FireFox2000000 commented 9 months ago

Keeping open for visibility as dev version is a workaround.

bmwalters commented 9 months ago

I think there’s a few possibilities:

I suggest adding a string representation of the DllNotFoundException to the error window for further troubleshooting and so we know which library name is not found

bmwalters commented 9 months ago

Looking at previous issues I see we used to have the exception string which indicates at least one user had issues with the main SDL2 library, making the second point less likely https://github.com/FireFox2000000/Moonscraper-Chart-Editor/issues/62

Looking at this issue I see the user had version 2.0.10 whereas 2.28.1 was available at the time they opened the issue, making the first point more likely https://github.com/FireFox2000000/Moonscraper-Chart-Editor/issues/110

bmwalters commented 9 months ago

Apparently this can also happen if dynamic linking dependencies of SDL fails due to other dependency issues on the system. Running the binary with the env var LD_DEBUG=libs may help debug. https://github.com/ppy/osu/issues/18628