Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building docs failed
Forum Updated to NodeBB v4.3 + New Features

Building docs failed

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 2 Posters 85 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KeithS
    wrote on 24 Apr 2025, 09:00 last edited by
    #1

    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?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      KeithS
      wrote on 24 Apr 2025, 09:36 last edited by KeithS
      #2

      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.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        KeithS
        wrote on 24 Apr 2025, 11:00 last edited by
        #3

        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.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 24 Apr 2025, 11:06 last edited by Christian Ehrlicher
          #4

          Try with 'ninja - j1' to avoid concurrent write access to the headers which are getting installed. Windows doesn't like this.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • K Offline
            K Offline
            KeithS
            wrote on 24 Apr 2025, 12:59 last edited by
            #5

            That could be it... I'll make a change in the build script

            1 Reply Last reply
            0

            5/5

            24 Apr 2025, 12:59

            • Login

            • Login or register to search.
            5 out of 5
            • First post
              5/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved