Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.2, 6.6.0 Beta4
-
None
-
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
For Gerrit Dashboard: QTBUG-117451 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
506427,3 | CMake: Link against QuickPrivate if available when type compiling qml | dev | qt/qtdeclarative | Status: ABANDONED | -1 | 0 |
506939,3 | doc: qt_add_qml_module links to qmltc's doc about private headers | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
512718,2 | doc: qt_add_qml_module links to qmltc's doc about private headers | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
512749,2 | doc: qt_add_qml_module links to qmltc's doc about private headers | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |