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.
Re: Qt 4.7 with Visual C++ 2010: Unable to start program
Use DependencyWalker to find missing DLLs
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
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.
Re: Qt 4.7 with Visual C++ 2010: Unable to start program
Quote:
Originally Posted by
Lesiok
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!
Re: Qt 4.7 with Visual C++ 2010: Unable to start program
I use qt 4.7 fine on vs 2010.
Re: Qt 4.7 with Visual C++ 2010: Unable to start program
You must rebuild Qt with VS 2010.
Re: Qt 4.7 with Visual C++ 2010: Unable to start program
Quote:
Originally Posted by
Lesiok
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?
Re: Qt 4.7 with Visual C++ 2010: Unable to start program
Quote:
Originally Posted by
steno
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!
Re: Qt 4.7 with Visual C++ 2010: Unable to start program
Try to compile in Release mode.