I’m currently linking to SDL2 simply by having libsdl2-dev as a build-packages dependency.
I though this was working but a recent test found a machine where I get the following error.
Failed loading libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
SDL will be doing dlopen tricks which is normal for libGL, the system does have a libGL which is found by my non snap build.
My question is am I doing something wrong, it feels like SDL2 is big and complicated enough that it should be a snap itself that other snaps can require (is this how snaps work?) at the moment I’m getting 2.0.4 from the libsdl2-dev dependency which is about two years out of date so that would be another reason to snap it.
How should I be linking to SDL2 as a dependency in a snap build?