I have been using qt for embedded linux 4.5 on Embedded(arm) platform. While running simple qt application I got segmentation fault. I traced out and found that while creating object for QApplication its shows segmentation fault.(I have installed shared Lib at right location)
Below is my code..
Qt Code:
  1. int main(int argc, char * argv[])
  2. {
  3. printf("Inside main\n");
  4. [B]QApplication app(argc, argv);[/B] // Got error here
  5. printf("object created \n");
  6. Widget w;
  7. w.show();
  8. app.exec();
  9.  
  10. }
  11.  
  12. ./my
  13. Inside main
  14. Segmentation fault
To copy to clipboard, switch view to plain text mode 

But I am able to create Object for QCoreApplication

Qt Code:
  1. int main(int argc, char * argv[])
  2. {
  3. printf("Inside main\n");
  4. [B]QCoreApplication app(argc, argv);[/B]
  5. printf("object created \n");
  6. a.arguments();
  7. a.flush();
  8.  
  9. }
  10.  
  11. ./my
  12. Inside main
  13. object created
To copy to clipboard, switch view to plain text mode 

I don't understand why its not creating object for QApplication??
What is going wrong??
I am not able to find the reason, can anybody help me out??