Hello,
I use Yocto to build my system on stm32mp1, I don’t sure if SDL is rigth configureated so I donwload zip from web and try build.
I configure with kmsdrm ability:
./configure --enable-video-kmsdrm --disable-video-x11
I have kms/drm driver for sure but I don’t know why SDL2 didn’t see it:
checking for sndio audio support... no
checking samplerate.h usability... no
checking samplerate.h presence... no
checking for samplerate.h... no
checking for RPI... no
checking for Raspberry Pi... no
checking for LIBDRM... no <-----------------------this one
checking for LIBGBM... yes
checking for OpenGL (GLX) support... no
checking for EGL support... no
checking for OpenGL ES v1 headers... no
checking for OpenGL ES v2 headers... yes
checking for Wayland support... no
root@stm32mp1-disco:~# ls /usr/lib/libdrm*
/usr/lib/libdrm.so.2 /usr/lib/libdrm_etnaviv.so.1 /usr/lib/libdrm_freedreno.so.1
/usr/lib/libdrm_intel.so.1 /usr/lib/libdrm.so.2.4.0 /usr/lib/libdrm_etnaviv.so.1.0.0
/usr/lib/libdrm_freedreno.so.1.0.0 /usr/lib/libdrm_intel.so.1.0.0
root@stm32mp1-disco:~# ls /dev/dri/
by-path card0
Additionally I ran kmscube application that run opengl with kms and drm and it’s ok.
I dont know anything about your platform, but to me it looks like you might be missing the development library for libdrm.
Often times there is two packages in your systems package manager. Here it would be something like libdrm that holds everything needed to run code, and libdrm-dev (or libdrm-devel or whatever its called on your system) that contains the stuff needed for software development.
On ubuntu you’d have to do something like sudo apt intstall libdrm-dev, or on void linux its sudo xbps-install libdrm-devel
For now I try build it on ubuntu 16 amd ryzen 5.
I have libdrm-dev installed:
libdrm-dev is already the newest version (2.4.91-2~16.04.1).
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
After ./configure with --enable-video-kmsdrm option, In SDL_config.h I always have:
Hi adi1525
i am facing same problem like you. i can run program with Wayland.
i have also tested with KMSCUBE its working fine. Now i wanted to run SDL2 with KMSDRm and GPU mode.
but in my case nothing display. also SDL_VIDEODRIVER output is offscreen.
if you find any solution can you please help me too.
Thanks