How long take it to compile Qt5 ?



  • Hi

    I'm compiling Qt on Windows 7. Now its in 18 th hour. Is this a rational time? I feel something's going wrong... May it fall in an infinite loop ?

    Notes:

    1. My lovely PC is a 2.4GHz dual core intel with 4GB of ram.
    2. I turned off examples and tests in configure.
    3. Webkit is compiling.


  • 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



  • 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.



  • 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.



  • 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



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

    What? Why!
    Are you sure?



  • 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...



  • [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^^


  • Moderators

    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



  • [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



  • [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



  • 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!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.