starfive-tech / VisionFive2

438 stars 78 forks source link

SDL2 video init error #61

Open danboid opened 1 year ago

danboid commented 1 year ago

I am running starfive-jh7110-202306-nvme-minimal-desktop.img on a VF2 1.3b with the latest official firmware / uboot and the extra SF packages installed such as SDL2, which I cannot get to work under the default GNOME wayland desktop.

I have installed mame from the Debian repos and I've also built the Uzebox emulator cuzebox from source but both failed to run with the following error:

OpenGL not supported on this driver: Couldn't find matching EGL config (call to eglChooseConfig failed, reporting an error of EGL_SUCCESS)
video_init: Initialization failed!

The workaround is to export SDL_VIDEODRIVER=x11 so if this bug can't be fixed then maybe SDL_VIDEODRIVER=x11 should be added to the default EVs on the VF2 Debian image, or at least add this to the documentation somewhere because SDL2 is a popular library.