Monday, June 8, 2020

Error "Could not open DRM device" running Qt app with platform eglfs in Raspberry Pi

While testing recently cross-compiled Qt libraries (5.15.0) for Raspberry Pi 3 running ArchLinuxARM using a sample application (qopenglwidget) I received error:

Could not open DRM device /dev/dri/card0 (Permission denied)


It turned out the problem is easily solvable by adding the user runnning the application to the group "video":

$ sudo usermod -aG video alarm

(don't forget to logoff and login again for changes to take effect)

No comments:

Post a Comment