I managed to successfully build a statically linked SDL3 using musl on an Alpine Linux Docker instance with most (but not all) optional dependencies. I then linked this SDL3 into a fully statically linked executable. However, when I try to run the executable on Linux Mint, SDL_Init fails with the ever-so-helpful error message "Failed to initialize SDL: No available video device". Even running with SDL_LOGGING="*=trace" doesn't yield any more helpful information.
The program failing is undesirable but not entirely unexpected. The lack of information in the error message and the log output are what really bother me.
Full output of my program:
App name: Moonshard
App version: 0.0.0
App ID: com.eldwood.moonshard
SDL revision: SDL-release-3.4.2-0-g683181b47
[2026-05-06 16:09 err] Failed to initialize SDL: No available video device
I have attached the relevant-seeming parts of the SDL3 build output.
build_log.txt
I managed to successfully build a statically linked SDL3 using musl on an Alpine Linux Docker instance with most (but not all) optional dependencies. I then linked this SDL3 into a fully statically linked executable. However, when I try to run the executable on Linux Mint, SDL_Init fails with the ever-so-helpful error message "Failed to initialize SDL: No available video device". Even running with SDL_LOGGING="*=trace" doesn't yield any more helpful information.
The program failing is undesirable but not entirely unexpected. The lack of information in the error message and the log output are what really bother me.
Full output of my program:
I have attached the relevant-seeming parts of the SDL3 build output.
build_log.txt