Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. What is the minimal approach to build only qhelpgenerator from source (5.15)?
Forum Updated to NodeBB v4.3 + New Features

What is the minimal approach to build only qhelpgenerator from source (5.15)?

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 4 Posters 763 Views 2 Watching
  • 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.
  • D Offline
    D Offline
    devjb
    wrote on last edited by
    #1

    Hi,

    I am going crazy while trying to build the qhelpgenerator binary from source.

    I build Qt from source inside a docker image to use as build environment in my ci. The configuration that I used for 3 years was reduced to increase build time and produce everything I need for my environment:

    ../configure -nomake examples -no-gui -no-eglfs -skip wayland -skip qt3d -skip qtquick3d -skip webview -skip qtwebengine -opensource -confirm-license 
    

    That build takes my ci about 12 minutes to finish.

    When I use that resulting environment to build my application code, I get a set of code documentation from doxygen which provides a *.qhp file which I then need to pass through qhelpgenerator to finally get a qhc file which I then can load in qtcreator.

    However, the qhelpgenerator tool is not buiilt using the above configuration.

    From all my findings in the last few days I conclude that it is apparently not possible to get a qhelpgenerator binary that matches my environment unless I omit the no-gui option when I configure the build.

    I need to build qtbase with all the gui overhead to be able to build qt assistant which then gives me a qhelpgenerator binary.

    The issue with that is that the build takes really long and produces a whole lot of unneeded libs and binaries.

    So I am looking for a solution how to get qhelpgenerator built with minimal dependencies.

    Any tips how to achieve that?

    C 1 Reply Last reply
    0
    • jeremy_kJ Offline
      jeremy_kJ Offline
      jeremy_k
      wrote on last edited by
      #3

      The qhelpgenerator output isn't specific to a particular Qt platform. I also haven't seen any problems using an earlier 5.15.x build with later 5.15.x QHelpEngine runtimes. My solution has been to create a static build, and copy the executable to the build system.

      Asking a question about code? http://eel.is/iso-c++/testcase/

      1 Reply Last reply
      0
      • D devjb

        Hi,

        I am going crazy while trying to build the qhelpgenerator binary from source.

        I build Qt from source inside a docker image to use as build environment in my ci. The configuration that I used for 3 years was reduced to increase build time and produce everything I need for my environment:

        ../configure -nomake examples -no-gui -no-eglfs -skip wayland -skip qt3d -skip qtquick3d -skip webview -skip qtwebengine -opensource -confirm-license 
        

        That build takes my ci about 12 minutes to finish.

        When I use that resulting environment to build my application code, I get a set of code documentation from doxygen which provides a *.qhp file which I then need to pass through qhelpgenerator to finally get a qhc file which I then can load in qtcreator.

        However, the qhelpgenerator tool is not buiilt using the above configuration.

        From all my findings in the last few days I conclude that it is apparently not possible to get a qhelpgenerator binary that matches my environment unless I omit the no-gui option when I configure the build.

        I need to build qtbase with all the gui overhead to be able to build qt assistant which then gives me a qhelpgenerator binary.

        The issue with that is that the build takes really long and produces a whole lot of unneeded libs and binaries.

        So I am looking for a solution how to get qhelpgenerator built with minimal dependencies.

        Any tips how to achieve that?

        C Offline
        C Offline
        ChrisW67
        wrote on last edited by
        #2

        @devjb qhelpgenerator is built with assistant. Both assistant and qhelpgenerator depend on help which, in turn, depends on the Qt gui and widgets modules.

        So, in short, you cannot without hacking on Qt sources. I don't see the point anyway; you are saving, say, a few minutes every few months when Qt is updated.

        D 1 Reply Last reply
        0
        • jeremy_kJ Offline
          jeremy_kJ Offline
          jeremy_k
          wrote on last edited by
          #3

          The qhelpgenerator output isn't specific to a particular Qt platform. I also haven't seen any problems using an earlier 5.15.x build with later 5.15.x QHelpEngine runtimes. My solution has been to create a static build, and copy the executable to the build system.

          Asking a question about code? http://eel.is/iso-c++/testcase/

          1 Reply Last reply
          0
          • C ChrisW67

            @devjb qhelpgenerator is built with assistant. Both assistant and qhelpgenerator depend on help which, in turn, depends on the Qt gui and widgets modules.

            So, in short, you cannot without hacking on Qt sources. I don't see the point anyway; you are saving, say, a few minutes every few months when Qt is updated.

            D Offline
            D Offline
            devjb
            wrote on last edited by devjb
            #4

            @ChrisW67

            I am more experiencing an increase of two hours in build time than just a few minutes. And that is with 20 parallel jobs.

            I would not care about a few minutes.

            Anyway, I now for the sake of simplicity went by installing the qhelpgenerator binary standalone from the base systems package management and use that instead.

            Similar to using @jeremy_k approach.

            Christian EhrlicherC 1 Reply Last reply
            0
            • D devjb has marked this topic as solved on
            • D devjb has marked this topic as solved on
            • D devjb

              @ChrisW67

              I am more experiencing an increase of two hours in build time than just a few minutes. And that is with 20 parallel jobs.

              I would not care about a few minutes.

              Anyway, I now for the sake of simplicity went by installing the qhelpgenerator binary standalone from the base systems package management and use that instead.

              Similar to using @jeremy_k approach.

              Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #5

              I don't understand why someone has to recompile Qt everytime he wants to compile it's own application though.

              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
              • D Offline
                D Offline
                devjb
                wrote on last edited by
                #6

                That's not the case here. Qt is only rebuilt wenn the container it lives in is updated.

                1 Reply Last reply
                0

                • Login

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