Problems with SDL2
Hi, not sure if this is the right place for this question. Apologies if not. I have an NES emulator written with Rust and SDL2: https://github.com/spieglt/nestur. My PinePhone originally shipped with Manjaro and I was able to compile and run it on there, though slowly. I've since switched to PostmarketOS and was trying to see if I could get the emulator running any faster, but can't seem to compile it.
At first I was using a bundled, static version of SDL2, as in the Rust bindings compiled their own version, but there were some unresolved symbol errors. So I removed those bundled/static directives to let it dynamically link to the system version, but then it couldn't find SDL2, which I then compiled and installed from source. Then it compiled correctly, but wouldn't execute from the terminal, giving a "not found" error as if the file wasn't sitting right there in the directory. So looking into similar Alpine errors, I realized I needed to run ldd and ensure all the libs were present, which led me to fixing that with sudo apk add libc6-compat. Now when I launch it I get Could not create window: "No available video device"'. Is this something that can be overcome, or does PostmarketOS/Phosh/Wayland/Alpine/something-else not support SDL2 currently? Thank you!