2022-02-17 07:23 PM
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
Solved! Go to Solution.
2022-02-21 12:07 AM
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.
2022-02-18 05:36 AM
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.
2022-02-18 10:04 PM
i remake the image, it's ok now.
i think maybe some error occurred in the build process that made some files invalid
2022-02-18 11:02 PM
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
2022-02-21 12:07 AM
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.
2022-02-21 12:47 AM
it's working now