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

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.4k 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.
  • R Offline
    R Offline
    Rajdeep100
    wrote on 16 Sept 2020, 08:22 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!!

    A 1 Reply Last reply 16 Sept 2020, 09:13
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 16 Sept 2020, 08:39 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 16 Sept 2020, 08:43
      1
      • S SGaist
        16 Sept 2020, 08:39

        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 16 Sept 2020, 08:43 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??

        S 1 Reply Last reply 16 Sept 2020, 08:49
        0
        • R Rajdeep100
          16 Sept 2020, 08:43

          @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??

          S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 16 Sept 2020, 08:49 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 16 Sept 2020, 09:42
          2
          • R Rajdeep100
            16 Sept 2020, 08:22

            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!!

            A Offline
            A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 16 Sept 2020, 09:13 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 16 Sept 2020, 09:15
            2
            • A aha_1980
              16 Sept 2020, 09:13

              @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 16 Sept 2020, 09:15 last edited by
              #8

              @aha_1980 Yes I did

              1 Reply Last reply
              0
              • S sierdzio
                16 Sept 2020, 08:49

                @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 16 Sept 2020, 09:42 last edited by
                #9

                @sierdzio Ohhh, I got it. Thanks!!

                1 Reply Last reply
                1
                • K Offline
                  K Offline
                  KH-219Design
                  wrote on 16 Sept 2020, 17:58 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

                  J 1 Reply Last reply 16 Sept 2020, 18:11
                  3
                  • K KH-219Design
                    16 Sept 2020, 17:58

                    @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.

                    J Offline
                    J Offline
                    JonB
                    wrote on 16 Sept 2020, 18:11 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.

                    K 1 Reply Last reply 16 Sept 2020, 18:15
                    0
                    • J JonB
                      16 Sept 2020, 18: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.

                      K Offline
                      K Offline
                      KH-219Design
                      wrote on 16 Sept 2020, 18:15 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

                      J 1 Reply Last reply 16 Sept 2020, 18:19
                      0
                      • K KH-219Design
                        16 Sept 2020, 18:15

                        @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...

                        J Offline
                        J Offline
                        JonB
                        wrote on 16 Sept 2020, 18:19 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... ;-)

                        K 1 Reply Last reply 16 Sept 2020, 18:21
                        0
                        • J JonB
                          16 Sept 2020, 18:19

                          @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... ;-)

                          K Offline
                          K Offline
                          KH-219Design
                          wrote on 16 Sept 2020, 18:21 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 17 Sept 2020, 02:40 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??

                            A 1 Reply Last reply 17 Sept 2020, 12:37
                            0
                            • R Rajdeep100
                              17 Sept 2020, 02:40

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

                              A Offline
                              A Offline
                              aha_1980
                              Lifetime Qt Champion
                              wrote on 17 Sept 2020, 12:37 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

                              12/16

                              16 Sept 2020, 18:15

                              • Login

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