PDA

View Full Version : Qt 4.7 with Visual C++ 2010: Unable to start program



myan
13th October 2010, 00:38
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.

Lesiok
13th October 2010, 07:12
Use DependencyWalker to find missing DLLs

squidge
13th October 2010, 08:03
This error is typically associated with the C RTL. Reinstalling the RTL fixed most problems: http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=a7b7a05e-6de6-4d3a-a423-37bf0912db84

myan
13th October 2010, 14:55
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.

myan
13th October 2010, 15:27
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!

steno
13th October 2010, 20:59
I use qt 4.7 fine on vs 2010.

Lesiok
14th October 2010, 07:35
You must rebuild Qt with VS 2010.

steno
14th October 2010, 15:55
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?

myan
15th October 2010, 00:24
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!

zachtoshiya
15th April 2011, 07:51
Try to compile in Release mode.