Solved WinDeployQt and VCINSTALLDIR PROBLEM
-
Hi everyone,
I have some problem about deploing by applications.
I am using Qt 5.9.7 and Qt5.12.2. And as a compiler I have msvc15_64bit, msvc17_32bit, msvc17_64bit.
When I try to deploy my application in command prompt via windeployqt.exe, It cannot find the Visual Studio Installation Library VCINSTALLDIR. How can I set it or solve this?
-
Run command prompt from Visual Studio's start menu folder.
-
@Bonnie Which command should I write to set?
-
@DzCode said in WinDeployQt and VCINSTALLDIR PROBLEM:
Which command should I write to set?
To set what?
-
For windeployqt I am going to the path of the program I want to deploy and in command prompt I am writing windeployqt.exe myApp.exe.
Then it gives some warnings like below.
Direct dependencies: Qt5Core Qt5Gui Qt5Widgets
All dependencies : Qt5Core Qt5Gui Qt5Widgets
To be deployed : Qt5Core Qt5Gui Qt5Svg Qt5Widgets
Warning: Cannot find Visual Studio installation directory, VCINSTALLDIR is not set.I puts basic Qt5 dlls, but it does not put any other like Network dll and OpenGl
-
@DzCode
I'm not sure with the exact name since mine are not all in English.
Just something like, "x86 Native Tools Command Prompt for VS 2017" for msvc17_32bit. -
@Bonnie YEs, it is like this. I found it from the start menu. After that what should I do?
-
@Bonnie I understood
now it does not give any warning about this but, still does not gather the all required dlls of Qt
-
C:\Qt\Qt5.12.2\5.12.2\msvc2017_64\bin\windeployqt.exe -multimedia -multimediawidgets -opengl C:\Users\dz\Desktop\Testing\myAppApp.exe
The correct form of the windeployment can be like this.