I am using linuxbrew to install dynamic libraries without sudo. Those libraries are needed to compile run the project.
For some reason I need to brew uninstall sdl2 --ignore-dependencies in order to init SDL2 successfuly using system-wide version (I'd like to not depend on it though).
There are minor version differences 2.0.5 vs 2.0.2+dfsg1-6 but I think it's unlikely the root cause (the older one works).
How can I enable SDL2 from linuxbrew?
Compile SDL2 with X11 support:
brew edit sdl2or apply this patch directly: