Skip to main content
Visitor II
February 18, 2022
Solved

can't run qt exampls on DK2

  • February 18, 2022
  • 5 replies
  • 2178 views

I make st-example-image-qt image with openstlinux-5.10

on the board, i can't run any qt exampls , when i run a qt app,i get this

Could not open egl display
Aborted (core dumped)

do i miss something

    This topic has been closed for replies.
    Best answer by Erwan SZYMANSKI

    Hello @Jzhua​ ,

    If you have a keyboard connected via USB to your STM32MP1, and you want to use it on your Qt application, I think you have to configure an environment variable of Qt to link the input of your keyboard with what your Qt app understands. This is done via evdevtouch input backend.

    If I remember well, before launching your application, you can export the QT_QPA_EGLFS_NO_LIBINPUT=1 environment variable to make the link.

    Board $> export QT_QPA_EGLFS_NO_LIBINPUT=1

    Please let me know if it helps you.

    Regards.

    Erwan.

    5 replies

    Technical Moderator
    February 18, 2022

    Hello @Jzhua​ ,

    I will just need a little bit more information to help you. Did you follow the Developer Package or the Distribution Package to get your image ? Are you sure your image is an EGLFS one and not a Weston/Wayland (you can see this information in the boot logs, when the board starts) ?

    Which example created this error exactly ?

    Regards.

    Erwan.

    JzhuaAuthor
    Visitor II
    February 19, 2022

    i remake the image, it's ok now.

    i think maybe some error occurred in the build process that made some files invalid

    JzhuaAuthor
    Visitor II
    February 19, 2022

    another question.

    The application starts reporting

    qt.qpa.input: xkbcommon not available, not performing key mapping

    the keyboard not working,i add ​libxkbcommon to image, still not working

    Technical Moderator
    February 21, 2022

    Hello @Jzhua​ ,

    If you have a keyboard connected via USB to your STM32MP1, and you want to use it on your Qt application, I think you have to configure an environment variable of Qt to link the input of your keyboard with what your Qt app understands. This is done via evdevtouch input backend.

    If I remember well, before launching your application, you can export the QT_QPA_EGLFS_NO_LIBINPUT=1 environment variable to make the link.

    Board $> export QT_QPA_EGLFS_NO_LIBINPUT=1

    Please let me know if it helps you.

    Regards.

    Erwan.

    JzhuaAuthor
    Visitor II
    February 21, 2022

    it's working now