Qt 5.0.1:应用程序不会在Qt创建者之外执行 [英] Qt 5.0.1: Application will not execute outside of Qt creator

查看:181
本文介绍了Qt 5.0.1:应用程序不会在Qt创建者之外执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图运行程序TransitTalker.exe,这是我的编译代码从qt,如下图所示:



https://www.dropbox.com/s/ypgklrm4uschri5/filecontents.png



(请注意,我没有足够的声望来张贴图片,这是我为图片提供链接的原因)



我的问题:




  • 我的程序不在qt创建者之外执行。


  • 我收到以下讯息尝试运行TransitTalker.exe:此应用程序请求运行时以异常方式终止它。请联系应用程序的支持团队以获取更多信息




我已经做了什么:


  • 我已经添加了所需的dll(除了GPSVC.dll和IESHIMS.dll)。


  • 我确保我的程序在qt creator中运行,没有错误。




我的主要问题:
为什么我收到此运行时消息: 此应用程序已请求运行时以异常方式终止它。有关详细信息,请与应用程序的支持小组联系。我想要能够运行我的程序,TransitTalker.exe作为qt独立应用程序。



运行qt creator 5.0.1(MINGW 47_32)。我在同一台电脑上也有Visual Studio 2012。

解决方案

请参阅下面的解决方案如何我做到了。



Dmitry是正确的MinGW GCC 4.7是与Qt 5.0.1兼容,我验证通过 this post



我的解决方案:我安装了使用MinGW GCC 4.4的Qt Creator 4.8 SDK。我可以在Qt Creator之外运行我的应用程序可执行文件。


I am trying to run the program TransitTalker.exe, which is my compiled code from qt, as shown in this picture:

https://www.dropbox.com/s/ypgklrm4uschri5/filecontents.png

(Note that I do not have sufficient reputation to post images, which the reason why I provided a link to the image)

My problem:

  • My program does not execute outside of qt creator.

  • I get the following message attempting to run TransitTalker.exe: "This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information."

What have I done already:

  • I have added the required dll's (Except GPSVC.dll and IESHIMS.dll). I found the required dll's thru a program called dependency walker.

  • I made sure my program runs inside qt creator, with no errors.

My main question: Why am I receiving this runtime message: "This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.". I want to be able to run my program, TransitTalker.exe as an qt standalone application.

Running qt creator 5.0.1 (MINGW 47_32). I have Visual Studio 2012 on the same computer as well.

解决方案

I got my application to work now. See solution below on how I did it.

Dmitry is correct that MinGW GCC 4.7 is not compatible with Qt 5.0.1, which I verified thru this post

My Solution: I installed Qt Creator 4.8 SDK which uses MinGW GCC 4.4. I was able to run my application executable outside of the Qt Creator.

这篇关于Qt 5.0.1:应用程序不会在Qt创建者之外执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆