[英]Qt 4.8.4 mingw (gcc 4.7) can compile but cannot run
i am new to Qt. 我是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. 我在MinGW(gcc 4.7.2)上使用了Wnndows 8,我已经安装了QtLibrary 4.8.4(官方网站说Qt 4.84应该与mingw 4.4一起工作)。在修改Windows环境变量之后,我安装了Qt Creator 2.6并设置了工具包。
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 ...该程序意外完成。 D:\\usr\\bin\\Qt4\\examples\\opengl\\2dpainting-build-Kit_3_14-Debug\\debug\\2dpainting.exe exited with code -1073741502 D:\\ usr \\ bin \\ Qt4 \\ examples \\ opengl \\ 2dpainting-build-Kit_3_14-Debug \\ debug \\ 2dpainting.exe退出,代码为-1073741502
i met the same problem with Qt 5.0.1 + MinGw 4.7.2 too. 我也用Qt 5.0.1 + MinGw 4.7.2遇到了同样的问题。 i guess there is something wrong with "opengl", but don't know how to fix it. 我猜“ opengl”有问题,但是不知道如何解决。 please help. 请帮忙。
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. 这一切都与x32和x64体系结构有关,如果以x64模式编译cpp文件,然后将它们与x32 qt链接,则会出现问题。 try using the appropriate versions of windows and qt(both x32 or both x64) 尝试使用Windows和QT的适当版本(x32或x64都)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.