how to setup an auto-startup service which start a gtk+ GUI application on i.MX8MQ evk?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to setup an auto-startup service which start a gtk+ GUI application on i.MX8MQ evk?

ソリューションへジャンプ
3,867件の閲覧回数
anhui527
Contributor III

hi,NXP expert:

     we are developping an application based on i.MX8MQEVK board. and we want to make this application auto-started along with linux booting. below is our doings we have done now:

   1.follow the Yocto guide to build a embedded linux image(fsl-image-validation-imx,DISTRO=fsl-imx-wayland) based on i.MX8MQEVK successfully.

    2.build a new service file(myapp.service) in dir of /ect/systemd/system , which will call a shell script to startup our GUI application based gtk+ with wayland backend.

    3.use systemctl command to enable it (systemctl enable myapp.service)

    4.poweroff and re-poweron,to check the status of myapp.service.

the power-on boot process run our myapp.service , but failed with error info : code=exited status=1/Failure. and we try to find the cause, it seem that when our application execute the lib func of gtk_init(), out application exits. but if we start our application by manual (click to start a weston-terminal, and type to start our application by shell cmd line in the started weston-terminal), our application can run successfully and, everything is OK.

so , could you please give us some advice about how to setup an auto-startup service which will start a GUI application based on gtk+ with wayland backend on i.MX8MQ evk?

thanks.

     

ラベル(1)
0 件の賞賛
返信
1 解決策
4 返答(返信)
3,803件の閲覧回数
anhui527
Contributor III

thanks jimmy, the link you provided really do help us! and now i have ran my gtk+ app successfully.

thanks.!

0 件の賞賛
返信
3,852件の閲覧回数
anhui527
Contributor III

anyone could help to reply ? thanks

0 件の賞賛
返信
3,860件の閲覧回数
anhui527
Contributor III

L4.14.98_2.0.0_ga_images_MX8MQEVK and weston 5.0

0 件の賞賛
返信