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. How to configure only what's necessary for a specific module.

How to configure only what's necessary for a specific module.

Scheduled Pinned Locked Moved Solved Installation and Deployment
10 Posts 3 Posters 1.5k 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.
  • U Offline
    U Offline
    UebelAndre
    wrote on last edited by
    #1

    If I wanted to only build say, QtQml, but I have the entire qt (5.14) source code, what flags can I pass to the configure script to have nmake only produce what's necessary for QtQml?

    I'm also confused as to how I identify what modules produce what libraries. This was particularly confusing with QtGui, I think it's the QtBase module that produces it, but am still not sure. Where can I find this information?

    1 Reply Last reply
    0
    • SGaistS SGaist

      It's in the dev branch.

      By the way, github is only a mirror. The code resides at https://code.qt.io

      U Offline
      U Offline
      UebelAndre
      wrote on last edited by
      #9

      @SGaist Ah ok, so to sum it all up.

      • In order to identify what module will build which specific library, you should check the dev branches on https://code.qt.io/ or inspect the source code of the module
      • In order to build a specific module, you have to either use the configure/configure.bat scripts and pass -skip for every module except the ones you want. From there running make && make install will build the desired modules
        • Additionally, you could run the configure script with no -skip arguments and run make module-<name> && make module-<name>-install_subtargets to build the desired modules.

      Is that correct?

      1 Reply Last reply
      0
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #2

        You can create a module (and it's dependencies) by calling 'make module-<module-name>' (e.g. make module-qtmultimedia)

        Where can I find this information?

        By looking into the sources.

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

        U 1 Reply Last reply
        1
        • U Offline
          U Offline
          UebelAndre
          wrote on last edited by
          #3
          This post is deleted!
          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #4

            Hi,

            In the dev branch you have the information in the dependencies.yaml file. This one is for the QtDeclarative module.

            You have the --skip option to remove modules from the build list.

            Otherwise, you can start with only qtbase and then manually build the modules you need.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1
            • Christian EhrlicherC Christian Ehrlicher

              You can create a module (and it's dependencies) by calling 'make module-<module-name>' (e.g. make module-qtmultimedia)

              Where can I find this information?

              By looking into the sources.

              U Offline
              U Offline
              UebelAndre
              wrote on last edited by UebelAndre
              #5

              @Christian-Ehrlicher But QtQml and QtGui aren't modules. Is there no way to figure out what will produce those libraries other than digging through source code?

              Also tagging @SGaist

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #6

                qtbase provides the essential modules like QtCore, QtGui etc.

                Most of the other modules provide the modules matching their name with a couple of exceptions like qtdeclarative which provides QtQML.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                U 1 Reply Last reply
                1
                • SGaistS SGaist

                  qtbase provides the essential modules like QtCore, QtGui etc.

                  Most of the other modules provide the modules matching their name with a couple of exceptions like qtdeclarative which provides QtQML.

                  U Offline
                  U Offline
                  UebelAndre
                  wrote on last edited by
                  #7

                  @SGaist Interesting, I'm not seeing any dependencies.yaml files in any of the modules in https://github.com/qt/qt5 Is there something that generates those?

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #8

                    It's in the dev branch.

                    By the way, github is only a mirror. The code resides at https://code.qt.io

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    U 1 Reply Last reply
                    1
                    • SGaistS SGaist

                      It's in the dev branch.

                      By the way, github is only a mirror. The code resides at https://code.qt.io

                      U Offline
                      U Offline
                      UebelAndre
                      wrote on last edited by
                      #9

                      @SGaist Ah ok, so to sum it all up.

                      • In order to identify what module will build which specific library, you should check the dev branches on https://code.qt.io/ or inspect the source code of the module
                      • In order to build a specific module, you have to either use the configure/configure.bat scripts and pass -skip for every module except the ones you want. From there running make && make install will build the desired modules
                        • Additionally, you could run the configure script with no -skip arguments and run make module-<name> && make module-<name>-install_subtargets to build the desired modules.

                      Is that correct?

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #10

                        The information is more clearly available now with the dev branch (which is Qt 6 development).

                        A third option is to build qtbase first and then the other modules.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        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