c++ - Qt deploy 找不到Visual Studio安装目录

标签 c++ qt

我在使用 Qt 部署时遇到问题:
在windeployqt App.exe之后,它返回

Adding Qt5Svg for qsvgicond.dll
Direct dependencies: Qt5Core Qt5Gui Qt5SerialPort Qt5Widgets
All dependencies   : Qt5Core Qt5Gui Qt5SerialPort Qt5Widgets
To be deployed     : Qt5Core Qt5Gui Qt5SerialPort Qt5Svg Qt5Widgets
Warning: Cannot find Visual Studio installation directory, VCINSTALLDIR is not set.
(我必须使用 Qt 5.12.2(MSVC 2017 64 位)控制台,在 windows powershell 中找不到命令 windeployqt)。
它不部署 msvc dll。如何设置 VCINSTALLDIR?
有人可以帮助我吗?
非常感谢

最佳答案

对于 VS2019 社区
VCINSTALLDIR 是 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC。
添加到系统变量并重新启动 Visual Studio。

关于c++ - Qt deploy 找不到Visual Studio安装目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64045809/

相关文章:

c++ - 在 Matlab 中使用 OS X 编译/混合 imrender 函数时出错

c++ - 为什么转换可以涉及两个用户定义的转换函数/构造函数?

c++ - 在 python 或 c++ 中获取全局 tcl 数组

c++ - 'addQueryItem' 中没有名为 'QUrl' 的成员 - 将 Qt 4.7 转换为 5.8

c++ - Linux 共享库被加载两次

qt - 动态更改 QML 映射中 osm 插件的自定义主机 URL

c++ - 模糊图像的非矩形区域,然后对整个图像进行下采样 - OpenCV

c++ - 如何将 QPlainText 中的文本方向更改为从右到左?

qt - 如何在自定义 QTextEdit 中接受来自 QListWidget 的拖放

c++ - C++ 编译器使用什么类型的程序集?