Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-790

Random lnk directory name confuses qmake

    XMLWordPrintable

Details

    • e598178719c401152a151960d5662d111717306b

    Description

      The [System.IO.Path]::GetRandomFileName() in qt.props sometimes causes the temporary output folder to have a name with an lnk 'extension' (e.g. vb4ywx1c.lnk) which seems to confuse the qmake.

      This random occurence happens roughly every 2 month in our Jenkins environment and always causes some confusion.

      Here a part of the log output:

          11>QtVars:
               The command "("E:\software\Qt\Qt5.11.2\5.11.2\msvc2017_32\bin\qmake.exe" "CONFIG -= debug release debug_and_release" "CONFIG += debug") 1> qtvars.log 2>&1" was terminated with code 1.
          11>SomeProject.vcxproj : error : ERROR running qmake [E:\jenkins\workspace\SomeJob\SomePath\SomeProject.vcxproj]
      SomeProject.vcxproj : error : qmake: (E:\software\Qt\Qt5.11.2\5.11.2\msvc2017_32\bin\qmake.exe) [E:\jenkins\workspace\SomeJob\SomePath\SomeProject.vcxproj]
      SomeProject.vcxproj : error : qmake: $PWD=C:\Users\jenkins\AppData\Local\Temp\vb4ywx1c.lnk [E:\jenkins\workspace\SomeJob\SomePath\SomeProject.vcxproj]
      SomeProject.vcxproj : error : qmake: Usage: E:\software\Qt\Qt5.11.2\5.11.2\msvc2017_32\bin\qmake.exe [mode] [options] [files] [E:\jenkins\workspace\SomeJob\SomePath\SomeProject.vcxproj]
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTVSADDINBUG-790
          # Subject Branch Project Status CR V

          Activity

            People

              mecfc Miguel Costa
              anoymouserver anoymouserver
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes