Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Speeding up compile time with mingw on win7 QT 4.8

Speeding up compile time with mingw on win7 QT 4.8

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 2.7k 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.
  • J Offline
    J Offline
    jh224
    wrote on last edited by
    #1

    As my project is growing, the compile time is also growing. I'm using jom and have verified that all cores are being used. However, CPU usage remains low.....it may spike to around 40 %, but most of the time it stays around 4%. Any suggestions or strategies?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AcerExtensa
      wrote on last edited by
      #2

      Bye an SSD drive. Compiling Qt5 on 8-Core AMD FX with OCZ RevoDrive x3 and 32GB DDR3 RAM takes only 12 minutes(with webkit)....

      But you can also optimize your project... Use precompiled headers in your project...

      God is Real unless explicitly declared as Integer.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        koahnig
        wrote on last edited by
        #3

        Did you try to use mingw32-make with option -j <n>?
        At least with the 32/64 bit version of 4.7 it uses all cores during compilation showing a 100% CPU usage. Linking is only sequential, because it does all projects sequential.

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jh224
          wrote on last edited by
          #4

          Thanks koahnig, that helped tremendously!

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            QtYury
            wrote on last edited by
            #5

            [quote author="AcerExtensa" date="1370515911"]
            But you can also optimize your project... Use precompiled headers in your project...[/quote]

            AcerExtensa, could you please write more details about using precompiled headers?

            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