Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-59718

QMAKE_MSC_VER not set by configure.bat on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.8.0
    • Build System
    • None
    • Visual Studio 2017 Windows 10 64bit

      I am trying to compile Qt5.8 from source on Windows 10 x64. This is what I pass to configure.bat:

      call configure.bat -static -static-runtime -debug-and-release -mp ^
          -platform win32-msvc2017 ^
          -opensource -nomake examples -nomake tests ^
          -opengl desktop -prefix %_TMPOUTPATH%
      

      It fails to compile with the following point:

      Microsoft (R) Incremental Linker Version 14.10.25017.0
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
      Info: creating stash file C:\Users\The_GTA\Desktop\magictxd\vendor\Qt5.8\qt5\.qmake.stash
      Info: creating super cache file C:\Users\The_GTA\Desktop\magictxd\vendor\Qt5.8\qt5\.qmake.super
      Project ERROR: msvc-version.conf loaded but QMAKE_MSC_VER isn't set
      
      Microsoft (R) Program Maintenance Utility, Version 14.10.25017.0
      Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
      

      Inspecting the "qtbase\configure.bat" file shows that it sets "QMAKESPEC" but does not set "QMAKE_MSC_VER" which is required for building on Windows. The build system has undeniably changed from Qt5.7 to Qt5.8.

      I tried setting it as environment variable but it succeeded on x86 while it failed on x64 building. This Intel guy Thiago Macieira here says it is not a good idea:

      https://mid.mail-archive.com/interest@qt-project.org/msg24694.html

        1. logs.zip
          0.6 kB
          Rick Sandiego
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            buddenha Oswald Buddenhagen
            the_gta Rick Sandiego
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes