Unable to launch application from SSH to Yocto Kirkstone iMX8

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Unable to launch application from SSH to Yocto Kirkstone iMX8

553 次查看
iblur01
Contributor I

I am encountering while attempting to deploy a Qt application on an i.MX8 board running Yocto Kirkstone with Wayland and Weston.

Here are some key details regarding the setup and the problem:

  • Target Platform: i.MX8 board
  • Operating System: Yocto Kirkstone
  • Goal: To display a Qt application on the i.MX8 board.
  • Yocto Build: The Yocto build has been compiled with the 'meta-qt5' layer, and the following Qt recipes have been included:
    • qtbase
    • qtconnectivity
    • qtdeclarative
    • qtsmarthome
    • qt5ledscreen
    • qtwayland
  • Wayland and Weston: Wayland and Weston have been successfully implemented.

The Problem:
I am encountering an error when attempting to run a binary compiled with Qt Creator. The error messages are as follows:

For the Custom Application:

QML debugging is enabled. Only use this in a safe environment.
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: minimal, offscreen, vnc, wayland-egl, wayland.

Aborted

For the Basic Application (weston-calibrator):

failed to connect to Wayland display: No such file or directory
failed to create display: No such file or directory

I have already attempted solutions such as exporting DISPLAY:=0, but they did not resolve the issue. Interestingly, during the startup of the board, the Weston desktop environment is displayed correctly.

I would greatly appreciate your guidance and expertise in resolving this issue. If you need any additional information or logs, please let me know. Your support in resolving this matter would be invaluable.

Thank you in advance for your assistance.

Best regards,

DT

0 项奖励
回复
1 回复

535 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

The recipes-qt5 is under sources/meta-qt5. If you have the recipes of your old version QT5, you may try to replace the recipes-qt5 there. But I think this is very hard to modify and you may need to spend a lot of time to fix the errors of compiling. Do you mean your old QT application cannot run on the new version of QT? I think you may modify your code to make your application can run on the new version of QT is more easier.

Please refer to the Section "Graphics" of the linux user guide:

https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf

 

Regards

 

0 项奖励
回复