View previous topic :: View next topic |
Author |
Message |
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Fri May 01, 2020 1:00 am Post subject: SDL2 : missing /usr/lib/dri/sun4i-drm |
|
|
Hello,
One of my BananaPI is runing 5.x kernel with Gentoo and has DRM/KMS configured and working.
Now, I'm trying to install SDL2 but when I'm launching a test program, it's failing
Code: | # ./TestSDL
Testing video drivers...
MESA-LOADER: failed to open sun4i-drm (search paths /usr/lib/dri)
failed to load driver: sun4i-drm
SDL_VIDEODRIVER available: KMSDRM dummy
SDL_VIDEODRIVER usable : KMSDRM
MESA-LOADER: failed to open sun4i-drm (search paths /usr/lib/dri)
failed to load driver: sun4i-drm
SDL_Init(): SDL not built with audio support |
The problem is I can't find any sun4i VIDEO_CARDS when emerging stuffs
Code: | [ebuild R ] x11-libs/libdrm-2.4.100::gentoo USE="-libkms -valgrind" VIDEO_CARDS="(-amdgpu) -exynos* -freedreno (-intel) (-nouveau) -omap* (-radeon) -tegra -vc4 -vivante (-vmware)" 0 KiB |
Any tips or idea ?
Laurent |
|
Back to top |
|
|
qwerjkl n00b
Joined: 17 Sep 2018 Posts: 6
|
Posted: Sun May 03, 2020 8:00 am Post subject: |
|
|
The library is from mesa video_cards_lima. It is masked in the profile, you need -video_cards_lima in /etc/portage/profile/use.stable.mask and/or(forgot which one) /etc/portage/profile/use.mask .
You may also need mesa-9999 |
|
Back to top |
|
|
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Sun May 03, 2020 5:59 pm Post subject: |
|
|
Yeeeaaaahhh, it's working better thanks
Now it's doing a core dump but I'll do some check before asking for help.
Thanks a lot |
|
Back to top |
|
|
qwerjkl n00b
Joined: 17 Sep 2018 Posts: 6
|
Posted: Sun May 03, 2020 7:56 pm Post subject: |
|
|
You are welcome. Next time, try searching bugs.gentoo.org and read the ebuild, that was how I get it. |
|
Back to top |
|
|
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Sun May 10, 2020 10:51 am Post subject: |
|
|
Well well well
Unfortunately it doen't work : it crashing when trying to initialise a Renderer or getting surface
I did a try with several tutorial but it's always the same
I duno if it's because Lima is not stable enough / incomplete or if because I'm trying w/o X, but I think I'll try to find out another solution. |
|
Back to top |
|
|
qwerjkl n00b
Joined: 17 Sep 2018 Posts: 6
|
Posted: Mon May 11, 2020 9:03 pm Post subject: |
|
|
Mine works.
Are you on drm-misc kernel and mesa-9999?
Post logs as well. |
|
Back to top |
|
|
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Tue May 12, 2020 8:19 pm Post subject: |
|
|
It's the current messa which is knowing lima.
Anyway, I'm giving up : I found a good tutorial about DRM/KMS dev with seems to suite my needs.
The only think I'll miss is video playback ... but I'll deal with it. |
|
Back to top |
|
|
|