Building docs failed
-
More in the Qt 6.9.0 build saga... after successfully building and installing qt 6.9.0, I went to build the docs (64 bit only) :
cmake ..\qt-everywhere-src-6.9.0 -G"Ninja Multi-Config" -DQT_HOST_PATH=C:\Qt\6.9.0-x64 -DQT_NO_PACKAGE_VERSION_CHECK=TRUE -DQT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING=TRUE
ninja docs
But this fails with:
C:\Qt\build_qt690_x64>ninja docs
[251/898] cmd.exe /C "cd /D C:\Qt\build_qt690_x64\qtbase\src\3rdparty\freety...c/3rdparty/freetype/include C:/Qt/build_qt690_x64/qtbase/include/QtFreetype
FAILED: qtbase/src/3rdparty/freetype/CMakeFiles/FreetypePrivate_sync_all_public_headers-Release C:/Qt/build_qt690_x64/qtbase/src/3rdparty/freetype/CMakeFiles/FreetypePrivate_sync_all_public_headers-Release
cmd.exe /C "cd /D C:\Qt\build_qt690_x64\qtbase\src\3rdparty\freetype && C:\Qt\build_qt690_x64\qtbase\bin\syncqt.exe @C:/Qt/build_qt690_x64/qtbase/src/3rdparty/freetype/FreetypePrivate_syncqt_all_args && "C:\Program Files\CMake\bin\cmake.exe" -E copy_directory C:/Qt/qt-everywhere-src-6.9.0/qtbase/src/3rdparty/freetype/include C:/Qt/build_qt690_x64/qtbase/include/QtFreetype"
Error copying directory from "C:/Qt/qt-everywhere-src-6.9.0/qtbase/src/3rdparty/freetype/include" to "C:/Qt/build_qt690_x64/qtbase/include/QtFreetype".
[300/898] cmd.exe /C "cd /D C:\Qt\build_qt690_x64\qtmultimedia\src\multimedi...:/Qt/build_qt690_x64/qtmultimedia/src/multimedia/Multimedia_syncqt_all_args
ninja: build stopped: subcommand failed.Now config.summary tells me I have Freetype (but not using system Freetype), and syncqt.exe exists, what could be wrong?
-
I tried giving the cmd it failed on manually:
cmd.exe /C "cd /D C:\Qt\build_qt690_x64\qtbase\src\3rdparty\freetype && C:\Qt\build_qt690_x64\qtbase\bin\syncqt.exe @C:/Qt/build_qt690_x64/qtbase/src/3rdparty/freetype/FreetypePrivate_syncqt_all_args && "C:\Program Files\CMake\bin\cmake.exe" -E copy_directory C:/Qt/qt-everywhere-src-6.9.0/qtbase/src/3rdparty/freetype/include C:/Qt/build_qt690_x64/qtbase/include/QtFreetype"
and it seemed to complete that step, but at the end it said ninja failed.
-
After a bit more re-trying the 'ninja docs' to repeat building the docs, and checking more errors (which seem to be when trying to copy certain files - a permission error, even though the target was empty and a writeable directory) I have got it to finish.
It does seem that the doc building process is very unreliable (I could think of stronger words...) as it seems to fail with every new version.
-
Try with 'ninja - j1' to avoid concurrent write access to the headers which are getting installed. Windows doesn't like this.