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

REG->6.8.1: qtmoc does not handle spaces in command line correctly

XMLWordPrintable

    • Windows
    • License server development 39

      Since 6.8.1, qtmoc is in effect, causing several issues:

      Problems with defines for the windows resource file compiler sneaking into the command line of moc

      ?

      Problems Building PySide6

      I am trying to build PySide from source using setup.py like this:

      python.exe setup.py build --qtpaths=C:\\QtMaintenance\\6.8.1\\msvc2022_64\\bin\\qtpaths.exe --openssl=c:\\OpenSSL\\bin --ignore-git --parallel=16 --disable-pyi

      It worked fine previously, but after updating to 6.8.1 and pulling the latest PySide dev changes, the MOC has issues with whitespaces in the compiler path.
      The meaningful error I see is:

      [1/16] Automatic MOC for target apiextractor
      AutoMoc: moc: Too many input files specified: 'Files/Microsoft' 'Visual' 'Studio/2022/Professional/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe' 'C:/pyside/sources/shiboken6/ApiExtractor/abstractmetafunction.h'
      Usage: C:/QtMaintenance/6.8.1/msvc2022_64/bin/qtmoc.exe [options] [header-file] [@option-file] [MOC generated json file]
      Qt Meta Object Compiler version 68 (Qt 6.8.1)
      
      Options:
      ... 

      My compiler is at 

      C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64\cl.exe

      I have tried deleting completely the CMake build folder without success

      Please check the attached pysideSetupCrash.txt file for the full log.

       

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

            arttu.tarkiainen Arttu Tarkiainen
            jaime02 Jaime Resano
            Votes:
            2 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes