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 5.0k 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 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