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

AutoMoc subprocess error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.3.1
    • Build tools: moc
    • None
    • Windows

    Description

      windows编译QT6.3.1报错:配置如下

      config:

      E:\code\QT\build\qt-everywhere-src-6.3.1>configure.bat -prefix "E:\\code\\QT
      QtInstall" -confirm-license -opensource -debug-and-release -platform win32-g++

      报错:

      E:\code\QT\build\qt-everywhere-src-6.3.1>cmake --build . --parallel
      [868/15700] Generating kernel/moc_qobject.cpp, kernel/moc_qobject.cpp.json
      FAILED: qtbase/src/corelib/kernel/moc_qobject.cpp qtbase/src/corelib/kernel/moc_qobject.cpp.json E:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib/kernel/moc_qobject.cpp E:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib/kernel/moc_qobject.cpp.json
      cmd.exe /C "cd /D E:\code\QT\build\qt-everywhere-src-6.3.1\qtbase\src\corelib && E:\code\QT\build\qt-everywhere-src-6.3.1\qtbase\bin\moc.exe @E:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib/kernel/moc_qobject.cpp_parameters_Release"
      [884/15700] Automatic MOC for target Core
      FAILED: qtbase/src/corelib/Core_autogen/timestamp qtbase/src/corelib/Core_autogen/mocs_compilation_Release.cpp qtbase/src/corelib/Core_autogen/mocs_compilation_Debug.cpp E:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib/Core_autogen/timestamp E:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib/Core_autogen/mocs_compilation_Release.cpp E:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib/Core_autogen/mocs_compilation_Debug.cpp
      cmd.exe /C "cd /D E:\code\QT\build\qt-everywhere-src-6.3.1\qtbase\src\corelib && E:\code\QT\cmake-3.24.1-windows-x86_64\bin\cmake.exe -E cmake_autogen E:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib/CMakeFiles/Core_autogen.dir/AutogenInfo.json Release && E:\code\QT\cmake-3.24.1-windows-x86_64\bin\cmake.exe -E cmake_autogen E:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib/CMakeFiles/Core_autogen.dir/AutogenInfo.json Debug && E:\code\QT\cmake-3.24.1-windows-x86_64\bin\cmake.exe -E touch E:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib/Core_autogen/timestamp && E:\code\QT\cmake-3.24.1-windows-x86_64\bin\cmake.exe -E cmake_transform_depfile "Ninja Multi-Config" gccdepfile E:/code/QT/build/qt-everywhere-src-6.3.1 E:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib E:/code/QT/build/qt-everywhere-src-6.3.1 E:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib E:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib/Core_autogen/deps E:/code/QT/build/qt-everywhere-src-6.3.1/CMakeFiles/d/881b59ae3ff40ea75bceef100806008339b6c60692924f1f469e1ad07c4deefb.d"

      AutoMoc subprocess error
      ------------------------
      The moc process failed to compile
      "SRC:/qtbase/src/corelib/animation/qanimationgroup.h"
      into
      "SRC:/qtbase/src/corelib/Core_autogen/include_Release/moc_qanimationgroup.cpp"
      included by
      "SRC:/qtbase/src/corelib/animation/qanimationgroup.cpp"

      Command
      -------
      E:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/bin/moc.exe -DCore_EXPORTS -DMINGW_HAS_SECURE_API=1 -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_STATIC -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_MOC_COMPAT -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_USING_NAMESPACE -DQT_TYPESAFE_FLAGS -DQT_USE_QSTRINGBUILDER -DQT_ZLIB_LIB -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -IE:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/include -IE:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/include/QtCore -IE:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib -IE:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib/global -IE:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib/kernel -IE:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/3rdparty/tinycbor/src -IE:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/include/QtCore/6.3.1 -IE:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/include/QtCore/6.3.1/QtCore -IE:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/3rdparty/double-conversion/double-conversion -IE:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/3rdparty/double-conversion -IE:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib/.rcc -IE:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/mkspecs/win32-g++ -IE:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/include/QtZlib -IE:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/3rdparty/zlib -IE:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/3rdparty/pcre2/src -IE:/code/QT/MinGW-w64-x86_64/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++ -IE:/code/QT/MinGW-w64-x86_64/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c+/x86_64-w64-mingw32 -IE:/code/QT/MinGW-w64-x86_64/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c+/backward -IE:/code/QT/MinGW-w64-x86_64/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include -IE:/code/QT/MinGW-w64-x86_64/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include-fixed -IE:/code/QT/MinGW-w64-x86_64/mingw64/x86_64-w64-mingw32/include --include E:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib/Core_autogen/moc_predefs_Release.h --output-json --output-dep-file -o E:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib/Core_autogen/include_Release/moc_qanimationgroup.cpp E:/code/QT/build/qt-everywhere-src-6.3.1/qtbase/src/corelib/animation/qanimationgroup.h

      Output
      ------

       

      AutoMoc subprocess error
      ------------------------

      Attachments

        Activity

          People

            cnn Qt Core & Network
            nichen nihijing
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: