xKommando
xKommando

Reputation: 435

Qt 4.8.4 mingw (gcc 4.7) can compile but cannot run

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.

Upvotes: 1

Views: 1620

Answers (2)

teymourlouie
teymourlouie

Reputation: 7273

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)

Upvotes: 0

user2127352
user2127352

Reputation:

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.

Upvotes: 1

Related Questions