How to enable EGLFS?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to enable EGLFS?

跳至解决方案
12,062 次查看
aveselinov
Contributor III

I have built an image using Yocto Project. Also built Qt SDK to be able to develop qt applications for my board.

The OS is console-only, so I want to use EGLFS  plugin backend. What are the steps?

 

I'm testing a simple QtWidget application. But I get this output (with debug enabled) when I try to run it:

 

# ./helloworld     
qt.qpa.egldeviceintegration: EGL device integration plugin keys: ("eglfs_viv")
qt.qpa.egldeviceintegration: EGL device integration plugin keys (sorted): ("eglfs_viv")
qt.qpa.egldeviceintegration: Trying to load device EGL integration "eglfs_viv"
qt.qpa.egldeviceintegration: Using EGL device integration "eglfs_viv"
QEglFSVivIntegration will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync.
 If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
Could not open egl display
Aborted

 

Having exported:

QT_QPA_PLATFORM=eglfs

DISPLAY=:0.0

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
6,684 次查看
aveselinov
Contributor III

I fixed it. Could not open egl display | Qt Forum 

It was missing the gpu driver.

在原帖中查看解决方案

0 项奖励
回复
1 回复
6,685 次查看
aveselinov
Contributor III

I fixed it. Could not open egl display | Qt Forum 

It was missing the gpu driver.

0 项奖励
回复