我在使用 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/