PDA

View Full Version : launch app



damien
3rd February 2009, 21:48
hy,
i want to launch an an application from an other one but i have try execlp
the problem is QlinuxFbScreen can't map the fram buffer, i have try to close it but that don't working.
I have try to use process->start but they don't working and nothing happen when i want to start the new process.
I am in QTembedded with uClinux
Do you know the good way to start a nex app ?

faldzip
3rd February 2009, 23:36
I would suggest QProcess::startDetached().

damien
5th February 2009, 19:42
when i work on my computer with a virtual fram buffer i can launch an application like that

execlp("./elasticnodes","./elasticnodes","-qws",NULL);

or

QProcess *proc;
proc = new QProcess( this );
proc->start("./elasticnodes");

But when i am on my device i can't use them
for the execlp :
code; execlp("./menuV1emb", "./menuV1emb","-qws", NULL);
return QLinuxFbScreen::connect: Operation not permitted
Error: failed to map framebuffer device to memory.

code execlp("./menuV1emb", "./menuV1emb", NULL);
return Did not receive a connection event from the qws server
Abort


for the Qprocess
code : QProcess *proc; // pointer definition
proc = new QProcess( this ); // memory allocation from heap, created with parent
proc->startDetached("./elasticnodes");

return
root:/> ./menuV1emb -qws &
227
openfb
root:/> ps
PID Uid VSZ Stat Command

227 root 11956 S ./menuV1emb -qws
230 root 876 R ps

i try to launch the app
root:/> ps
PID Uid VSZ Stat Command

227 root 11972 S ./menuV1emb -qws
231 root 11972 S ./menuV1emb -qws
232 root 11972 S ./menuV1emb -qws
233 root 876 R ps
root:/>
I have new process but they don't do anything

do you have an idea