Can not run exe file on pc without Qt installed [closed]

心不动则不痛 提交于 2019-12-13 09:51:36

问题


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

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...

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?


回答1:


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

then copy the 2 following Dlls in this folder

qminimal.dll , qwindows.dll

copy platforms to your dlls folder

at the end you have something like this

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


来源:https://stackoverflow.com/questions/18672858/can-not-run-exe-file-on-pc-without-qt-installed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!