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. How long take it to compile Qt5 ?
Forum Updated to NodeBB v4.3 + New Features

How long take it to compile Qt5 ?

Scheduled Pinned Locked Moved General and Desktop
12 Posts 6 Posters 19.7k 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.
  • Q Offline
    Q Offline
    QMartin
    wrote on last edited by
    #2

    Hello

    I don't know, but Qt4 took me 1.5 hours in a computer with 1.8 GHz and 2 GB of RAM for Windows Vista. Yours seems to take kajillion hours... It's not a rational time (I suppose). How are you compiling?

    Regards

    1 Reply Last reply
    0
    • U Offline
      U Offline
      utcenter
      wrote on last edited by
      #3

      Good luck with building the webkit - I simply skipped it after having so much troubles with it in the beta and RC.

      Yesterday I did a VS2012 64bit build of Qt5 final and it took about 2 hours for everything, including getting it from git which was really slow.
      I'd say it is a slow process, from nmake to finish it took probably about 90 minutes on my machine, which is a 4.5 GHz i7k, 16 gigs of ram and a Samsung 830 SSD.

      And it is not just Qt5 itself, I notice applications with Qt5 build slower than Qt4 as well. I'd imagined with all the clean up and modularization build times would go down but it is not the case.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        liuyanghejerry
        wrote on last edited by
        #4

        It tooks me about 2 hours for a MinGW64 static release build on my 2.3GHz i5, 8GB ram notebook. Since QtWebkit cannot build on MinGW, I skipped it too.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          soroush
          wrote on last edited by
          #5

          Ok, it's almost done. all modules are compiled including qtwebkit, though the later one refuses to link probably duo to "this bug":https://bugs.webkit.org/show_bug.cgi?id=104436.

          Unfortunately I could not found a way to solve it. Everything looks fine to me except that -Wl,-whole-archive ... -Wl,-no-whole-archive wrappers. I'm going to post a new thread for that.

          Note: Compile takes about 19 hrs. Considering -O3 flag overhead, not using parallel compile, and my very slow hard disk, looks rational to me.

          Thanks

          1 Reply Last reply
          0
          • S Offline
            S Offline
            soroush
            wrote on last edited by
            #6

            [quote author="liuyanghejerry" date="1356700869"]....Since QtWebkit cannot build on MinGW, I skipped it too.[/quote]

            What? Why!
            Are you sure?

            1 Reply Last reply
            0
            • U Offline
              U Offline
              utcenter
              wrote on last edited by
              #7

              LOL @19 hours - hopefully you will be able to get to the end, if my build fails after waiting for it for over 19 hours I bet I won't touch it with a stick the next few weeks...

              1 Reply Last reply
              0
              • L Offline
                L Offline
                liuyanghejerry
                wrote on last edited by
                #8

                [quote author="soroush" date="1356700976"]
                [quote author="liuyanghejerry" date="1356700869"]....Since QtWebkit cannot build on MinGW, I skipped it too.[/quote]

                What? Why!
                Are you sure?
                [/quote]

                Yes, I was really lazy and didn't get ICU lib for Qt. Then webkit was disabled^^

                1 Reply Last reply
                0
                • Chris KawaC Offline
                  Chris KawaC Offline
                  Chris Kawa
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  On i7 3,5GHz it took me about 2h to build debug-and-release without tests and examples with VS2012 x64. About 25mins for Qt itself and the rest was webkit.

                  Did you use the -mp switch to configure? It greatly reduces compile times as it's compiling on all cpu cores.

                  If you're not stressing cpu or disk in other way i'd say there's something going wrong with your build. Check out the output if it's still processing the same files or modules and look into the output dir to see if Qt dlls are showing up at all

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    soroush
                    wrote on last edited by
                    #10

                    [quote author="liuyanghejerry" date="1356701286"][quote author="soroush" date="1356700976"]
                    [quote author="liuyanghejerry" date="1356700869"]....Since QtWebkit cannot build on MinGW, I skipped it too.[/quote]

                    What? Why!
                    Are you sure?
                    [/quote]

                    Yes, I was really lazy and didn't get ICU lib for Qt. Then webkit was disabled^^[/quote]

                    Fortunately I have a nice installation of ICU :P The problem is something about mixture of static and dynamic libs. I'm gonna post it now

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      soroush
                      wrote on last edited by
                      #11

                      [quote author="Krzysztof Kawa" date="1356701473"]

                      Did you use the -mp switch to configure? It greatly reduces compile times as it's compiling on all cpu cores.
                      [/quote]

                      I think that switch is MSVC specific. and No. I didn't used -j2 or -j4 to parallelize compile. because of errors. it's difficult to read output of parallel compile and find out what is exactly happening

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        Raay221
                        wrote on last edited by
                        #12

                        I don't have any experience with Webkit compiler. But here we built QT 5 with similar hardware using VS2010 and it can get frustratingly long. Eventually we started working with "Incredibuild":http://www.incredibuild.com), and build times reduced by several times faster – EPIC!

                        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