Could not initialize egl display
-
I got the following error when set
export QT_QPA_PLATFORM=eglfs
export QT_QPA_EGLFS_INTEGRATION=nonethe configure output is:
QPA backends:
DirectFB ............. no
EGLFS ................ yes
EGLFS i.MX6 ........ no
EGLFS i.MX6 Wayland. no
EGLFS EGLDevice .... no
EGLFS GBM .......... yes
EGLFS Mali ......... no
EGLFS Raspberry Pi . no
EGLFS X11 .......... no
LinuxFB .............. yesThe platform is Beagle Bone Black.
with sgx ddk installed.^C(devenv) root@beaglebone:~# lsmod | grep example
bc_example 8635 0
pvrsrvkm 433627 1 bc_exampleloaded library "/usr/local/qt5/plugins/platforms/libqeglfs.so"
QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5/plugins/platforms/egldeviceintegrations" ...
QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5/plugins/egldeviceintegrations" ...
QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5/plugins/egldeviceintegrations/libqeglfs-kms-integration.so"
Found metadata in lib /usr/local/qt5/plugins/egldeviceintegrations/libqeglfs-kms-integration.so, metadata=
{
"IID": "org.qt-project.qt.qpa.egl.QEGLDeviceIntegrationFactoryInterface.5.5",
"MetaData": {
"Keys": [
"eglfs_kms"
]
},
"className": "QEglFSKmsGbmIntegrationPlugin",
"debug": false,
"version": 329472
}Got keys from plugin meta data ("eglfs_kms")
QFactoryLoader::QFactoryLoader() checking directory path "/root/egldeviceintegrations" ...
libEGL warning: DRI3: xcb_connect failed
libEGL warning: DRI2: xcb_connect failed
libEGL warning: DRI2: xcb_connect failed
Could not initialize egl display
AbortedPlease Help to advise how to proceed.
Thanks,
-
Hi,
If you are such in a hurry, you should maybe consider hiring someone to help you (Edeltech, KDAB,.The Qt Company, ICS etc.)
This forum is community driven.
-
Not exactly the same problem but on my case it was missing the gpu driver (very obvious) and egl libraries. Make sure u have them. Using ldd can help too.
https://forum.qt.io/topic/73383/could-not-open-egl-display/6. -
@agocs I also have got the same problem. Try "export QT_QPA_EGLFS_INTEGRATION=none" before running the application and there new problems:“The subsystem type is not supported yet Segmentation fault”.My hardware platform is IMX6UL(no GPU)with X11.