部署Qt的dll文件 - 找不到Windows插件虽然platfroms / qwindows.dll存在,所以libEGL和libGLES [英] Deploying Qt dll file - cannot find windows plugin although platfroms/qwindows.dll exists and so libEGL and libGLES

查看:1652
本文介绍了部署Qt的dll文件 - 找不到Windows插件虽然platfroms / qwindows.dll存在,所以libEGL和libGLES的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是的,我知道有很多问题simillar,但真的没有答案的工作,我很疯狂。我建立我的应用程序作为正常exe和运行windeployqt它。我有很长的文件夹与exe文件夹列表。

Yes I know there are lots of questions simillar, but really no answer works and I am crazy about it. I built my app as normal exe and run windeployqt on it. I got long list of files in folder with exe.

files:
./
D3Dcompiler_47.dll
Qt5Core.dll
Qt5Gui.dll
Qt5Svg.dll
Qt5Widgets.dll
WLedPlugin.exe
accessible
files.txt
iconengines
icudt52.dll
icuin52.dll
icuuc52.dll
imageformats
libEGL.dll
libGLESv2.dll
platforms
qt_cs.qm
qt_de.qm
qt_fi.qm
qt_hu.qm
qt_it.qm
qt_ja.qm
qt_ru.qm
qt_sk.qm
qt_uk.qm

./accessible:
qtaccessiblewidgets.dll

./iconengines:
qsvgicon.dll

./imageformats:
qdds.dll
qgif.dll
qicns.dll
qico.dll
qjp2.dll
qjpeg.dll
qmng.dll
qsvg.dll
qtga.dll
qtiff.dll
qwbmp.dll
qwebp.dll

./platforms:
qwindows.dll

然后我将应用程序编译为dll它进入适当的程序的文件夹。 (我正在为Keil IDE开发插件)。 DLL看起来很好,但是当代码
的一部分与QApplication启动时,那么它不能找到Windows插件。

then I compiled app as dll and put it into folder with proper program. (I'm developing plugin for Keil IDE). DLL is seen well, but when part of code with QApplication launches, then it can't find windows plugin.

因此你看到qwindows.dll是在适当的文件夹,因为libEGL和libGLESv2太,它仍然看不到Windows插件。

So as you see qwindows.dll is in proper folder as libEGL and libGLESv2 are too and it still cannot see windows plugin. I would be really gratefull for help/tip/solution.

我使用msvc编译器x86和Qt 5.3版本。

I'am using msvc compiler x86 and Qt 5.3 version.

提前感谢!

找到一些解决方法 - >我简单地将msvc关闭并使用mingw insted。它只是wroked。谢谢!

Some workaround found -> I simply threw msvc off and used mingw insted. It simply wroked. Thanks!

推荐答案

好的,现在我想知道更多的问题。

Ok i guess now i know a bit more what was the problem about.

我有Keil应用程序和文件夹与我的dll插件的文件夹。
Windows检查应用程序中调用的dll依赖关系,首先调用
dll目录,而不是dll目录。 Dll目录位于较低的位置。

I had folder with Keil application and folder with my dll plugin. Windows check for called dll's dependencies in application's that called dll directory in first, not in dll directory. Dll directory is in lower position.

当然,迟早会得到dll的文件夹,但在一些机器上没有。将依赖项从DLL的目录移动到应用程序的目录有助于和目前工作良好。感谢所有的帮助! :)

Of course sooner or later windows should finally get to the dll's folder, but on some machines it didn't. Moving dependencies from DLL's directory to application's directory helped and is working well for the time being. Thanks all for help! :)

这篇关于部署Qt的dll文件 - 找不到Windows插件虽然platfroms / qwindows.dll存在,所以libEGL和libGLES的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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