Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-104672

Failed to generate documentation with Qt 6.3.1 for Android

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.3.1
    • Fix Version/s: None
    • Component/s: Build System: CMake
    • Labels:
      None
    • Platform/s:
      Android

      Description

      Attempts to generate documentation with Qt  6.3.1 for Android  end up with the following error:

      _[2/4] cd /home/piotr/devel/automotive/build-qtandroidautomotive/6.3.1/android_x86/src/doc/config && /usr/bin/cmake -E env QT_INSTALL_DOCS="...c -no-link-errors @/home/piotr/devel/automotive/build-qtandroidautomotive/6.3.1/android_x86/src/doc/config/.doc/RelWithDebInfo/includes.txt
      FAILED: src/doc/config/CMakeFiles/prepare_docs_QtAndroidAutomotive /home/piotr/devel/automotive/build-qtandroidautomotive/6.3.1/android_x86/src/doc/config/CMakeFiles/prepare_docs_QtAndroidAutomotive
      cd /home/piotr/devel/automotive/build-qtandroidautomotive/6.3.1/android_x86/src/doc/config && /usr/bin/cmake -E env QT_INSTALL_DOCS="/usr/local/Qt-6.3.1/./doc" QT_VERSION=6.3.0 QT_VER=6.3 QT_VERSION_TAG=630 BUILDDIR=/home/piotr/devel/automotive/build-qtandroidautomotive/6.3.1/android_x86/src/doc/config /home/piotr/QtEnt/6.3.1/gcc_64/bin/qdoc -installdir /./doc -outputdir /home/piotr/devel/automotive/build-qtandroidautomotive/6.3.1/android_x86/./doc/qtandroidautomotive /home/piotr/devel/automotive/tqtc-android-automotive/src/doc/config/qtandroidautomotive.qdocconf -prepare -indexdir /home/piotr/devel/automotive/build-qtandroidautomotive/6.3.1/android_x86/./doc -no-link-errors @/home/piotr/devel/automotive/build-qtandroidautomotive/6.3.1/android_x86/src/doc/config/.doc/RelWithDebInfo/includes.txt
      qt.qdoc: Cannot find index directory: "/home/piotr/devel/automotive/build-qtandroidautomotive/6.3.1/android_x86/./doc"
      /home/piotr/devel/automotive/tqtc-android-automotive/src/doc/config/qtandroidautomotive.qdocconf:1: (qdoc) error: Cannot open file '/usr/local/Qt-6.3.1/./doc/global/qt-module-defaults.qdocconf': No such file or directory
      

      It seems that  qdoc looks for files in /usr/local/Qt-6.3.1/.  This path  can be found in  target.conf files in Qt for Android directories:

      [DevicePaths]
      Prefix=/usr/local/Qt-6.3.1
      [Paths]
      Prefix=../
      HostPrefix=../../gcc_64
      HostData=../android_x86
      Sysroot=
      SysrootifyPrefix=false
      TargetSpec=android-clang
      HostSpec=linux-g++
      Documentation=../../Docs/Qt-6.3.1
      Examples=../../Examples/Qt-6.3.1
      

      The build was configured & launched with following commands:

      > ~/QtEnt/6.3.0/android_x86/bin/qt-cmake -S ../../tqtc-android-automotive/ -B. -GNinja -DANDROID_NDK_ROOT=$NDK_ROOT -DANDROID_SDK_ROOT=$SDK_ROOT
      > ninja docs

      This is a clean install made with MaintenanceTool.

      With version 6.3.0 everything works fine. The target.conf files  look like this:

      [Paths]
      Prefix=../
      HostPrefix=../../gcc_64
      HostData=../android_x86
      Sysroot=
      SysrootifyPrefix=false
      TargetSpec=android-clang
      HostSpec=linux-g++
      Documentation=../../Docs/Qt-6.3.0
      

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              qtbuildsystem Qt Build System Team
              Reporter:
              piotrmi Piotr Mikolajczyk
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes