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. [Solved] Use of multi-core for compiling on Windows for MSVC
Forum Update on Monday, May 27th 2025

[Solved] Use of multi-core for compiling on Windows for MSVC

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 4 Posters 16.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.
  • K Offline
    K Offline
    koahnig
    wrote on 11 May 2011, 09:25 last edited by
    #1

    I am wondering, if there is not a way to compile with MSVC on Windows and using multiple cores.
    I had to compile Qt on Linux a couple of times lately. The use of multiple cores with "make -j<x>" came in quite handy. Today I have configured a cross-compile with "nmake -j<x>" and nmake complained. Now the compilation takes for ever while 3 of 4 cores are idle.

    What am I missing?

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

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on 11 May 2011, 09:51 last edited by
      #2

      native nmake does not support this - unfortunately.

      There is a modified version, called "jom", made by our beloved Trolls. Some infos in this older blog post "Speeding up Visual C++ Qt Builds":http://labs.qt.nokia.com/2009/03/27/speeding-up-visual-c-qt-builds/ and in the gitorious repos at http://qt.gitorious.org/qt-labs/jom

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        Zlatomir
        wrote on 11 May 2011, 09:54 last edited by
        #3

        Have you tried to build Qt to see how many cores are used?
        Since with my system the VS2010's nmake by default is using both the cores available, so i guess you don't need anything.

        https://forum.qt.io/category/41/romanian

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on 11 May 2011, 10:00 last edited by
          #4

          @Volker
          Thanks for hint. I will follow up.

          @Zlatomir
          I am using VS2005 on Win7 (64bit). In general I can use the parallel building process with my own source.
          The Qt compilation I am doing from the command prompt after using configure. There you have to start nmake and that is the point I got stuck.

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

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            Zlatomir
            wrote on 11 May 2011, 12:05 last edited by
            #5

            Then use jom, or for VS2005 you can also add -MP to the QMAKE_CFLAGS from qmake.conf file located in mkspecs\win32-msvc2005
            //i didn't try this - because i didn't use that VS and 2010 use both my cores by default

            https://forum.qt.io/category/41/romanian

            1 Reply Last reply
            0
            • K Offline
              K Offline
              koahnig
              wrote on 11 May 2011, 12:18 last edited by
              #6

              For those of you looking for the same solution.
              [quote author="Volker" date="1305107505"]
              There is a modified version, called "jom", made by our beloved Trolls. Some infos in this older blog post "Speeding up Visual C++ Qt Builds":http://labs.qt.nokia.com/2009/03/27/speeding-up-visual-c-qt-builds/ and in the gitorious repos at http://qt.gitorious.org/qt-labs/jom[/quote]

              Go directly to the gitorious repos. The download link on the blog delivers an old exe.
              Or use the "FTP site directly":ftp://ftp.qt.nokia.com/jom/

              It works great !!!

              A suggestion for Qt: Include it in the distribution.

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

              1 Reply Last reply
              0
              • J Offline
                J Offline
                jagsir
                wrote on 6 Sept 2012, 12:07 last edited by
                #7

                <Zlatomir>

                I have tried both nmake (VS2010) and jom.

                jom keeps the laptop doing some 100% usage almost all the time.

                nmake was not able to do more than 35% at any time and was doing 20% most of the times.

                i got a i7 with 8 cores, all engaged 100% and even the fan on the back of the laptop.

                jom is good, .. so jom.

                regards-

                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