How to enable EGLFS?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to enable EGLFS?

Jump to solution
10,437 Views
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

Labels (1)
0 Kudos
1 Solution
5,059 Views
aveselinov
Contributor III

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

It was missing the gpu driver.

View solution in original post

0 Kudos
1 Reply
5,060 Views
aveselinov
Contributor III

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

It was missing the gpu driver.

0 Kudos