11:23:03: Running steps for project sensorsdocsnippet... 11:23:03: Starting: "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" --build C:/dev/qt/dev/src/qtscxml/src/scxml/doc/snippets/build/ShortName-Debug --target all [1/4 20.8/sec] Automatic MOC and UIC for target scxmldocsnippets FAILED: scxmldocsnippets_autogen/timestamp scxmldocsnippets_autogen/mocs_compilation.cpp C:/dev/qt/dev/src/qtscxml/src/scxml/doc/snippets/build/ShortName-Debug/scxmldocsnippets_autogen/timestamp C:/dev/qt/dev/src/qtscxml/src/scxml/doc/snippets/build/ShortName-Debug/scxmldocsnippets_autogen/mocs_compilation.cpp C:\WINDOWS\system32\cmd.exe /C "cd /D C:\dev\qt\dev\src\qtscxml\src\scxml\doc\snippets\build\ShortName-Debug && "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E cmake_autogen C:/dev/qt/dev/src/qtscxml/src/scxml/doc/snippets/build/ShortName-Debug/CMakeFiles/scxmldocsnippets_autogen.dir/AutogenInfo.json Debug && "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E touch C:/dev/qt/dev/src/qtscxml/src/scxml/doc/snippets/build/ShortName-Debug/scxmldocsnippets_autogen/timestamp && "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E cmake_transform_depfile Ninja gccdepfile C:/dev/qt/dev/src/qtscxml/src/scxml/doc/snippets C:/dev/qt/dev/src/qtscxml/src/scxml/doc/snippets C:/dev/qt/dev/src/qtscxml/src/scxml/doc/snippets/build/ShortName-Debug C:/dev/qt/dev/src/qtscxml/src/scxml/doc/snippets/build/ShortName-Debug C:/dev/qt/dev/src/qtscxml/src/scxml/doc/snippets/build/ShortName-Debug/scxmldocsnippets_autogen/deps C:/dev/qt/dev/src/qtscxml/src/scxml/doc/snippets/build/ShortName-Debug/CMakeFiles/d/25842b7c86b98c7251d2a2ffe91704053bcf2b536abddfff2ce59fab3777e978.d" AutoMoc error ------------- "SRC:/code/main.cpp" contains a "Q_OBJECT" macro, but does not include "main.moc"! Consider to - add #include "main.moc" - enable SKIP_AUTOMOC for this file ninja: build stopped: subcommand failed. 11:23:03: The process "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" exited with code 1. Error while building/deploying project sensorsdocsnippet (kit: Desktop Qt 6.8.0 MSVC2022 64bit (2)) When executing step "Build" 11:23:03: Elapsed time: 00:00.