Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QT VS Tools 2.9.1 rev. 6 bug
Qt 6.12 LTS is out! See what's new in the release blog

QT VS Tools 2.9.1 rev. 6 bug

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
12 Posts 3 Posters 3.1k Views 2 Watching
  • 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.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by Perdrix
    #1

    I was running windeployqt as a "Post-Build Event" step which was set up like this for a Debug build:

    call $(QtToolsPath)\qtenv2.bat
    call "$(VCInstallDir)Auxiliary\Build\vcvars64.bat"
    $(QtToolsPath)\windeployqt --pdb --debug $(TargetPath)
    

    and like this for a Release build:

    call $(QtToolsPath)\qtenv2.bat
    call "$(VCInstallDir)Auxiliary\Build\vcvars64.bat"
    $(QtToolsPath)\windeployqt $(TargetPath)
    

    I noticed that the Qt Project Settings now offers the option to run this with the Run Deployment Tool option, so I turned off my Post-Build Event stuff and set Run Deployment Tool to Yes.

    Unfortunately:

    1>DeepSkyStacker.vcxproj -> C:\Users\amonra\Documents\GitHub\DSS\x64\Debug\DeepSkyStacker.exe
    1>windeployqt: "C:/Qt/5.15.2/msvc2019_64/bin\windeployqt.exe" --list target --dir C:\Users\amonra\Documents\GitHub\DSS\x64\Debug\ C:\Users\amonra\Documents\GitHub\DSS\x64\Debug\DeepSkyStacker.exe
    1>Unable to find dependent libraries of C:\Anaconda2\Library\bin\Qt5Widgetsd.dll :Cannot open 'C:/Anaconda2/Library/bin/Qt5Widgetsd.dll': The system cannot find the file specified.
    1>
    1>
    1>C:\Users\amonra\AppData\Local\QtMsBuild\deploy\qtdeploy.targets(283,5): error MSB3073: The command ""C:/Qt/5.15.2/msvc2019_64/bin\windeployqt.exe" --list target --dir C:\Users\amonra\Documents\GitHub\DSS\x64\Debug\ C:\Users\amonra\Documents\GitHub\DSS\x64\Debug\DeepSkyStacker.exe > "x64\Debug\windeployqt.log"" exited with code 1.
    1>Done building project "DeepSkyStacker.vcxproj" -- FAILED.
    

    Clearly something is amiss - the question is what?

    I've reverted to the previous setup for now

    D.

    jsulmJ 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      It seems that your environment mixes conda and your standard Qt installation.

      Which one did you use to build your application ?
      Can you ensure that you do not have a conda environment active at the same time ? Even the base environment.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • PerdrixP Offline
        PerdrixP Offline
        Perdrix
        wrote on last edited by Perdrix
        #3

        Well I uninstalled it temporarily, but it seems to me that I should not need to do that!

        I didn't use anything but VS2019 to build my application - didn't use Anaconda at all.

        Will test tomorrow - it's almost 3am now

        D.

        1 Reply Last reply
        0
        • PerdrixP Perdrix

          I was running windeployqt as a "Post-Build Event" step which was set up like this for a Debug build:

          call $(QtToolsPath)\qtenv2.bat
          call "$(VCInstallDir)Auxiliary\Build\vcvars64.bat"
          $(QtToolsPath)\windeployqt --pdb --debug $(TargetPath)
          

          and like this for a Release build:

          call $(QtToolsPath)\qtenv2.bat
          call "$(VCInstallDir)Auxiliary\Build\vcvars64.bat"
          $(QtToolsPath)\windeployqt $(TargetPath)
          

          I noticed that the Qt Project Settings now offers the option to run this with the Run Deployment Tool option, so I turned off my Post-Build Event stuff and set Run Deployment Tool to Yes.

          Unfortunately:

          1>DeepSkyStacker.vcxproj -> C:\Users\amonra\Documents\GitHub\DSS\x64\Debug\DeepSkyStacker.exe
          1>windeployqt: "C:/Qt/5.15.2/msvc2019_64/bin\windeployqt.exe" --list target --dir C:\Users\amonra\Documents\GitHub\DSS\x64\Debug\ C:\Users\amonra\Documents\GitHub\DSS\x64\Debug\DeepSkyStacker.exe
          1>Unable to find dependent libraries of C:\Anaconda2\Library\bin\Qt5Widgetsd.dll :Cannot open 'C:/Anaconda2/Library/bin/Qt5Widgetsd.dll': The system cannot find the file specified.
          1>
          1>
          1>C:\Users\amonra\AppData\Local\QtMsBuild\deploy\qtdeploy.targets(283,5): error MSB3073: The command ""C:/Qt/5.15.2/msvc2019_64/bin\windeployqt.exe" --list target --dir C:\Users\amonra\Documents\GitHub\DSS\x64\Debug\ C:\Users\amonra\Documents\GitHub\DSS\x64\Debug\DeepSkyStacker.exe > "x64\Debug\windeployqt.log"" exited with code 1.
          1>Done building project "DeepSkyStacker.vcxproj" -- FAILED.
          

          Clearly something is amiss - the question is what?

          I've reverted to the previous setup for now

          D.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • PerdrixP Offline
            PerdrixP Offline
            Perdrix
            wrote on last edited by
            #5

            Well that was a bust:

            1>windeployqt: "C:/Qt/5.15.2/msvc2019_64/bin\windeployqt.exe" --list target --dir C:\Users\amonra\Documents\GitHub\DSS\x64\Debug\ C:\Users\amonra\Documents\GitHub\DSS\x64\Debug\DeepSkyStacker.exe
            1>EXEC : warning : Cannot find Visual Studio installation directory, VCINSTALLDIR is not set.

            Looking at the defined macros in the project, I beg to differ with the above:

            367c71b2-aa41-47f2-bb6f-5e9490f2fe60-image.png

            Still not clear why I needed to remove Anaconda - I shouldn't need to do that!

            D.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              I do not know how Anaconda modifies the Windows environment. One thing you should check if possible is whether you have a conda environment activated. Especially the base environment as it can break stuff. On Linux I had issues building Qt because I had it activated.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • PerdrixP Offline
                PerdrixP Offline
                Perdrix
                wrote on last edited by
                #7

                No conda environment that I know of - and now Anaconda is gone, it there were one it too would be gone.

                D.

                1 Reply Last reply
                0
                • PerdrixP Offline
                  PerdrixP Offline
                  Perdrix
                  wrote on last edited by
                  #8

                  It is still broken ... see my last but one post

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Did you start a visual studio enabled command line ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • PerdrixP Offline
                      PerdrixP Offline
                      Perdrix
                      wrote on last edited by
                      #10

                      Huh! No This was all VS2019 and VS Tools plugin

                      1 Reply Last reply
                      0
                      • PerdrixP Offline
                        PerdrixP Offline
                        Perdrix
                        wrote on last edited by
                        #11

                        Bump-t-bump

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          Then can you try the same from the command line to see if it's something that is related to Visual Studio or if there's something else in your system that might be off.

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          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
                          • Unsolved