Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. WinDeployQt and VCINSTALLDIR PROBLEM
Forum Update on Monday, May 27th 2025

WinDeployQt and VCINSTALLDIR PROBLEM

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 3 Posters 3.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DzCode
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    1
    • B Offline
      B Offline
      Bonnie
      wrote on last edited by Bonnie
      #2

      Run command prompt from Visual Studio's start menu folder.

      D 1 Reply Last reply
      2
      • B Bonnie

        Run command prompt from Visual Studio's start menu folder.

        D Offline
        D Offline
        DzCode
        wrote on last edited by
        #3

        @Bonnie Which command should I write to set?

        jsulmJ B 2 Replies Last reply
        0
        • D DzCode

          @Bonnie Which command should I write to set?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @DzCode said in WinDeployQt and VCINSTALLDIR PROBLEM:

          Which command should I write to set?

          To set what?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          D 1 Reply Last reply
          0
          • jsulmJ jsulm

            @DzCode said in WinDeployQt and VCINSTALLDIR PROBLEM:

            Which command should I write to set?

            To set what?

            D Offline
            D Offline
            DzCode
            wrote on last edited by
            #5

            @jsulm

            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

            1 Reply Last reply
            0
            • D DzCode

              @Bonnie Which command should I write to set?

              B Offline
              B Offline
              Bonnie
              wrote on last edited by
              #6

              @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.

              D 2 Replies Last reply
              2
              • B Bonnie

                @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.

                D Offline
                D Offline
                DzCode
                wrote on last edited by
                #7

                @Bonnie YEs, it is like this. I found it from the start menu. After that what should I do?

                1 Reply Last reply
                0
                • B Bonnie

                  @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.

                  D Offline
                  D Offline
                  DzCode
                  wrote on last edited by
                  #8

                  @Bonnie I understood

                  now it does not give any warning about this but, still does not gather the all required dlls of Qt

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    DzCode
                    wrote on last edited by DzCode
                    #9

                    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.

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved