Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt deploy cannot find Visual Studio installation directory

Tags:

c++

qt

I'm having a problem with Qt Deployment:

After a windeployqt App.exe, it returns

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.

(I have to use the Qt 5.12.2 (MSVC 2017 64-bit) console, in the windows powershell the command windeployqt isn't found).

It doesn't deploy the msvc dll. How can I set VCINSTALLDIR?

Someone can help me? Thanks a lot

like image 450
LukeV Avatar asked Sep 24 '20 11:09

LukeV


1 Answers

For VS2019 Community VCINSTALLDIR is C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC. Add to system variables and restart Visual Studio.

like image 116
Oleg Z Avatar answered Sep 30 '22 09:09

Oleg Z