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

qhelpgenerator can't find QSqlDatabase drivers in static builds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.3.1
    • Fix Version/s: 6.4.0 RC1, 6.5.0 Beta1
    • Labels:
      None
    • Environment:
      Windows:
      ------------
      10 19044.1706
      MSVC2022 17.1.3

      Linux:
      -------
      Ubuntu 20.04.4
      Clang 12
    • Platform/s:
      Linux/X11, Windows
    • Commits:
      e5cbbca16a (qt/qttools/dev) b4c51ba393 (qt/qttools/6.3) af4dc27192 (qt/qttools/6.4) b4c51ba393 (qt/tqtc-qttools/6.3) af4dc27192 (qt/tqtc-qttools/6.4) e5cbbca16a (qt/tqtc-qttools/dev)

      Description

      I would like to make use of a static build of qhelpgenerator for easier generation of .qch files in my repositories with CI/CD, so after 6.3.1 released (fixed QTBUG-93238), I tried building static Qt for doc generation purposes again.

      Now the platform plugins are found correctly, but I'm having a different issue. I imagine this may very well affect more than qhelpgenerator, but it was the first to exhibit the problem.

      The executable builds successfully, but when trying to build Qt's documentation, towards the end when qhelpgenerator is used to create the help files a warning is posted from QSqlDatabase:

      QSqlDatabase: QSQLITE driver not loaded
      QSqlDatabase: available drivers:

      followed by the application noting it failed to create the new database:

      Cannot open data base file /home/chris/QtDev/builder/build/doc/qtbase/doc/qtwidgets.qch.

      To be clear, this happens when generating the Qt documentation itself directly after building the required dependencies, so everything is still within the build tree and qhelpgenerator has not been relocated.

      Seems that it isn't linked against the SQL libs correctly? Unless those are still loaded dynamically in static builds and this is a path issue...

      Configuration (Linux):

      -no-prefix
      -release
      -opensource
      -confirm-license
      -nomake
      tests
      -nomake
      examples
      -platform
      linux-clang
      -static
      -submodules
      qtbase,qtimageformats,qtnetworkauth,qtsvg,qtdeclarative,qttools,qtdoc

       

      Log Section of Interest:

      [115/152] cd /home/chris/QtDev/builder/build/doc/qtbase/src/concurrent && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtconcurrent/qtconcurrent.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtconcurrent.qch
      FAILED: qtbase/src/concurrent/CMakeFiles/qch_top_level_docs_Concurrent /home/chris/QtDev/builder/build/doc/qtbase/src/concurrent/CMakeFiles/qch_top_level_docs_Concurrent 
      cd /home/chris/QtDev/builder/build/doc/qtbase/src/concurrent && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtconcurrent/qtconcurrent.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtconcurrent.qch
      QSqlDatabase: QSQLITE driver not loaded
      QSqlDatabase: available drivers: 
      Cannot open data base file /home/chris/QtDev/builder/build/doc/qtbase/doc/qtconcurrent.qch.
      Building up file structure...
      [116/152] cd /home/chris/QtDev/builder/build/doc/qtbase/src/sql && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtsql/qtsql.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtsql.qch
      FAILED: qtbase/src/sql/CMakeFiles/qch_top_level_docs_Sql /home/chris/QtDev/builder/build/doc/qtbase/src/sql/CMakeFiles/qch_top_level_docs_Sql 
      cd /home/chris/QtDev/builder/build/doc/qtbase/src/sql && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtsql/qtsql.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtsql.qch
      QSqlDatabase: QSQLITE driver not loaded
      QSqlDatabase: available drivers: 
      Cannot open data base file /home/chris/QtDev/builder/build/doc/qtbase/doc/qtsql.qch.
      Building up file structure...
      [117/152] cd /home/chris/QtDev/builder/build/doc/qtbase/src/xml && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtxml/qtxml.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtxml.qch
      FAILED: qtbase/src/xml/CMakeFiles/qch_top_level_docs_Xml /home/chris/QtDev/builder/build/doc/qtbase/src/xml/CMakeFiles/qch_top_level_docs_Xml 
      cd /home/chris/QtDev/builder/build/doc/qtbase/src/xml && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtxml/qtxml.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtxml.qch
      QSqlDatabase: QSQLITE driver not loaded
      QSqlDatabase: available drivers: 
      Cannot open data base file /home/chris/QtDev/builder/build/doc/qtbase/doc/qtxml.qch.
      Building up file structure...
      [118/152] cd /home/chris/QtDev/builder/build/doc/qtbase/src/dbus && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtdbus/qtdbus.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtdbus.qch
      FAILED: qtbase/src/dbus/CMakeFiles/qch_top_level_docs_DBus /home/chris/QtDev/builder/build/doc/qtbase/src/dbus/CMakeFiles/qch_top_level_docs_DBus 
      cd /home/chris/QtDev/builder/build/doc/qtbase/src/dbus && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtdbus/qtdbus.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtdbus.qch
      QSqlDatabase: QSQLITE driver not loaded
      QSqlDatabase: available drivers: 
      Cannot open data base file /home/chris/QtDev/builder/build/doc/qtbase/doc/qtdbus.qch.
      Building up file structure...
      [119/152] cd /home/chris/QtDev/builder/build/doc/qtbase/src/opengl && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtopengl/qtopengl.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtopengl.qch
      FAILED: qtbase/src/opengl/CMakeFiles/qch_top_level_docs_OpenGL /home/chris/QtDev/builder/build/doc/qtbase/src/opengl/CMakeFiles/qch_top_level_docs_OpenGL 
      cd /home/chris/QtDev/builder/build/doc/qtbase/src/opengl && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtopengl/qtopengl.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtopengl.qch
      QSqlDatabase: QSQLITE driver not loaded
      QSqlDatabase: available drivers: 
      Cannot open data base file /home/chris/QtDev/builder/build/doc/qtbase/doc/qtopengl.qch.
      Building up file structure...
      [120/152] cd /home/chris/QtDev/builder/build/doc/qtbase/src/network && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtnetwork/qtnetwork.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtnetwork.qch
      FAILED: qtbase/src/network/CMakeFiles/qch_top_level_docs_Network /home/chris/QtDev/builder/build/doc/qtbase/src/network/CMakeFiles/qch_top_level_docs_Network 
      cd /home/chris/QtDev/builder/build/doc/qtbase/src/network && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtnetwork/qtnetwork.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtnetwork.qch
      QSqlDatabase: QSQLITE driver not loaded
      QSqlDatabase: available drivers: 
      Cannot open data base file /home/chris/QtDev/builder/build/doc/qtbase/doc/qtnetwork.qch.
      Building up file structure...
      [121/152] cd /home/chris/QtDev/builder/build/doc/qtbase/src/testlib && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qttestlib/qttestlib.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qttestlib.qch
      FAILED: qtbase/src/testlib/CMakeFiles/qch_top_level_docs_Test /home/chris/QtDev/builder/build/doc/qtbase/src/testlib/CMakeFiles/qch_top_level_docs_Test 
      cd /home/chris/QtDev/builder/build/doc/qtbase/src/testlib && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qttestlib/qttestlib.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qttestlib.qch
      QSqlDatabase: QSQLITE driver not loaded
      QSqlDatabase: available drivers: 
      Cannot open data base file /home/chris/QtDev/builder/build/doc/qtbase/doc/qttestlib.qch.
      Building up file structure...
      [122/152] cd /home/chris/QtDev/builder/build/doc/qtbase/src/gui && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtgui/qtgui.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtgui.qch
      FAILED: qtbase/src/gui/CMakeFiles/qch_top_level_docs_Gui /home/chris/QtDev/builder/build/doc/qtbase/src/gui/CMakeFiles/qch_top_level_docs_Gui 
      cd /home/chris/QtDev/builder/build/doc/qtbase/src/gui && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtgui/qtgui.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtgui.qch
      /home/chris/QtDev/builder/build/doc/qtbase/doc/qtgui/qtgui.qhp:4981: Missing attribute in <keyword name="qHash">.
      QSqlDatabase: QSQLITE driver not loaded
      QSqlDatabase: available drivers: 
      Cannot open data base file /home/chris/QtDev/builder/build/doc/qtbase/doc/qtgui.qch.
      Building up file structure...
      [123/152] cd /home/chris/QtDev/builder/build/doc/qtbase/src/widgets && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtwidgets/qtwidgets.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtwidgets.qch
      FAILED: qtbase/src/widgets/CMakeFiles/qch_top_level_docs_Widgets /home/chris/QtDev/builder/build/doc/qtbase/src/widgets/CMakeFiles/qch_top_level_docs_Widgets 
      cd /home/chris/QtDev/builder/build/doc/qtbase/src/widgets && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtwidgets/qtwidgets.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtwidgets.qch
      QSqlDatabase: QSQLITE driver not loaded
      QSqlDatabase: available drivers: 
      Cannot open data base file /home/chris/QtDev/builder/build/doc/qtbase/doc/qtwidgets.qch.
      Building up file structure...
      [124/152] cd /home/chris/QtDev/builder/build/doc/qtbase/src/corelib && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtcore/qtcore.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtcore.qch
      FAILED: qtbase/src/corelib/CMakeFiles/qch_top_level_docs_Core /home/chris/QtDev/builder/build/doc/qtbase/src/corelib/CMakeFiles/qch_top_level_docs_Core 
      cd /home/chris/QtDev/builder/build/doc/qtbase/src/corelib && /home/chris/QtDev/builder/build/doc/qtbase/./libexec/qhelpgenerator /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtcore/qtcore.qhp -o /home/chris/QtDev/builder/build/doc/qtbase/./doc/qtcore.qch
      /home/chris/QtDev/builder/build/doc/qtbase/doc/qtcore/qtcore.qhp:1018: Missing attribute in <keyword name="MetaObjectFlags">.
      /home/chris/QtDev/builder/build/doc/qtbase/doc/qtcore/qtcore.qhp:7814: Missing attribute in <keyword name="operator+=">.
      QSqlDatabase: QSQLITE driver not loaded
      QSqlDatabase: available drivers: 
      Cannot open data base file /home/chris/QtDev/builder/build/doc/qtbase/doc/qtcore.qch.
      Building up file structure...
      ninja: build stopped: subcommand failed.

      This happens for me exactly the same way under Windows and Ubuntu, aside from the obvious minor configure command differences.

      The attached full build log is of my attempt on Ubuntu. As noted, I do not believe the Windows attempt differs significantly.

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-104490
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              jbornema Joerg Bornemann
              Reporter:
              oblivioncth Chris Heimlich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There is 1 open Gerrit change