weixin_58241990 2021-06-21 19:15 采纳率: 85.7%
浏览 800
已结题

QT使用 windeployqt.exe打包后打开exe提示缺少dll


在windows10 下的debug模式下打包的 X64  exe

本机可以正常打开,但是放到windows7 X64电脑上就不行了

Setting up environment for Qt usage...
Remember to call vcvarsall.bat to complete environment setup!

D:\2.0_Tool\1.1QT5\5.15.2\msvc2019_64>cd /d E:\classC++\Qt\WeiLongPorgram\1

E:\classC++\Qt\WeiLongPorgram\1>D:\2.0_Tool\1.1QT5\5.15.2\msvc2019_64\bin\windeployqt.exe Weilong.exe
E:\classC++\Qt\WeiLongPorgram\1\Weilong.exe 64 bit, debug executable
Adding Qt5Svg for qsvgicond.dll
Skipping plugin qtvirtualkeyboardplugind.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_hanguld.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_openwnnd.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_pinyind.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_tcimed.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_thaid.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Direct dependencies: Qt5Core Qt5Network Qt5Sql Qt5Widgets
All dependencies   : Qt5Core Qt5Gui Qt5Network Qt5Sql Qt5Widgets
To be deployed     : Qt5Core Qt5Gui Qt5Network Qt5Sql Qt5Svg Qt5Widgets
Warning: Cannot find Visual Studio installation directory, VCINSTALLDIR is not set.
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.
Creating directory E:/classC++/Qt/WeiLongPorgram/1/bearer.
Updating qgenericbearerd.dll.
Creating directory E:/classC++/Qt/WeiLongPorgram/1/iconengines.
Updating qsvgicond.dll.
Creating directory E:/classC++/Qt/WeiLongPorgram/1/imageformats.
Updating qgifd.dll.
Updating qicnsd.dll.
Updating qicod.dll.
Updating qjpegd.dll.
Updating qsvgd.dll.
Updating qtgad.dll.
Updating qtiffd.dll.
Updating qwbmpd.dll.
Updating qwebpd.dll.
Creating directory E:/classC++/Qt/WeiLongPorgram/1/platforms.
Updating qwindowsd.dll.
Creating directory E:/classC++/Qt/WeiLongPorgram/1/sqldrivers.
Updating qsqlited.dll.
Updating qsqlodbcd.dll.
Updating qsqlpsqld.dll.
Creating directory E:/classC++/Qt/WeiLongPorgram/1/styles.
Updating qwindowsvistastyled.dll.
Creating E:\classC++\Qt\WeiLongPorgram\1\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_tr.qm...
Creating qt_uk.qm...
Creating qt_zh_TW.qm...

 

 

没有报错,本机也可以运行

  • 写回答

1条回答 默认 最新

  • weixin_58241990 2021-07-10 00:35
    关注

    在网上找到解决办法了 需要把vs相关环境设置下,然后在qt命令行中执行下这个 vcvarsall.bat
    call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
    我的是64位的,大家的看情况选择适合自己的

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 7月19日
  • 已采纳回答 7月19日

悬赏问题

  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突