destroyedlolo Posted October 18, 2020 Posted October 18, 2020 Hello, I'm porting one of my application to Armbian. But where can I found libkms ? I did a apt-cache search but it didn't found anything ? Thanks Laurent
Werner Posted October 18, 2020 Posted October 18, 2020 If it is not provided by upstream (Debian or Ubuntu to say) you may need to build it on your own.
destroyedlolo Posted October 18, 2020 Author Posted October 18, 2020 Well, it is supposed to be part of libdrm but has been disabled as per a ticket I found. The only examples I found to directly use Linux' frame buffer using DRM use it to retrieve display geometry and bitmap
xwiggen Posted October 18, 2020 Posted October 18, 2020 you can use https://github.com/Caesar-github/libdrm-rockchip/tree/rockchip-2.4.101-2-ubuntu18.04 as an example; copy the libkms entry from debian/control over to the libdrm sources, set libkms=true in debian/rules, add dh_makeshlibs -plibkms1 -V'libkms1 (>= 2.4.89)' -- -c4 to rules after override_dh_makeshlibs.
destroyedlolo Posted October 18, 2020 Author Posted October 18, 2020 ok, thanks : I'll try. As I would avoid to force users to recompile system's packages, I patched my framework as well to fall back to framebuffer as well.
xwiggen Posted October 19, 2020 Posted October 19, 2020 Retropie has a fork (https://github.com/RetroPie/mesa-drm) which builds libkms for this purpose.
Recommended Posts