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

private/qquickevents_p_p.h: No such file or directory when compiling a new Qt Quick Project with QML to C++ Compilation

    XMLWordPrintable

Details

    • f9eabe862 (dev), 412581aeb (6.6), 012fba364 (tqtc/lts-6.5)

    Description

      With Qt Creator 11.0.2 and Qt 6.6.0 Beta 4 (both from the maintenance tool) when creating a new project with the "Qt Quick Application" template (minimum version of Qt 6.2, 6.4 or 6.5 all have the same issue) and adding ENABLE_TYPE_COMPILER to the qt_add_qml_module command, the compilation of the generated main.h corresponding to Main.qml fails.

      Here is the relevant log:

      [10/22 122.0/sec] Compiling Main.qml with qmltc
      [11/22 129.0/sec] Generating .rcc/qmlcache/appuntitled6_Main_qml.cpp
      [12/22 61.8/sec] Generating .qmltc/appuntitled6/moc_main.cpp
      [13/22 62.2/sec] Building CXX object CMakeFiles/appuntitled6.dir/appuntitled6_autogen/mocs_compilation.cpp.o
      [14/22 67.0/sec] Building CXX object CMakeFiles/appuntitled6.dir/.rcc/qrc_qmake_untitled6.cpp.o
      [15/22 71.8/sec] Building CXX object CMakeFiles/appuntitled6.dir/.rcc/qrc_appuntitled6_raw_qml_0.cpp.o
      [16/22 36.7/sec] Building CXX object CMakeFiles/appuntitled6.dir/.qmltc/appuntitled6/moc_main.cpp.o
      FAILED: CMakeFiles/appuntitled6.dir/.qmltc/appuntitled6/moc_main.cpp.o 
      /usr/bin/g++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_OPENGL_LIB -DQT_QMLINTEGRATION_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -I/home/pys/Projects/builds/build-untitled6-Desktop_Qt_6_6_0_GCC_64bit-Debug/appuntitled6_autogen/include -I/home/pys/Projects/untitled6 -I/home/pys/Projects/builds/build-untitled6-Desktop_Qt_6_6_0_GCC_64bit-Debug/.qmltc/appuntitled6 -isystem /home/pys/Qt/6.6.0/gcc_64/include/QtQml/6.6.0 -isystem /home/pys/Qt/6.6.0/gcc_64/include/QtQml/6.6.0/QtQml -isystem /home/pys/Qt/6.6.0/gcc_64/include/QtCore/6.6.0 -isystem /home/pys/Qt/6.6.0/gcc_64/include/QtCore/6.6.0/QtCore -isystem /home/pys/Qt/6.6.0/gcc_64/include/QtCore -isystem /home/pys/Qt/6.6.0/gcc_64/include -isystem /home/pys/Qt/6.6.0/gcc_64/mkspecs/linux-g++ -isystem /home/pys/Qt/6.6.0/gcc_64/include/QtQml -isystem /home/pys/Qt/6.6.0/gcc_64/include/QtQmlIntegration -isystem /home/pys/Qt/6.6.0/gcc_64/include/QtNetwork -isystem /home/pys/Qt/6.6.0/gcc_64/include/QtQuick -isystem /home/pys/Qt/6.6.0/gcc_64/include/QtGui -isystem /home/pys/Qt/6.6.0/gcc_64/include/QtQmlModels -isystem /home/pys/Qt/6.6.0/gcc_64/include/QtOpenGL -DQT_QML_DEBUG -g -fPIC -MD -MT CMakeFiles/appuntitled6.dir/.qmltc/appuntitled6/moc_main.cpp.o -MF CMakeFiles/appuntitled6.dir/.qmltc/appuntitled6/moc_main.cpp.o.d -o CMakeFiles/appuntitled6.dir/.qmltc/appuntitled6/moc_main.cpp.o -c /home/pys/Projects/builds/build-untitled6-Desktop_Qt_6_6_0_GCC_64bit-Debug/.qmltc/appuntitled6/moc_main.cpp
      In file included from /home/pys/Projects/builds/build-untitled6-Desktop_Qt_6_6_0_GCC_64bit-Debug/.qmltc/appuntitled6/moc_main.cpp:9:
      /home/pys/Projects/builds/build-untitled6-Desktop_Qt_6_6_0_GCC_64bit-Debug/.qmltc/appuntitled6/main.h:18:10: fatal error: private/qquickevents_p_p.h: No such file or directory
         18 | #include "private/qquickevents_p_p.h"
            |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      compilation terminated.
      

      system g++ 11.4.0 and bundled CMake 3.24.2 if that matters

      Attachments

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

        Activity

          People

            sami.shalayel Sami Shalayel
            grecko Pierre-Yves Siret
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews