Auto start Qt Application on Dizzy OS ?

Yocto related software discussions are here

Auto start Qt Application on Dizzy OS ?

Postby ttwand » Mon Jan 16, 2017 6:38 am

Hello everybody,

I have a problem, I could not fix it.

My yocto image is "fsl-image-multimedia-full", It has qt packages and some necessary packages.
I added my application's executable file in /home/root directory.

When I boot my Dizzy image, It boots and I have a terminal on the screen.

I can run my application with "./myApp"
There is no problem.
But I want to start my application automatically after boot.

Could you help me please?
I have to solve this problem.

Posts: 12
Joined: Fri Jun 10, 2016 6:37 am

Re: Auto start Qt Application on Dizzy OS ?

Postby ClayMontgomery » Thu Jan 19, 2017 10:24 pm

Qt apps can auto start just as any other app, by creating a new runcom script for it.
These commands will show you the existing scripts as examples of how to make new ones:

cat /etc/inittab
ls -la /etc/rc*
cat /etc/init.d/rc.local

The preferred way to install these scripts is with update-rc.d, but it is missing in Dizzy and you have to add it back into the Yocto build to use it.
Here is an example of using it to install a new script to auto-start the lightwing app:

update-rc.d lightwing start 95 5 . stop 95 0 1 2 3 4 6 .

Regards, Clay
Posts: 47
Joined: Tue Nov 19, 2013 9:14 pm

Return to Software - Yocto

Who is online

Users browsing this forum: No registered users and 3 guests