Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
6.0.0
-
Windows 10 20H2
CMake 3.18.2
Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29112 for x64
Description
When building with:
configure -cmake -debug-and-release -developer-build -confirm-license -opensource -shared -force-debug-info -optimized-tools -no-icu -opengl desktop -make tools -nomake examples -nomake tests -skip qt3d -skip qtandroidextras -skip qtdatavis3d -skip qtgamepad -skip qtmacextras -skip qtnetworkauth -skip qtpurchasing -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtspeech -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebglplugin -skip qtwebsockets -skip qtwebview -skip qtx11extras -skip qtwebengine -skip qtdoc -platform win32-msvc -prefix D:\Qt\Qt6.0.0
The build immediately fails with:
[2/8643] Automatic MOC for target DBus FAILED: qtbase/src/dbus/DBus_autogen/timestamp cmd.exe /C "cd /D D:\Dev\Github\Qt6\qtbase\src\dbus && "C:\Program Files\CMake\bin\cmake.exe" -E cmake_autogen D:/Dev/Github/Qt6/qtbase/src/dbus/CMakeFiles/DBus_autogen.dir/AutogenInfo.json Debug && "C:\Program Files\CMake\bin\cmake.exe" -E cmake_autogen D:/Dev/Github/Qt6/qtbase/src/dbus/CMakeFiles/DBus_autogen.dir/AutogenInfo.json Release && "C:\Program Files\CMake\bin\cmake.exe" -E touch D:/Dev/Github/Qt6/qtbase/src/dbus/DBus_autogen/timestamp"AutoGen error ------------- Info error in info file "D:/Dev/Github/Qt6/qtbase/src/dbus/CMakeFiles/DBus_autogen.dir/AutogenInfo.json": The moc executable "SRC:/qtbase/bin/moc.exe" does not exist.[8/8643] Automatic MOC for target BundledLibpng FAILED: qtbase/src/3rdparty/libpng/BundledLibpng_autogen/timestamp cmd.exe /C "cd /D D:\Dev\Github\Qt6\qtbase\src\3rdparty\libpng && "C:\Program Files\CMake\bin\cmake.exe" -E cmake_autogen D:/Dev/Github/Qt6/qtbase/src/3rdparty/libpng/CMakeFiles/BundledLibpng_autogen.dir/AutogenInfo.json Debug && "C:\Program Files\CMake\bin\cmake.exe" -E cmake_autogen D:/Dev/Github/Qt6/qtbase/src/3rdparty/libpng/CMakeFiles/BundledLibpng_autogen.dir/AutogenInfo.json Release && "C:\Program Files\CMake\bin\cmake.exe" -E touch D:/Dev/Github/Qt6/qtbase/src/3rdparty/libpng/BundledLibpng_autogen/timestamp"
I tried removing -force-debug-info and -optimized-tools, but the error still occurs. The only way I got it to start building was to use just -release.
My 50 cents is that when doing multi-config, the build is building Debug targets first, but at that point MOC, UIC and RCC are not built yet.
Built from commit efd24d2c41b7d8e07941133633b1580851761bb0 in the dev branch.
See attached files for configure output.