如何运行Qt程序没有Qt本身安装? [英] How to run a Qt Program without Qt itself being installed?

查看:604
本文介绍了如何运行Qt程序没有Qt本身安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一个程序与Qt5.3.1和运行它在我的开发机器上,它的工作正常。我将所有必要的.dll文件复制到我的.exe所在的文件夹中。这些是:




  • Qt5Widgets.dll

  • Qt5Network.dll




  • icudt51.dll

  • li>
  • icuuc51.dll

  • libgcc_s_dw2-1.dll

  • libwinpthread-1.dll

  • libstdc ++ - 6.dll



现在我想在没有安装Qt的机器上运行该程序。我怎么做?



它的工作原理的开发机器的细节:




  • Windows 8

  • Qt 5.3.1


b $ b

部署平台是:




  • Windows Vista

  • 所有必要的.dll都已到位



错误我得到的是:



< >

此应用程序无法启动,因为它无法找到或加载Qt平台插件窗口。
重新安装应用程式可能会解决这个问题。


下一错误讯息是:


此应用程序请求运行时以异常方式终止。请与支持小组联系。


然后程序崩溃。 如果我安装Qt5.3.1它的工作原理。因此它与 c:/ Qt 目录中的文件有关。

解决方案

此应用程序无法启动,因为它无法找到或加载Qt平台插件windows。



对于此问题,您应该将插件 {QTSDK} /plugins/platforms/qwindows.dll 复制到 {YOUR_EXE_DIR} /platforms/qwindows.dll


I have written a program with Qt5.3.1 and run it on my development machine where it works fine. I copied all necessary .dll files into the folder where my .exe is. These are:

  • Qt5Widgets.dll
  • Qt5Network.dll
  • Qt5Gui.dll
  • Qt5Core.dll
  • icudt51.dll
  • icuin51.dll
  • icuuc51.dll
  • libgcc_s_dw2-1.dll
  • libwinpthread-1.dll
  • libstdc++-6.dll

Now I want to run that program on a machine that has no Qt installed. How do I do that? It shouldn't be necessary for users to install an IDE just to use a program, right?

Details of the development machine where it works:

  • Windows 8
  • Qt 5.3.1

The deploying platform is:

  • Windows Vista
  • No Qt installed but all necessary .dlls are in place

Errors I get are first:

This application failed to start because it could not find or load the Qt platform plugin "windows". Reinstalling the application may fix this problem.

Next error message is:

This application requested the Runtime to terminate in an unusual way. Please contact support.

Then the program crashes. But if I install Qt5.3.1 it works. So it has something to do with files in the c:/Qt directory

解决方案

This application failed to start because it could not find or load the Qt platform plugin "windows".

For this problem, you should copy the plugin {QTSDK}/plugins/platforms/qwindows.dll to {YOUR_EXE_DIR}/platforms/qwindows.dll.

这篇关于如何运行Qt程序没有Qt本身安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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