1
votes

i am new to Qt. i am using Wnndows 8 with MinGW (gcc 4.7.2) i have installed QtLibrary 4.8.4(the official site says Qt 4.84 should work with mingw 4.4) After modified Windows environment variables, i installed Qt Creator 2.6 and setted the kit as well.

now i can compile the example program, but cannot run it, the error message I got is

Starting D:\usr\bin\Qt4\examples\opengl\2dpainting-build-Kit_3_14-Debug\debug\2dpainting.exe... The program has unexpectedly finished. D:\usr\bin\Qt4\examples\opengl\2dpainting-build-Kit_3_14-Debug\debug\2dpainting.exe exited with code -1073741502

i met the same problem with Qt 5.0.1 + MinGw 4.7.2 too. i guess there is something wrong with "opengl", but don't know how to fix it. please help.

2
Use dependency walker to see if any dlls are missing.hank
If you fixed the problem yourself you should add an answer and accept it.Zeta

2 Answers

1
votes

Please try to place all required dlls into the directory where your exe is (see here). Also make shure; if you are compilung in Debug you need eg. QtCored4.dll, but in release QtCore4.dll.

0
votes

It all about x32 and x64 architectures, If you compile cpp files in x64 mode and then link them with x32 qt the problem will occur. try using the appropriate versions of windows and qt(both x32 or both x64)