关于qt程序运行在eglfs 平台报错的问题

风清扬的博客 2017-08-30 11:08:22
最近在树莓派 arm 体系的centos 系统中 运行qt 程序时遇到一个问题, 板子上 库文件 及插件都齐全,程序运行在farmebuffer 里面没问题,可以顺利跑起来,但是要运行在 eglfs 平台用GPU 来渲染 的时候会报错,具体如下:

./button -platform eglfs

报错: could not find DRM device
已放弃


我想问各位博友,有遇到这样情况的吗,此问题纠结小弟多天,没解决的头绪?


When I run the Qt5 example application with -platform eglfs, it seems that mesa is trying to find i915_dri, which doesn't make sense, since the on-board Intel video controller is NOT what I want. I read this page http://doc.qt.io/qt-5/embedded-linux.html, and after skimming the mesa code for a bit, hypothesized that mesa is asking /dev/fb0 for the name of the device driver, based on this output (only the 1st few lines are important, because the rest is just trying to (but still failing to) fall back on the SW drivers:
...全文
1002 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

19,504

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 嵌入开发(WinCE)
社区管理员
  • 嵌入开发(WinCE)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧