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

Random lnk directory name confuses qmake

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Fixed
    • Affects Version/s: 2.5.1
    • Fix Version/s: 2.5.1 (rev.18), 2.5.2
    • Component/s: Qt/MSBuild
    • Labels:
      None
    • Commits:
      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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              mecfc Miguel Costa
              Reporter:
              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