Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.7.0 Beta1
-
None
-
Windows 10 with MSVC 2019.
-
-
02a556674 (dev), 4b662e9a9 (6.7), 8c11609f4 (6.6), b4f4ad71e (tqtc/lts-6.5)
Description
When qtbase is configured using a Qt pkg, the QT_INSTALL_DOCS path is configured without considering the QT_HOST_PATH CMake variable. This breaks the docs build because the qdocconf for most of the modules depend on a global config, which is accessed using the QT_INSTALL_DOCS variable.
For example, after configuring qtbase for documentation-only build as per the instructions in https://wiki.qt.io/Qt_Build_System_Glossary#Documentation-only_Build , if I try to run "ninja html_docs_Core" I run into the following error:
cmd.exe /C "cd /D C:\gitclones\_qt5\qtbase\doconly-build\src\corelib && "C:\Program Files\CMake\bin\cmake.exe" -E env QT_INSTALL_DOCS="C:/Qt6/6.7.0/doc" QT_VERSION=6.7.0 QT_VER=6.7 QT_VERSION_TAG=670 BUILDDIR=C:/gitclones/_qt5/qtbase/doconly-build/src/corelib C:/Qt6/6.7.0/msvc2019_64/bin/qdoc.exe -installdir /doc -outputdir C:/gitclones/_qt5/qtbase/doconly-build/doc/qtcore C:/gitclones/_qt5/qtbase/src/corelib/doc/qtcore.qdocconf -prepare -indexdir C:/gitclones/_qt5/qtbase/doconly-build/doc -no-link-errors @C:/gitclones/_qt5/qtbase/doconly-build/src/corelib/.doc/Release/includes.txt" C:/gitclones/_qt5/qtbase/src/corelib/doc/qtcore.qdocconf:1: (qdoc) error: Cannot open file 'C:/Qt6/6.7.0/doc/global/qt-module-defaults.qdocconf': The system cannot find the path specified. Cannot open file 'C:/Qt6/6.7.0/doc/global/qt-module-defaults.qdocconf': The system cannot find the path specified.