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

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 如何在音频中嵌入字符串(水印)信息进行传递
  • ¥30 plc怎么以设计说明书申请软著
  • ¥15 硬盘识别不了,需要初始化,可我的数据怎么办
  • ¥15 lvm2被mask了,怎么unmask都没用(标签-ubuntu|关键词-apt)
  • ¥15 交叉注意力机制的残差问题
  • ¥15 微信小程序:渲染收货地址时页面不显示
  • ¥20 win7 64位DirectShow提示初始化失败如何解决?
  • ¥20 小规模孤立词识别系统设计
  • ¥15 关于Java对接海康威视车牌识别一体机SDK是否需要固定外网的IP?
  • ¥15 Linux扩容时,格式化卡住了:vgdispaly查看卷组信息,没有输出