Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. Little tipp - for speeding up the build process in QtCreator
Qt 6.11 is out! See what's new in the release blog

Little tipp - for speeding up the build process in QtCreator

Scheduled Pinned Locked Moved The Lounge
7 Posts 5 Posters 7.9k Views 1 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.
  • B Offline
    B Offline
    broadpeak
    wrote on last edited by
    #1

    I've heard a little trick:
    In QtCreator load your project, select the "Projects" button on the left. Build settings dialog is up. See Build Steps, select "Make:" Details. In Make arguments put a "-j".
    You'll see something like this: "Make: mingw32-make.exe -j in C:\Projects...yourproject..."
    This tells the make, that use ALL of the processor in a multiprocessor machine (my machine has 4 processor).
    In my machine the "Rebuild all" process is significantly speeder than before :)

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Interesting. I do know and use -j but always specify number of cores myself. Does it detect HyperThreading "cores" as well?

      (Z(:^

      1 Reply Last reply
      0
      • B Offline
        B Offline
        broadpeak
        wrote on last edited by
        #3

        [quote author="sierdzio" date="1352207485"]Does it detect HyperThreading "cores" as well?[/quote]

        Yes.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Hah, cool! Then I shall stop using custom core count at once :D

          (Z(:^

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tomma
            wrote on last edited by
            #5

            With 4 core i7 i use 16 jobs usually, but also specify -l10 to restrict new jobs if load average is more than 10.

            You should be careful with -j without argument. Atleast with GNU Make -j0 and -j without arguments means there is no limit for jobs.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              lgeyer
              wrote on last edited by
              #6

              Please be aware that parallel building can and will cause problems, above all on Windows (with mingw32-make), and it should be seen as somewhat experimental.

              For example building Qt5 using <code>-j</code> will result in a quite unstable build process, breaking for no apparent reason, mostly because make didn't get the build order right again.

              So if you are running into strange build problems try removing <code>-j</code>.

              And be warned that the rest of resource utilization works quite well; so your workstation might be rendered unusable during build - so depending on the size of your project your coffee consumption might dramatically increase ;-)

              1 Reply Last reply
              0
              • T Offline
                T Offline
                Traxx
                wrote on last edited by
                #7

                The "j" argument really work well. In my old netbook,compiling a symbian app used to take 10minutes. Now with desktop i5-4460,it only take 15second. Such a HUGE difference.

                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