Qt5.11.2 windeployqt也没有创造有限的依赖DLL(Qt5.11.2 windepl

2019-10-28 08:58发布

当试图运行与调试模式下的应用..错误:“代码执行无法继续,因为Qt5Core.dll没有被发现。”

当试图运行与释放模式的应用..

问题1:MinGW的考虑可执行文件作为调试可执行文件,因此windeployqt正在创建调试版本相关的DLL!

problem2:获取相同的错误如上面的 - “的代码执行不能进行,因为Qt5Core.dll没有被发现。”。

任何人都可以提供这种解决方案? 或请求引导用于解决该问题。

同样的问题被张贴在- Qt的windeployqt在非使用部署的结果

windeployqt的输出

<executable path>windeployqt 
<executable name>.exe 
<executable name>.exe 32 bit, debug executable 
Adding Qt5Svg for qsvgicond.dll 
Skipping plugin qtvirtualkeyboardplugind.dll due to disabled dependencies (Qt5Qml Qt5Quick). 
Direct dependencies: Qt5Core Qt5Gui Qt5Network Qt5Sql Qt5Widgets 
All dependencies : Qt5Core Qt5Gui Qt5Network Qt5Sql Qt5Widgets 
To be deployed : Qt5Core Qt5Gui Qt5Network Qt5Sql Qt5Svg Qt5Widgets 
Updating Qt5Cored.dll. 
Updating Qt5Guid.dll. 
Updating Qt5Networkd.dll.
Updating Qt5Sqld.dll. 
Updating Qt5Svgd.dll. 
Updating Qt5Widgetsd.dll. 
Updating libGLESV2d.dll. 
Updating libEGLd.dll. 
Updating D3Dcompiler_47.dll. 
Updating opengl32sw.dll. 
Updating libgcc_s_dw2-1.dll. 
Updating libstdc++-6.dll. 
Updating qsvgd.dll.
Updating qtgad.dll.
Updating qtiffd.dll.
Updating qwbmpd.dll.
Updating qwebpd.dll.
Creating directory <path of executable>/platforms. 
Updating qwindowsd.dll. 
Creating directory <path of executable>/sqldrivers. 
Updating qsqlited.dll. 
Updating qsqlmysqld.dll.
Updating qsqlodbcd.dll.
Updating qsqlpsqld.dll. 
Creating directory <path of executable>/styles.
Updating qwindowsvistastyled.dll. 
Creating <path of executable>\translations...
Creating qt_ar.qm... 
Creating qt_bg.qm...
Creating qt_ca.qm...
Creating qt_cs.qm...
Creating qt_da.qm...
Creating qt_de.qm...
Creating qt_en.qm...
Creating qt_es.qm...
Creating qt_fi.qm...
Creating qt_fr.qm...
Creating qt_gd.qm...
Creating qt_he.qm...
Creating qt_hu.qm...
Creating qt_it.qm...
Creating qt_ja.qm...
Creating qt_ko.qm...
Creating qt_lv.qm...
Creating qt_pl.qm...
Creating qt_ru.qm...
Creating qt_sk.qm...
Creating qt_uk.qm... 

Answer 1:

其实Qt的5.11.2与windeployqt创建与调试/发布可执行文件关联的依赖一起提供一个选项/标志。

对于创建调试版本依赖DLL:

windeployqt可执行--debug

对于创作发行版本依赖DLL:

windeployqt可执行--release

这解决了我的问题。



文章来源: Qt5.11.2 windeployqt is not creating finite dependent dll
标签: qt mingw