PyQt Gui Application
- May 15, 2024
- 2 replies
- 5497 views
Hello ST team,
our company is evaluating the STM32MP135F-DK to develop a new interface for our displays. This board was given to us by ST at the embedded world exhibition in Nuremberg, Germany. I am not familiar with MPUs and Yocto. I am having a lot of problems getting a simple PyQt5 GUI application (see mySimpleApp.txt) running on the board. I was able to successfully build the SDK and start a simple GTK application using the starter package.
These are some of the steps I took:
- First, I used the starter package and installed there everything that i needed to run this application:
- apt install python3-pyqt5 qtwayland
- copied my application to /home/weston
- run: su -l weston -c "env QT_QPA_PLATFORM=wayland-egl python3 /home/weston/mySimpleApp.py"
These is the Error i get:
[ 1] Failed to open device: No such file or directory, Try again...
[ 2] Failed to open device: No such file or directory, Try again...
[ 3] Failed to open device: No such file or directory, Try again...
[ 4] Failed to open device: No such file or directory, Try again...
[ 5] _OpenDevice(1111): FATAL: Failed to open device, errno=No such file or directory.
[ 6] Failed to open device: No such file or directory, Try again...
[ 7] Failed to open device: No such file or directory, Try again...
[ 8] Failed to open device: No such file or directory, Try again...
[ 9] Failed to open device: No such file or directory, Try again...
[ 10] _OpenDevice(1111): FATAL: Failed to open device, errno=No such file or directory. - Then I run:
- root@stm32mp1:/home/weston# env QT_QPA_PLATFORM=wayland-egl
- root@stm32mp1:/home/weston# python3 mySimpleApp.py
- Error:
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland.
Aborted (core dumped)
After not having success with the starter package I started working with the distribution package and built a new distroimage to set up Qt (st-example-image-qt or st-example-image-qtwayland).I did both way with and without accepting the EULA but everything I did gives me the same errors as above. I also removed the repo and reinstalled everything, but I still did not have success.
I would greatly appreciate your assistance in resolving this issue. I would also be open to arranging a meeting with you to discuss possible solutions. We are currently evaluating the suitability of ST (MCUs) for our upcoming projects and it would be beneficial if we could exclusively use ST for our products.
Thank you for your help and best regards
A. Lazaj
