hi,

i compiled and ported qt-embedded-free-3.3.5 to MIPS(DBAU1200 ) platform.i tried to execute the launcher code in the package.but could not execute it successfully. the following is my code:

Qt Code:
  1. struct {
  2. const char* label;
  3. const char* file;
  4. }
  5. command[] = {
  6.  
  7. #ifndef QT_NO_TEXEDITOR
  8. {"Addressbook","(cd /home/addressbook; exec ./addressbook)"},
  9. #endif
  10. {0,0}
  11. };
  12.  
  13. keyclass::keyclass( QWidget *parent, const char *name):
  14. QWidget( parent, name)
  15. {
  16. setMaximumSize(640,480 );
  17. setMouseTracking(TRUE);
  18. QPushButton *textedit = new QPushButton( "Quit", this, "quit" );
  19. textedit->setGeometry(10,80,100,20 );
  20. textedit->setFont( QFont( "Times", 12, QFont::Bold ) );
  21. connect(textedit, SIGNAL(clicked()),qApp, SLOT(quit()) );
  22. QVBox *vb1 = new QVBox(this);
  23. vb1->setGeometry(10,100,100,100);
  24. QPushButton *pb=0;
  25. int ih;
  26. for(ih=0; command[ih].label; ih++)
  27. {
  28. pb = new QPushButton(command[ih].label,vb1,command[ih].file);
  29. connect(pb, SIGNAL(clicked()), this, SLOT(execute()));
  30. }
  31. }
  32.  
  33.  
  34. void keyclass::run(const char* cmd)
  35. {
  36. QString c = cmd;
  37. c += " &";
  38. system(c.latin1());
  39. }
  40. void keyclass::execute()
  41. {
  42. run(sender()->name());
  43. }
To copy to clipboard, switch view to plain text mode 

When i run this code on the host using QVFB. the application runs fine. i mean when i click the addressbook pushbutton,the addressbook application opens. but when i run it on board the application does not pop up. i entered ps command and got the following output:

sh-3.00# ps -ae
PID Uid VmSize Stat Command
1 root 408 S init
2 root SWN [ksoftirqd/0]
3 root SW< [events/0]
4 root SW< [khelper]
9 root SW< [kthread]
19 root SW< [kblockd/0]
26 root SW [khubd]
51 root SW [pdflush]
52 root SW [pdflush]
54 root SW< [aio/0]
53 root SW [kswapd0]
277 root SW [mtdblockd]
299 root 1120 S /bin/sh
336 root 4868 S ./launcher
345 root 3088 R /home/addressbook/addressbook
346 root 388 R ps -ae
sh-3.00#
the process is running but there is nothing in the screen.

can anyone provide me any suggestion or solutions for this ?

thanks in advance,

saravanan.