Results 1 to 10 of 10

Thread: Qt 4.7 with Visual C++ 2010: Unable to start program

  1. #1
    Join Date
    Oct 2010
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Qt 4.7 with Visual C++ 2010: Unable to start program

    Hello, I am learning Qt 4.7 with its LGPL integration with Visual Studio 2010. The program compiles well, but the output .exe cannot run, instead, a message box jumps up says:

    "Unable to start program
    path/xxxx.exe

    This application has failed to start because the application configuration is incorrect. Review the manifest file for possible errors. Reinstalling the application may fix this problem. For more details, please see the application event log."

    I have good experience of developing Qt apps on Visual Studio 2008, and never encounter such error. Can anyone give me a hint on what has happened?

    Thank you in advance. My environment - Qt 4.7, Visual C++ 2010, Windows 7 Ultimate.

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.7 with Visual C++ 2010: Unable to start program

    Use DependencyWalker to find missing DLLs

  3. The following user says thank you to Lesiok for this useful post:

    myan (13th October 2010)

  4. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt 4.7 with Visual C++ 2010: Unable to start program

    This error is typically associated with the C RTL. Reinstalling the RTL fixed most problems: http://www.microsoft.com/downloads/e...3-37bf0912db84

  5. The following user says thank you to squidge for this useful post:

    myan (13th October 2010)

  6. #4
    Join Date
    Oct 2010
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Qt 4.7 with Visual C++ 2010: Unable to start program

    I gave up, as I found it worked well with Visual C++ 2008. Since Qt has not officially release its libraries for Visual C++ 2010, I think I should stick to the older, tested combination.

    Thank you anyway.

  7. #5
    Join Date
    Oct 2010
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Qt 4.7 with Visual C++ 2010: Unable to start program

    Quote Originally Posted by Lesiok View Post
    Use DependencyWalker to find missing DLLs
    I tried, it reports that the "MSVCP90D.DLL" , "MSVCR90D.DLL" and "IESHIMS.DLL" are missing. I realize that it is because I am using the Qt 4.7 libraries for Visual C++ 2008, while my environment is of VS 2010. Maybe I should wait until Qt release new update for VC2010.

    Thank you though, your advice helps me a lot!

  8. #6
    Join Date
    Nov 2009
    Location
    Sacramento, CA
    Posts
    24
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt 4.7 with Visual C++ 2010: Unable to start program

    I use qt 4.7 fine on vs 2010.

  9. #7
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.7 with Visual C++ 2010: Unable to start program

    You must rebuild Qt with VS 2010.

  10. #8
    Join Date
    Nov 2009
    Location
    Sacramento, CA
    Posts
    24
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt 4.7 with Visual C++ 2010: Unable to start program

    Quote Originally Posted by Lesiok View Post
    You must rebuild Qt with VS 2010.
    Not true, I used the pre built libraries right from the 2008 install without rebuilding the library. Myan are you building in release or debug?

  11. #9
    Join Date
    Oct 2010
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Qt 4.7 with Visual C++ 2010: Unable to start program

    Quote Originally Posted by steno View Post
    Not true, I used the pre built libraries right from the 2008 install without rebuilding the library. Myan are you building in release or debug?
    I built it in debug, that's why DependencyWalker reports the MSVCP90D.DLL/MSVCR90D.DLL are missing. I tried release, and it works.

    Any ideas? Thank you!

  12. #10
    Join Date
    Apr 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt 4.7 with Visual C++ 2010: Unable to start program

    Try to compile in Release mode.

Similar Threads

  1. Visual Studio Plugin (1.1.6) crashes Visual Studio (2010)
    By mboeni in forum Installation and Deployment
    Replies: 0
    Last Post: 11th October 2010, 17:46
  2. How to Qt4.7 Source with Visual Studio 2010
    By Aenima1981 in forum Installation and Deployment
    Replies: 0
    Last Post: 1st October 2010, 15:00
  3. Release date for Visual Studio 2010 AddIn
    By Gargolissimus in forum Qt Tools
    Replies: 1
    Last Post: 3rd June 2010, 04:29
  4. Plan for Visual Studio 2010 (MSVC 2010)?
    By Vinzz in forum Qt Programming
    Replies: 1
    Last Post: 18th April 2010, 18:42
  5. Can't start program without MS Visual Studio installed
    By Jh_ in forum Installation and Deployment
    Replies: 1
    Last Post: 8th November 2006, 21:56

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.