cpp-gui-template-sdl2-opengl icon indicating copy to clipboard operation
cpp-gui-template-sdl2-opengl copied to clipboard

Error while loading shared library on ubuntu 24.04 (WSL2)

Open fgehub-owner opened this issue 10 months ago • 1 comments

Hi checked this out to educate myself on packing. Installed fine on windows, and could uninstall. Building the same source on the same windows machine under WSL using gcc when I tried to run the ./App file it says:

./App: error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory

which is fair enough as the only other file in bin apart from the App exe is:

App_libSDL2-2.0.so.0.3000.9

Any advice?

Thanks

fgehub-owner avatar Jan 15 '25 14:01 fgehub-owner

Mhh I did indeed not try to compile under WSL. I think I need to catch this better in the build, as it currently probably goes the generic Linux route.

Can you give me your versions used (Windows & gcc)? I'll try to replicate.

MartinHelmut avatar Jan 18 '25 09:01 MartinHelmut