当前位置: 首页 > news >正文

【QT】QT软件编译生成exe后,需要拷贝依赖库使用方法

  1. 方案一:QT自带软件拷贝
    1.1 选择release编译
    在这里插入图片描述

1.2 复制exe文件到新目录下
在这里插入图片描述

1.3 查找QT编译拷贝(需要找到对应的开发版本)
在这里插入图片描述

1.4 复制exe路径进行拷贝,按回车

windeployqt.exe I:\Code\local\QT\Design\release\QtDemo.exe

[图片]

1.5 拷贝相关的引用文件
在这里插入图片描述

1.6 运行exe,此时就会正常运行程序
在这里插入图片描述

  1. 方案二:bat脚本执行拷贝
@echo off
REM 设置临时系统环境(必须设置,否则编译出来的引用还是缺少)
set PATH=H:\Qt\Qt5.14.2\5.14.2\mingw73_64\bin;H:\Qt\Qt5.14.2\Tools\mingw730_64\bin;%PATH%
REM QT安装目录
cd /d H:\Qt\Qt5.14.2\5.14.2\mingw73_64
REM --force覆盖原有文件
windeployqt --force I:\Code\local\QT\Design\QtDemo\trunk\release\QtDemo.exe
pause

文章转载自:
http://belabour.hyyxsc.cn
http://anaptyxis.hyyxsc.cn
http://cantabile.hyyxsc.cn
http://belled.hyyxsc.cn
http://allopurinol.hyyxsc.cn
http://carbuncular.hyyxsc.cn
http://choreodrama.hyyxsc.cn
http://broking.hyyxsc.cn
http://barracuda.hyyxsc.cn
http://chandigarh.hyyxsc.cn
http://amperometer.hyyxsc.cn
http://arcane.hyyxsc.cn
http://cardiomegaly.hyyxsc.cn
http://aleuronic.hyyxsc.cn
http://burns.hyyxsc.cn
http://burr.hyyxsc.cn
http://beeswing.hyyxsc.cn
http://bretton.hyyxsc.cn
http://anopsia.hyyxsc.cn
http://bareback.hyyxsc.cn
http://apod.hyyxsc.cn
http://blastproof.hyyxsc.cn
http://burgher.hyyxsc.cn
http://areola.hyyxsc.cn
http://canzonet.hyyxsc.cn
http://bicultural.hyyxsc.cn
http://barefisted.hyyxsc.cn
http://acta.hyyxsc.cn
http://catwalk.hyyxsc.cn
http://achromaticity.hyyxsc.cn
http://www.dtcms.com/a/174944.html

相关文章:

  • QT键盘触发按钮
  • Android开发-创建、运行、调试App工程
  • 01_线性表
  • Java中的Classpath 包含哪些目录?
  • linux -shell原理与运用
  • openwrt 使用quilt 打补丁(patch)
  • 【Harbor v2.13.0 详细安装步骤 安装证书启用 HTTPS】
  • WebRTC并非万能:RTMP与RTSP的工程级价值再认识
  • Flutter开发IOS蓝牙APP的大坑
  • 【2025】Visio 2024安装教程保姆级一键安装教程(附安装包)
  • 【奔跑吧!Linux 内核(第二版)】第1章:Linux 系统基础知识
  • Ros工作空间
  • IDEA 占用C盘太大清理
  • LangChain:大语言模型应用的“瑞士军刀”入门指南
  • 上市公司-企业上下游供应链数据(2003-2023年)-社科数据
  • 推导部分和-图论+dfs+连通块
  • 【数据挖掘】Apriori算法
  • 主数据 × 知识图谱:打造企业认知智能的核心基础设施
  • 全国青少年信息素养大赛 Python编程挑战赛初赛 内部集训模拟试卷一及详细答案解析
  • 孤岛铜怎么解决
  • 极狐GitLab 如何将项目共享给群组?
  • 极狐Gitlab 里程碑功能介绍
  • 手写 Vue 源码 === Effect 机制解析
  • Vue3.5 企业级管理系统实战(十七):角色管理
  • WordPress_AdsProPlugin Sql注入漏洞复现(CVE-2024-13322)
  • vue3 computed方法传参数
  • 人工智能 计算智能模糊逻辑讲解
  • 【基于SSM+Vue+Mysql】健身房俱乐部管理系统(附源码+数据库脚本)
  • Kaggle——House Prices(房屋价格预测)简单实现
  • java springboot deepseek流式对话集成示例