I've downloaded Qt 4.8.2 library, Qt Creator 2.5.2, and manually installed MingW with w32api version 3.13 and GCC/g++ version 4.7.0.1. My OS is Windows 7 Ultimate x64.
I can create a sample "Plain C++ project" in Qt Creator; compile and run that console application using g++ without any issue.
But I cannot run a Qt application. I used Qt Creator, created a dummy Qt Application using Creator's "Qt Gui Application" template. The project can be compiled successfully, without any error or warning. But the binary keeps crashing when I try to run (both from Qt Creator
and Windows Explorer
) it. Both debug and release builds crash. It crashes even before showing main window.
MingW is installed in C:\MingW
and C:\MingW\bin
is in PATH
. Qt is installed in C:\Qt\4.8.2
and C:\Qt\4.8.2\bin
is in PATH
.
I analyzed generated exe of the Qt Gui Application output with Dependency Walker and found that it found all required DLLs:
- c:\windows\system32\KERNEL32.DLL
- c:\windows\system32\MSVCRT.DLL
- c:\mingw\bin\LIBGCC_S_DW2-1.DLL
- c:\mingw\bin\LIBSTDC++-6.DLL
- c:\qt\4.8.2\bin\QTCORE4.DLL
- c:\qt\4.8.2\bin\QTGUI4.DLL
So, what's causing the runtime crash?
EDIT
I also tried Qt's example projects: 2dpainting and addressbook - both crashed when they were launched.