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

no-gui build fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.6.1
    • 6.6.1
    • Build System
    • Linux/X11
    • 59c77bc2f (6.6)

    Description

      Have Qt 6.6.1 sources in /home/qt/RTA/src-6.6.1, prepare no-gui build by running configure:

      cmake -DINPUT_gui=no -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/home/qt/RTA/src-6.6.1/qtbase /home/qt/RTA/src-6.6.1 

      -> finishes fine, build: cmake --build . --parallel

      Fails:

      [1637/2809] Building CXX object qtdeclarative/src/core/CMakeFiles/QmlCore.dir/QmlCore_autogen/mocs_compilation.cpp.o
      FAILED: qtdeclarative/src/core/CMakeFiles/QmlCore.dir/QmlCore_autogen/mocs_compilation.cpp.o 
      /usr/bin/c++ -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_QMLCORE_LIB -DQT_BUILD_QML_CORE_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_AS_CONST -DQT_NO_AS_CONST=1 -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_USE_QSTRINGBUILDER -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DQmlCore_EXPORTS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/qt/RTA/src-6.6.1/qtdeclarative/src/core/QmlCore_autogen/include -I/home/qt/RTA/src-6.6.1/qtbase/include -I/home/qt/RTA/src-6.6.1/qtbase/include/QtQmlCore -I/home/qt/RTA/src-6.6.1/qtdeclarative/src/core -I/home/qt/RTA/src-6.6.1/qtbase/include/QtQmlCore/6.6.1 -I/home/qt/RTA/src-6.6.1/qtbase/include/QtQmlCore/6.6.1/QtQmlCore -I/home/qt/RTA/src-6.6.1/qtdeclarative/src/qml -I/home/qt/RTA/src-6.6.1/qtbase/include/QtQml/6.6.1 -I/home/qt/RTA/src-6.6.1/qtbase/include/QtQml/6.6.1/QtQml -I/home/qt/RTA/src-6.6.1/qtbase/src/corelib -I/home/qt/RTA/src-6.6.1/qtbase/include/QtCore/6.6.1 -I/home/qt/RTA/src-6.6.1/qtbase/include/QtCore/6.6.1/QtCore -I/home/qt/RTA/src-6.6.1/qtbase/include/QtCore -I/home/qt/RTA/src-6.6.1/qtbase/mkspecs/linux-g++ -I/home/qt/RTA/src-6.6.1/qtbase/include/QtQml -I/home/qt/RTA/src-6.6.1/qtbase/include/QtQmlIntegration -I/home/qt/RTA/src-6.6.1/qtdeclarative/src/qmlintegration -I/home/qt/RTA/src-6.6.1/qtbase/include/QtNetwork -DNDEBUG -O2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -fPIC -Wsuggest-override -fcf-protection=full -std=c++17 -Winvalid-pch -include /home/qt/RTA/src-6.6.1/qtdeclarative/src/core/CMakeFiles/QmlCore.dir/cmake_pch.hxx -MD -MT qtdeclarative/src/core/CMakeFiles/QmlCore.dir/QmlCore_autogen/mocs_compilation.cpp.o -MF qtdeclarative/src/core/CMakeFiles/QmlCore.dir/QmlCore_autogen/mocs_compilation.cpp.o.d -o qtdeclarative/src/core/CMakeFiles/QmlCore.dir/QmlCore_autogen/mocs_compilation.cpp.o -c /home/qt/RTA/src-6.6.1/qtdeclarative/src/core/QmlCore_autogen/mocs_compilation.cpp
      In file included from /home/qt/RTA/src-6.6.1/qtdeclarative/src/core/QmlCore_autogen/EWIEGA46WW/moc_qqmlpermissions_p.cpp:9,
                       from /home/qt/RTA/src-6.6.1/qtdeclarative/src/core/QmlCore_autogen/mocs_compilation.cpp:2:
      /home/qt/RTA/src-6.6.1/qtdeclarative/src/core/QmlCore_autogen/EWIEGA46WW/../../qqmlpermissions_p.h:29:10: fatal error: QtGui/qguiapplication.h: No such file or directory
        29 | #include <QtGui/qguiapplication.h>
           |          ^~~~~~~~~~~~~~~~~~~~~~~~~ 

      Attachments

        1. 661_build_tail.txt
          100 kB
          Johanna Äijälä
        2. 661_config_no_gui.txt
          9 kB
          Johanna Äijälä
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kkohne Kai Köhne
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes