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,860 次查看
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,796 次查看
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,845 次查看
anhui527
Contributor III

anyone could help to reply ? thanks

0 项奖励
回复
3,853 次查看
anhui527
Contributor III

L4.14.98_2.0.0_ga_images_MX8MQEVK and weston 5.0

0 项奖励
回复