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

.pri files generated by CMake fail to quote spaces in Windows SDK paths

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.2.0 Beta2
    • 6.2.0 Beta1
    • Build System: CMake
    • None
    • windows 10, qt6.2 beta 1
    • Windows
    • 2915921ad2a79a4ce1651dc7297f6571788d1413

    Description

      when i try to link my app against qt 6.2 beta 1, i get this: 

      linking "kJams 2 Debug.exe" 
      LINK : fatal error LNK1104: cannot open file 'Kits\10\Lib\10.0.19041.0\um\x64\OleAut32.Lib'
      jom: Z:\kJams\Development\qt\kJams\win_qt6\kJams 2 Debug\Makefile [kJams 2 Debug.exe] Error 1104
       
      09:08:08: The process "C:\Program Files (x86)\IncrediBuild\BuildConsole.exe" exited with code 2.
      Error while building/deploying project kJams_win (kit: qt6)
      

      With the guidance of thiago, i ran qmake on the command line to produce the MakeFile, using flags "-d -d" (double debug info), and found where the faulty space-separation happened, to wit:

      DEBUG 2: hashed literal "QMAKE_LIBS_WMF"
      DEBUG 2: evaluated expression => QMAKE_LIBS_WMF
      DEBUG 2: evaluating expression
      DEBUG 2: new string
      DEBUG 2: literal "-LC:/Program"
      DEBUG 2: new string
      DEBUG 2: literal "Files"
      DEBUG 2: new string
      DEBUG 2: literal "(x86)/Windows"
      DEBUG 2: new string
      DEBUG 2: literal "Kits/10/Lib/10.0.19041.0/um/x64"
      

      attached is this file which clearly reveals the problem:

      .../Qt/6.2.0/msvc2019_64/mkspecs/modules/qt_lib_multimedia_private.pri
      

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            davecotter David M. Cotter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes