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. Slow Build time
Forum Updated to NodeBB v4.3 + New Features

Slow Build time

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
18 Posts 4 Posters 2.4k 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.
  • T Offline
    T Offline
    Thembalami Msimango
    wrote on last edited by
    #1

    I am using Qt 5.15.0 and Mingw8.1.0 on my windows i3 4gb ram pc and its taking a very long time to build, I have used CLion and VScode before and they never took this long please help.

    jsulmJ 1 Reply Last reply
    0
    • T Thembalami Msimango

      I am using Qt 5.15.0 and Mingw8.1.0 on my windows i3 4gb ram pc and its taking a very long time to build, I have used CLion and VScode before and they never took this long please help.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Thembalami-Msimango Please provide more information:

      • How big is the code base you're building?
      • How long is "very long"?
      • Did you build same code with CLion and VScode?
      • Did you use same compiler in CLion and VScode?
      • What buils swystem do you use (qmake, CMake, ...)?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      T 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Thembalami-Msimango Please provide more information:

        • How big is the code base you're building?
        • How long is "very long"?
        • Did you build same code with CLion and VScode?
        • Did you use same compiler in CLion and VScode?
        • What buils swystem do you use (qmake, CMake, ...)?
        T Offline
        T Offline
        Thembalami Msimango
        wrote on last edited by
        #3

        @jsulm the code is not that long, the compiler is the same as of CLion and VScode and I'm using qmake (its just an intro. to my intro. to data structures and algorithms class.......we were just unit testing)

        jsulmJ 1 Reply Last reply
        0
        • T Thembalami Msimango

          @jsulm the code is not that long, the compiler is the same as of CLion and VScode and I'm using qmake (its just an intro. to my intro. to data structures and algorithms class.......we were just unit testing)

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Thembalami-Msimango Interesting. How much longer is the build time compared to CLion and VScode?
          Also, do you build in QtCreator or in a terminal?
          Did you also try to disable anti-virus software?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          T 1 Reply Last reply
          1
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi
            Newer QCreators should automatically add the -j switch to make it use all cores.
            Have a look when you compile with the fast one versus slow one see the sam number of cores in being used in each case.

            T 1 Reply Last reply
            1
            • jsulmJ jsulm

              @Thembalami-Msimango Interesting. How much longer is the build time compared to CLion and VScode?
              Also, do you build in QtCreator or in a terminal?
              Did you also try to disable anti-virus software?

              T Offline
              T Offline
              Thembalami Msimango
              wrote on last edited by
              #6

              @jsulm I build in Qt Creator, and it takes a really long time I literally have to wait some time for it to complete.....and I dont have antivirus

              1 Reply Last reply
              0
              • mrjjM mrjj

                Hi
                Newer QCreators should automatically add the -j switch to make it use all cores.
                Have a look when you compile with the fast one versus slow one see the sam number of cores in being used in each case.

                T Offline
                T Offline
                Thembalami Msimango
                wrote on last edited by
                #7

                @mrjj I don't understand this😅

                mrjjM 1 Reply Last reply
                0
                • T Thembalami Msimango

                  @mrjj I don't understand this😅

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Thembalami-Msimango

                  Look in task manager when you compile

                  alt text

                  Is all your cores fully used?

                  T 1 Reply Last reply
                  0
                  • mrjjM mrjj

                    @Thembalami-Msimango

                    Look in task manager when you compile

                    alt text

                    Is all your cores fully used?

                    T Offline
                    T Offline
                    Thembalami Msimango
                    wrote on last edited by
                    #9

                    @mrjj Screenshot (4).png mine has 2 cores but I think its showing only one when its like this

                    jsulmJ 2 Replies Last reply
                    0
                    • T Thembalami Msimango

                      @mrjj Screenshot (4).png mine has 2 cores but I think its showing only one when its like this

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @Thembalami-Msimango Right click on the graph and select "Logical processors" (or whatever the english text is).

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      1
                      • T Thembalami Msimango

                        @mrjj Screenshot (4).png mine has 2 cores but I think its showing only one when its like this

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @Thembalami-Msimango Go to Project settings ->Build -> Build steps and check what is set in "Parallel jobs" (it should be the number of logical cores of your CPU).

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        2
                        • T Offline
                          T Offline
                          Thembalami Msimango
                          wrote on last edited by Thembalami Msimango
                          #12

                          Screenshot (5).png

                          I am having trouble understanding what u said there your phrasing knocked me out😅

                          but there is no parallel jobs option or anything here @jsulm

                          jsulmJ 1 Reply Last reply
                          0
                          • T Thembalami Msimango

                            Screenshot (5).png

                            I am having trouble understanding what u said there your phrasing knocked me out😅

                            but there is no parallel jobs option or anything here @jsulm

                            jsulmJ Offline
                            jsulmJ Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            @Thembalami-Msimango said in Slow Build time:

                            but there is no parallel jobs option or anything here

                            There is, you need to expand "Details".
                            But you can already see "-j4" which means 4 build processes are used, so looks good.

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

                            T 1 Reply Last reply
                            1
                            • jsulmJ jsulm

                              @Thembalami-Msimango said in Slow Build time:

                              but there is no parallel jobs option or anything here

                              There is, you need to expand "Details".
                              But you can already see "-j4" which means 4 build processes are used, so looks good.

                              T Offline
                              T Offline
                              Thembalami Msimango
                              wrote on last edited by
                              #14

                              @jsulm Eish ohk I see, I guess I will have to switch to a different IDE since this one seems to have problems beyond reach, thank you

                              jsulmJ 1 Reply Last reply
                              0
                              • T Thembalami Msimango

                                @jsulm Eish ohk I see, I guess I will have to switch to a different IDE since this one seems to have problems beyond reach, thank you

                                jsulmJ Offline
                                jsulmJ Offline
                                jsulm
                                Lifetime Qt Champion
                                wrote on last edited by
                                #15

                                @Thembalami-Msimango The IDE is most probably not the problem here. QtCreator simply calls qmake and then make. You could try to build manually in a terminal to see whether it is also slow or not.

                                https://forum.qt.io/topic/113070/qt-code-of-conduct

                                T 1 Reply Last reply
                                3
                                • jsulmJ jsulm

                                  @Thembalami-Msimango The IDE is most probably not the problem here. QtCreator simply calls qmake and then make. You could try to build manually in a terminal to see whether it is also slow or not.

                                  T Offline
                                  T Offline
                                  Thembalami Msimango
                                  wrote on last edited by
                                  #16

                                  @jsulm problem is I don't know how to build on terminal...and my lecturer was building on terminal but he is using UBUNTU......is there a tutorial maybe on how to build on terminal

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

                                    If the course instructor is using Ubuntu, then (despite the overhead of installing extra tools), you might find it simplest to:

                                    • install VirtualBox
                                    • create an Ubuntu VM
                                    • use qmake in a terminal window inside your Ubuntu VM

                                    Hopefully in this way you can eliminate any discrepancy between the instructor's procedure and your own, and maximize chances of success (with success being defined here as "replicating whatever the instructor is doing without errors").

                                    I would also recommend matching the exact Ubuntu version preferred by the instructor, and the exact Qt version.

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

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

                                      I should have also mentioned, for completeness: I 100% agree with @jsulm 's hypothesis that "The IDE is most probably not the problem here"

                                      However, the set of possibilities that contains the actual problem could still be a very large set (possibly unbounded?).

                                      Therefore, if you are under a deadline for coursework, that is why I recommend just sticking verbatim to whatever the instructor is doing.

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

                                      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