Results 1 to 20 of 50

Thread: getting the error message when trying to run the application in QT

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2008
    Location
    Kharkov, Ukraine
    Posts
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: getting the error message when trying to run the application in QT

    Quote Originally Posted by pallavi Boyapat View Post
    and if i am trying to run the application it is giving me the same error message.

    "The application has failed to start because the application configuration is incorrect".
    Let's see step by step, how we must make project. Make some source in some test dir ($DIR).
    (in your favourite text editor)
    main.cpp
    Qt Code:
    1. #include<QApplication>
    2. #include<QMainWindow>
    3.  
    4. int main (int argc,char ** argv) {
    5. QApplication qapp(argc,argv);
    6. QObject::connect(&qapp,SIGNAL(lastWindowClosed()),&qapp,SLOT(quit()));
    7.  
    8. wnd.show();
    9. return qapp.exec();
    10. }
    To copy to clipboard, switch view to plain text mode 

    Then, open VSC++ console: Start->Programms->Microsoft Visual Studio 2005->Visual Studio Tools->Visual Studio 2005 Command Prompt
    CD to directory, where main.cpp are stored. run
    > qmake -project
    > qmake
    > nmake
    If compilation proccess finished without errors, in $DIR\release directory you may see a programm with a name of last component of your dir (ie: for d:\projects\test it would be a test.exe)
    Then, copy to release dir some dll's:
    1) QtCore4.dll
    2) QtGui4.dll
    3)Microsoft.VC80.CRT.manifest
    4)msvcp80.dll
    5)msvcr80.dll
    6)msvcm80.dll
    Try to launch exe.
    add other qt libs if launsh finised with error in non-reached dll's (name of dll you can see in error message).

  2. #2

    Default Re: getting the error message when trying to run the application in QT

    hi defender,

    i am getting teh following error when running the command qmake


    D:\VCSamples\sairam>qmake
    Could not find mkspecs for your QMAKESPEC(win32-msvc2005) afte
    C:\iwmake\build_vs2005_evaluation_________________ PADD
    __\mkspecs
    Error processing project file: D:/VCSamples/sairam/sairam.pro

    I already set the value for QMAKESPEC as win32-msvc2005 through environmental ivariables in system properties

    please help me

    Thanks
    pallavi
    Last edited by pallavi Boyapat; 30th October 2008 at 09:03.

  3. #3
    Join Date
    Oct 2008
    Location
    Kharkov, Ukraine
    Posts
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: getting the error message when trying to run the application in QT

    Please, show your install path, output of `set %PATH%` (in VS C++ console)
    I haven't neither QTDIR, nor QMAKESPEC , but my installation is working (I'm have only path to qt bin dir in my PATH env). But I'm build Qt from source, and you?
    Test for mkspecs:
    `dir c:\qt\qt_4_4\mkspecs\win32-msvc2005\`
    replace 'c:\qt\qt_4_4\' with you QT instalation path.
    Try to download opensorce edition if it is not critical for you.

  4. #4

    Default Re: getting the error message when trying to run the application in QT

    hi everyone,

    Thanks a lot for each and everyone for helping me to resolve this issue.

    It is working fine when i am changing from debug mode to release mode, in visual studio 2005

    Thanks & Regards
    pallavi Boyapati

  5. #5

    Default Re: how to write sample Qt application on windows mobile

    hi,

    please tell me how to write the sample Qt application on windows mobile.

    Thanks & Regards
    pallavi

Similar Threads

  1. Start Qt application as Windows Service
    By ^NyAw^ in forum Qt Programming
    Replies: 12
    Last Post: 10th May 2008, 17:23
  2. Loading library from application
    By mourad in forum Installation and Deployment
    Replies: 0
    Last Post: 2nd April 2008, 15:10
  3. dll + application
    By fpujol in forum Qt Programming
    Replies: 11
    Last Post: 15th April 2007, 18:37
  4. Replies: 3
    Last Post: 8th December 2006, 18:51

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.