"Egl Error:Could Not Create the Egl Surface: Error 0X300B" on I.Mx6 When Running Qt5 Application with -Platform Eglfs

Segmentation fault on i.MX6 when running Qt5 application with -platform eglfs

I managed to solve the "segmentation fault" problem with:

apt-get install gpu-viv-bin-mx6q-fb

(that automatically uninstalls gpu-viv-bin-mx6q-x11).

However, now I have another issue: "EGL Error : could not create the EGL surface: error 0x300b" on i.MX6 when running Qt5 application with -platform eglfs

Qt5 on iMX6: performance advantage on running on platform eglfs vs xcb

I didn't see huge difference between eglfs or xcb platform of Qt, even xcb is smoother some times. for example mouse movements are very smooth in xcb, not in eglfs.
But there will be a huge improvement if you use QGlPainter instead of QPainter and accordingly use QGlWidget instead of QWidget.

Also QtQuick2 works fine with eglfs, its very smooth and high quality in our IMX6-Rex board.

How to enable EGLFS i.Mx6 QPA for Qt on IMX6Q?

Enable BR2_PACKAGE_IMX_GPU_VIV, which will provide the OpenGL implementation for i.MX6.

Use correct colors on QT Quick application running on EGLFS

Fixed by modifying the file: /etc/powervr.ini:

[default]
#WindowSystem=libpvrDRMWSEGL_FRONT.so
WindowSystem=libpvrDRMWSEGL.so
DisableHWTQTextureUpload=0
ParamBufferSize=1677216
DefaultPixelFormat=RGB565


Related Topics



Leave a reply



Submit