raspberrypi / userland

Source code for ARM side libraries for interfacing to Raspberry Pi GPU.
BSD 3-Clause "New" or "Revised" License
2.05k stars 1.09k forks source link

[Raspberry Pi 4] EGL Error : Could not create the egl surface #557

Open ghost opened 5 years ago

ghost commented 5 years ago

Every time I'm trying to compile or run any program I get EGL Error : Could not create the egl surface on the pi 4 in FKMS mode. It only works if I use an x server. The pi3 doesn't have this issue. Since there aren't any videocore 6 libraries Are there any commands or compiler instructions to allow the graphics to function under fkms?

popcornmix commented 5 years ago

When using fkms you need to create EGL surfaces using standard linux apis - not with dispmanx which was needed with the legacy firmware driver. Some useful info here: https://www.raspberrypi.org/forums/viewtopic.php?f=68&t=243611