【QT】C++/Qt使用Qt自带工具windeployqt打包
发布时间:2023年12月19日
基本操作
运行项目debug或者release
将运行后的可执行文件单独放到一个文件夹中
根据项目使用的kits来选择Qt的打包工具
打开工具后移动到exe文件夹下执行windeployqt xxx.exe
预览图

问题
打包后再其他电脑上运行出现下图错误

将自己电脑的这个文件拷到可执行文件夹中既可
打包中出现的Warning/Error


这个原因是系统缺少VCINSTALLDIR这个环境变量,或者是这个环境变量的路径不对,添加一个环境变量,或者更改正确的路径

Tips:亲测在windeployqt执行时出现任何Warning啥的都是解决,不然会有意想不到的问题
文章来源:https://blog.csdn.net/weixin_44404541/article/details/135084592
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:chenni525@qq.com进行投诉反馈,一经查实,立即删除!