如果未安装Qt,则无法在PC上运行exe文件 [英] Can not run exe file on pc without Qt installed

查看:232
本文介绍了如果未安装Qt,则无法在PC上运行exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的被卡住了!我已经在互联网上搜索了所有解决方案,但仍然无法解决问题.

I am really stuck! I have searched all around on the internet for a solution but still cannot resolve the problem.

我有一个Windows应用程序,可在正确安装Qt的PC上运行.我不能在其他地方运行它.我在可执行文件旁边放置了以下dll:

I have an windows app that runs on the PC where Qt is installed properly. I cannot run it elsewhere though. I have put the following dlls next to the executable:

D3DCompiler_43.dll
icudt51.dll
icuin51.dll
icuuc51.dll
kernel32.dll
libEGL.dll
libgcc_s_dw2-1.dll
libGLESv2.dll
libstdc++-6.dll
libwinpthread-1.dll
msvcp100.dll
msvcrt.dll
qgif.dll
qico.dll
qjpeg.dll
qminimal.dll
qmng.dll
qoffscreen.dll
qsqlite.dll
Qt5Core.dll
Qt5Gui.dll
Qt5Sql.dll
Qt5Widgets.dll
qtga.dll
qtiff.dll
qwbmp.dll
qwindows.dll

...但是当我运行可执行文件时,我不断收到错误消息框,提示应用程序已请求运行时终止...

... but when I run the executable file I keep receiving error message box saying the application has requested the Runtime to terminate...

我创建了目录,例如qt/qt50.1/5.0.1/mingw47_32/plugins/platfroms,imageformats,sqldrives,并将相关的dll移到了那里.我一次又一次收到相同的错误消息.除了尝试编译Qt之外,还有其他方法吗?

I have created directories such as qt/qt50.1/5.0.1/mingw47_32/plugins/platfroms, imageformats, sqldrives and moved the relevant dlls there. I get the same error message again and again. Is there any way out other than trying to compile the Qt?

推荐答案

我以前遇到过此问题,但我在网上找到了一个丑陋的答案,但它确实有效

I had this problem before, and I found an ugly answer on net for it, but it worked

您应该创建一个目录并将该目录重命名为平台

you should create a directory and rename this directory to platforms

然后将以下两个Dll复制到该文件夹​​中

then copy the 2 following Dlls in this folder

qminimal.dll , qwindows.dll

将平台复制到您的dlls文件夹

copy platforms to your dlls folder

最后你有类似的东西

platforms
D3DCompiler_43.dll
icudt51.dll
icuin51.dll
icuuc51.dll
kernel32.dll
...

这篇关于如果未安装Qt,则无法在PC上运行exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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