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 much time will it take to build Qt 5.15.x source package
Forum Updated to NodeBB v4.3 + New Features

How much time will it take to build Qt 5.15.x source package

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
16 Posts 7 Posters 4.9k Views 3 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.
  • R Offline
    R Offline
    Rajdeep100
    wrote on last edited by
    #1

    Hello there,
    This is my first time compiling the source package and it's been over 2hrs and still compiling.
    Anybody knows how much time will it take to complete??

    System Info,
    Memory - 8GB,
    Processor - Intel® Core™ i5-7200U CPU @ 2.50GHz × 4,
    Disk - 240GB SSD,
    OS - Ubuntu 20.04.1 LTS.

    Thank-You for your time!!

    J.HilkJ 1 Reply Last reply
    0
    • R Rajdeep100

      Hello there,
      This is my first time compiling the source package and it's been over 2hrs and still compiling.
      Anybody knows how much time will it take to complete??

      System Info,
      Memory - 8GB,
      Processor - Intel® Core™ i5-7200U CPU @ 2.50GHz × 4,
      Disk - 240GB SSD,
      OS - Ubuntu 20.04.1 LTS.

      Thank-You for your time!!

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @Rajdeep100 hard to tell, especially without us knowing your configure and make call.

      That said, compiling complete Qt without tests and examples takes (for me) somewhere between 2 and 8 hours, depending on OS, target and Host-PC


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      1
      • R Offline
        R Offline
        Rajdeep100
        wrote on last edited by
        #3

        Hey guys,
        The compilation process just got completed after posting this thread!!
        it took exactly 2 hours to build.

        But do you know how do I launch QtCreator from bin folder, there are so many files,

        balsam qmake qmlpreview repc
        canbusutil qml qmlprofiler syncqt.pl
        fixqt4headers.pl qmlcachegen qmlscene tracegen
        meshdebug qmleasing qmltestrunner uic
        moc qmlformat qmltyperegistrar xmlpatterns
        qdbuscpp2xml qmlimportscanner qscxmlc xmlpatternsvalidator
        qdbusxml2cpp qmllint qtwaylandscanner
        qgltf qmlmin qvkgen
        qlalr qmlplugindump rcc

        which one to execute in order to launch qtcreator??
        thank-you for reading my post!!

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

          Hi and welcome to devnet,

          None of them. Qt Creator is a much younger and separate project. If you want to build it you have to clone the corresponding repository.

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

          R 1 Reply Last reply
          1
          • SGaistS SGaist

            Hi and welcome to devnet,

            None of them. Qt Creator is a much younger and separate project. If you want to build it you have to clone the corresponding repository.

            R Offline
            R Offline
            Rajdeep100
            wrote on last edited by Rajdeep100
            #5

            @SGaist So, If I cloned it from GitHub and repeated the whole process again, will there be any file by which I can launch QtCreator?

            Or is there any offline installers for Qt 5.15.1??

            sierdzioS 1 Reply Last reply
            0
            • R Rajdeep100

              @SGaist So, If I cloned it from GitHub and repeated the whole process again, will there be any file by which I can launch QtCreator?

              Or is there any offline installers for Qt 5.15.1??

              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              @Rajdeep100 said in How much time will it take to build Qt 5.15.x source package:

              @SGaist So, If I cloned it from GitHub and repeated the whole process again, will there be any file by which I can launch QtCreator?

              You are compiling Qt. That source code does not contain Qt Creator at all. Qt Creator is a separate project, with separate repository. You can get QtC source code from here

              (Z(:^

              R 1 Reply Last reply
              2
              • R Rajdeep100

                Hey guys,
                The compilation process just got completed after posting this thread!!
                it took exactly 2 hours to build.

                But do you know how do I launch QtCreator from bin folder, there are so many files,

                balsam qmake qmlpreview repc
                canbusutil qml qmlprofiler syncqt.pl
                fixqt4headers.pl qmlcachegen qmlscene tracegen
                meshdebug qmleasing qmltestrunner uic
                moc qmlformat qmltyperegistrar xmlpatterns
                qdbuscpp2xml qmlimportscanner qscxmlc xmlpatternsvalidator
                qdbusxml2cpp qmllint qtwaylandscanner
                qgltf qmlmin qvkgen
                qlalr qmlplugindump rcc

                which one to execute in order to launch qtcreator??
                thank-you for reading my post!!

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Rajdeep100 said in How much time will it take to build Qt 5.15.x source package:

                Hey guys,
                The compilation process just got completed after posting this thread!!
                it took exactly 2 hours to build.

                You do know that you have to give -j <cores> to the make command to use all your cores, do you?

                Regards

                Qt has to stay free or it will die.

                R 1 Reply Last reply
                2
                • aha_1980A aha_1980

                  @Rajdeep100 said in How much time will it take to build Qt 5.15.x source package:

                  Hey guys,
                  The compilation process just got completed after posting this thread!!
                  it took exactly 2 hours to build.

                  You do know that you have to give -j <cores> to the make command to use all your cores, do you?

                  Regards

                  R Offline
                  R Offline
                  Rajdeep100
                  wrote on last edited by
                  #8

                  @aha_1980 Yes I did

                  1 Reply Last reply
                  0
                  • sierdzioS sierdzio

                    @Rajdeep100 said in How much time will it take to build Qt 5.15.x source package:

                    @SGaist So, If I cloned it from GitHub and repeated the whole process again, will there be any file by which I can launch QtCreator?

                    You are compiling Qt. That source code does not contain Qt Creator at all. Qt Creator is a separate project, with separate repository. You can get QtC source code from here

                    R Offline
                    R Offline
                    Rajdeep100
                    wrote on last edited by
                    #9

                    @sierdzio Ohhh, I got it. Thanks!!

                    1 Reply Last reply
                    1
                    • KH-219DesignK Offline
                      KH-219DesignK Offline
                      KH-219Design
                      wrote on last edited by
                      #10

                      @J-Hilk already hinted at the following, but I will state it more concretely...

                      If you do not need every Qt5 library that exists, you can speed this up significantly by only building the subset of libraries you need.

                      I habitually build Qt5 from source using variations of this script: https://github.com/219-design/build_qt_binaries/blob/09ad9369c8ab/script.sh

                      (The script as linked above is hardcoded to build v5.14.0 but that is easy to change.)

                      The script constrains the subset of libraries in two (possibly redundant) ways:

                      First, not all submodules are downloaded:

                      git clone git://code.qt.io/qt/qt5.git qt5_sources
                      cd qt5_sources
                      
                      git checkout v5.14.0
                      git submodule update --init --recursive  \
                          qtbase \
                          qtcharts \
                          qtdeclarative \
                          qtgraphicaleffects \
                          qtimageformats \
                          qtmultimedia \
                          qtquickcontrols \
                          qtquickcontrols2 \
                          qtquicktimeline \
                          qtscript \
                          qtsvg \
                          qttools \
                          qttranslations \
                          qtvirtualkeyboard \
                          qtx11extras \
                          qtxmlpatterns
                      

                      (Refer to: https://github.com/219-design/build_qt_binaries/blob/09ad9369c8ab/script.sh#L34)

                      Second, I pass a number of explicit -skip arguments to configure:

                        ../../qt5_sources/configure \
                            -prefix "${PWD}/../../qt5_${BUILDTYPE}_install" \
                            -opensource -confirm-license \
                            -c++std c++17 \
                            ${CONFIG_ARGS} \
                            -sysroot / \
                            -no-pch \
                            -pkg-config \
                            -qt-libpng \
                            -qt-zlib \
                            -skip qt3d \
                            -skip qtactiveqt \
                            -skip qtandroidextras \
                            -skip qtcanvas3d \
                            -skip qtconnectivity \
                            -skip qtdatavis3d \
                            -skip qtdoc \
                      ....  and so forth .....
                      

                      (Refer to: https://github.com/219-design/build_qt_binaries/blob/09ad9369c8ab/script.sh#L85)

                      I have a similar workstation to yours, and I have been using Ubuntu 18 for most of my builds, and I never wait more than about 30 minutes for a build to finish of my chosen subset of Qt libs.

                      www.219design.com
                      Software | Electrical | Mechanical | Product Design

                      JonBJ 1 Reply Last reply
                      3
                      • KH-219DesignK KH-219Design

                        @J-Hilk already hinted at the following, but I will state it more concretely...

                        If you do not need every Qt5 library that exists, you can speed this up significantly by only building the subset of libraries you need.

                        I habitually build Qt5 from source using variations of this script: https://github.com/219-design/build_qt_binaries/blob/09ad9369c8ab/script.sh

                        (The script as linked above is hardcoded to build v5.14.0 but that is easy to change.)

                        The script constrains the subset of libraries in two (possibly redundant) ways:

                        First, not all submodules are downloaded:

                        git clone git://code.qt.io/qt/qt5.git qt5_sources
                        cd qt5_sources
                        
                        git checkout v5.14.0
                        git submodule update --init --recursive  \
                            qtbase \
                            qtcharts \
                            qtdeclarative \
                            qtgraphicaleffects \
                            qtimageformats \
                            qtmultimedia \
                            qtquickcontrols \
                            qtquickcontrols2 \
                            qtquicktimeline \
                            qtscript \
                            qtsvg \
                            qttools \
                            qttranslations \
                            qtvirtualkeyboard \
                            qtx11extras \
                            qtxmlpatterns
                        

                        (Refer to: https://github.com/219-design/build_qt_binaries/blob/09ad9369c8ab/script.sh#L34)

                        Second, I pass a number of explicit -skip arguments to configure:

                          ../../qt5_sources/configure \
                              -prefix "${PWD}/../../qt5_${BUILDTYPE}_install" \
                              -opensource -confirm-license \
                              -c++std c++17 \
                              ${CONFIG_ARGS} \
                              -sysroot / \
                              -no-pch \
                              -pkg-config \
                              -qt-libpng \
                              -qt-zlib \
                              -skip qt3d \
                              -skip qtactiveqt \
                              -skip qtandroidextras \
                              -skip qtcanvas3d \
                              -skip qtconnectivity \
                              -skip qtdatavis3d \
                              -skip qtdoc \
                        ....  and so forth .....
                        

                        (Refer to: https://github.com/219-design/build_qt_binaries/blob/09ad9369c8ab/script.sh#L85)

                        I have a similar workstation to yours, and I have been using Ubuntu 18 for most of my builds, and I never wait more than about 30 minutes for a build to finish of my chosen subset of Qt libs.

                        JonBJ Offline
                        JonBJ Offline
                        JonB
                        wrote on last edited by JonB
                        #11

                        @KH-219Design said in How much time will it take to build Qt 5.15.x source package:

                        never wait more than about 30 minutes for a build to finish of my chosen subset

                        Given your "30 minutes", do you have any comparison timing if you had not skipped those 30 modules? OOI.

                        KH-219DesignK 1 Reply Last reply
                        0
                        • JonBJ JonB

                          @KH-219Design said in How much time will it take to build Qt 5.15.x source package:

                          never wait more than about 30 minutes for a build to finish of my chosen subset

                          Given your "30 minutes", do you have any comparison timing if you had not skipped those 30 modules? OOI.

                          KH-219DesignK Offline
                          KH-219DesignK Offline
                          KH-219Design
                          wrote on last edited by
                          #12

                          @JonB said in How much time will it take to build Qt 5.15.x source package:

                          @KH-219Design said in How much time will it take to build Qt 5.15.x source package:

                          never wait more than about 30 minutes for a build to finish of my chosen subset

                          Given your "30 minutes", do you have any comparison timing if you had not skipped those 30 modules? OOI.

                          @JonB that's a great question. I don't have such fine-grained info, but it would be fun to measure it sometime. I wonder if anyone has tried to tabulate approximate or relative build time on a library-by-library granularity...

                          www.219design.com
                          Software | Electrical | Mechanical | Product Design

                          JonBJ 1 Reply Last reply
                          0
                          • KH-219DesignK KH-219Design

                            @JonB said in How much time will it take to build Qt 5.15.x source package:

                            @KH-219Design said in How much time will it take to build Qt 5.15.x source package:

                            never wait more than about 30 minutes for a build to finish of my chosen subset

                            Given your "30 minutes", do you have any comparison timing if you had not skipped those 30 modules? OOI.

                            @JonB that's a great question. I don't have such fine-grained info, but it would be fun to measure it sometime. I wonder if anyone has tried to tabulate approximate or relative build time on a library-by-library granularity...

                            JonBJ Offline
                            JonBJ Offline
                            JonB
                            wrote on last edited by
                            #13

                            @KH-219Design
                            I just wanted to know how long a full build would take you in comparison. I have never compiled Qt, partly on the (fairly safe) assumption that it would take me forever... ;-)

                            KH-219DesignK 1 Reply Last reply
                            0
                            • JonBJ JonB

                              @KH-219Design
                              I just wanted to know how long a full build would take you in comparison. I have never compiled Qt, partly on the (fairly safe) assumption that it would take me forever... ;-)

                              KH-219DesignK Offline
                              KH-219DesignK Offline
                              KH-219Design
                              wrote on last edited by
                              #14

                              @JonB well based on what @Rajdeep100 said above, I think it's safe to say it takes no less than 2 full hours :)

                              (But we still don't know if @Rajdeep100 was limiting the quantity of libs in any way.)

                              www.219design.com
                              Software | Electrical | Mechanical | Product Design

                              1 Reply Last reply
                              0
                              • R Offline
                                R Offline
                                Rajdeep100
                                wrote on last edited by
                                #15

                                I'm really tired of compiling it from source, do you know how to setup different repositories for the online Qt installer??

                                aha_1980A 1 Reply Last reply
                                0
                                • R Rajdeep100

                                  I'm really tired of compiling it from source, do you know how to setup different repositories for the online Qt installer??

                                  aha_1980A Offline
                                  aha_1980A Offline
                                  aha_1980
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #16

                                  Hi @Rajdeep100,

                                  please see my answer to your question at https://forum.qt.io/topic/119034/what-is-the-release-date-for-qt-5-15-1-offline-installer-for-linux/4

                                  Qt has to stay free or it will die.

                                  1 Reply Last reply
                                  1

                                  • Login

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