How to start QT application on IMX8QXP

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to start QT application on IMX8QXP

672 Views
wang12zhe
Contributor III

HW: IMX8QXP EVK

Yocto: L5.10.52

I have a QT Application and can run it by command line:

./app_demo

 

But now I need to start this app automatically, I tried to use systemd and add a service:

Description=Start a qt application
After=weston.service

[Service]
Restart=on-failure
Type=forking
Environment="QT_QPA_PLATFORM=wayland-egl"
ExecStart=/home/root/app_demo

[Install]
WantedBy=multi-user.target

root@imx8qxpmek:~# systemctl status wayland-app-launch.service
● wayland-app-launch.service - Start a wayland application
Loaded: loaded (/lib/systemd/system/wayland-app-launch.service; disabled; vendor preset: disabled)
Active: failed (Result: signal) since Wed 2021-03-24 10:26:29 UTC; 3s ago
Process: 675 ExecStart=/home/root/app_demo (code=killed, signal=ABRT)

Mar 24 10:26:29 imx8qxpmek systemd[1]: wayland-app-launch.service: Scheduled restart job, restart counter is at 5.
Mar 24 10:26:29 imx8qxpmek systemd[1]: Stopped Start a wayland application.
Mar 24 10:26:29 imx8qxpmek systemd[1]: wayland-app-launch.service: Start request repeated too quickly.
Mar 24 10:26:29 imx8qxpmek systemd[1]: wayland-app-launch.service: Failed with result 'signal'.
Mar 24 10:26:29 imx8qxpmek systemd[1]: Failed to start Start a wayland application.

 

I don't know why it does not work, any help will be helpful, thank you very much 

 

 

0 Kudos
Reply
1 Reply

647 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 Kudos
Reply