Could not initialize egl display



  • I got the following error when set

    export QT_QPA_PLATFORM=eglfs
    export QT_QPA_EGLFS_INTEGRATION=none

    the 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 .............. yes

    The platform is Beagle Bone Black.
    with sgx ddk installed.

    ^C(devenv) root@beaglebone:~# lsmod | grep example
    bc_example 8635 0
    pvrsrvkm 433627 1 bc_example

    loaded 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
    Aborted

    Please Help to advise how to proceed.

    Thanks,



  • @Qt-Champions-2016 any idea ?



  • really need help here.!!


  • Lifetime Qt Champion

    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.



  • @SGaist thank you for your advice.



  • 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.



  • @aV_V thank you.
    i will double check.
    BTW:
    QT_QPA_PLATFORM=eglfs
    QT_QPA_EGLFS_FB=/dev/fb0
    DISPLAY=:0.0
    is DISPLAY necessary to export?


  • Lifetime Qt Champion

    No it's not, DISPLAY is for the X.org server.



  • Try "export QT_QPA_EGLFS_INTEGRATION=none" before running the application. This assumes NullWS for the PowerVR gfx stack. DRM/KMS has not been verified or tested on the Beaglebone in any form.



  • This post is deleted!


  • @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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.