Unofficial MinGW-based build of Qt 5.0.0 is now available
-
Mirror is now available (see original post)
-
It works, however, there is a HUGEEEEE performance difference when compared to MSVC and even to x86 Qt4 build.
Qt5 MinGW x64:
!http://i50.tinypic.com/2zs73tg.jpg(Qt5 MinGW 64)!Qt5 MSVC2012 x64:
!http://i46.tinypic.com/rm8gaf.png(Qt5 MSVC2012 64)!Qt4 MinGW x86:
!http://i50.tinypic.com/69l655.jpg(Qt4 MinGW 32)!I suspect there is something wrong with this build, it is not possible for MinGW to be almost 4 times slower than MSVC. And if anything, I expected this to be faster than 32bit Qt4 build, yet it is more than 2 times slower.
-
[quote author="utcenter" date="1357323191"]It works, however, there is a HUGEEEEE performance difference when compared to MSVC and even to x86 Qt4 build.
Qt5 MinGW x64:
!http://i50.tinypic.com/2zs73tg.jpg(Qt5 MinGW 64)!Qt5 MSVC2012 x64:
!http://i46.tinypic.com/rm8gaf.png(Qt5 MSVC2012 64)!Qt4 MinGW x86:
!http://i50.tinypic.com/69l655.jpg(Qt4 MinGW 32)!I suspect there is something wrong with this build, it is not possible for MinGW to be almost 4 times slower than MSVC. And if anything, I expected this to be faster than 32bit Qt4 build, yet it is more than 2 times slower.[/quote]
Wow, that's... slow. Let's just hope for official MinGW...
-
[quote author="alexpux" date="1357372790"]I try to rebuild my builds of Qt5 for mingw with some optimization after 8th january and upload them. You can test perfomance again.[/quote]
I just finished my optimized SDK today. It's a -O3 -mtune=native for 64 bit and -O3 -mtune=i686 for 32 bit :)
-
[quote author="alexpux" date="1357372790"]I try to rebuild my builds of Qt5 for mingw with some optimization after 8th january and upload them. You can test perfomance again.[/quote]
Hi, I've done some optimization to my algorithm - now MinGW performance is much better, but still somewhat lower than MSVC. In fact with the improved algorithm the MinGW version is a little faster than the old MSVC version. I wonder what could have caused performance to be so low before, the version of MinGW you have bundled should support all the C++11 features that increase performance, C++11 support in MinGW is a little better than that of MSVC2012. Anyway, here are the new results:
Qt5 MSVC2012 ×64:
!http://i50.tinypic.com/2vcja4j.jpg(MSVC)!Qt5 MinGW x64:
!http://i49.tinypic.com/2uj6pmt.png(MinGW)!Now the performance difference is only 0.3x - much better than 4x. So the build is not that slow, as long as you code efficiently. It is still a little slower than Qt4 MinGW x86 - which gets 30 MCPS performance.
-
[quote author="utcenter" date="1357403992"][quote author="alexpux" date="1357372790"]I try to rebuild my builds of Qt5 for mingw with some optimization after 8th january and upload them. You can test perfomance again.[/quote]
Hi, I've done some optimization to my algorithm - now MinGW performance is much better, but still somewhat lower than MSVC. In fact with the improved algorithm the MinGW version is a little faster than the old MSVC version. I wonder what could have caused performance to be so low before, the version of MinGW you have bundled should support all the C++11 features that increase performance, C++11 support in MinGW is a little better than that of MSVC2012. Anyway, here are the new results:
Qt5 MSVC2012 ×64:
!http://i50.tinypic.com/2vcja4j.jpg(MSVC)!Qt5 MinGW x64:
!http://i49.tinypic.com/2uj6pmt.png(MinGW)!Now the performance difference is only 0.3x - much better than 4x. So the build is not that slow, as long as you code efficiently. It is still a little slower than Qt4 MinGW x86 - which gets 30 MCPS performance.[/quote]
can you provide more information about your testing system? I can't agree with your results. I'm experiencing average 5% of speedup with MinGW x64 compared with MSVC 2012 :/
My PC: intel Dual Core 2.4 GHz @ 4GB RAM ~ Windows 7 64 bit
MinGW
Optimization flags: "-O3 -mtune=native"
Threading model: POSIXMSVC
Optimization flags: "/Ox" -
My builds that uploaded to sourceforge.net are builded without any optimization.
-
Thanks for the pre-compiled package. I uncompress it and place it to c:/, and I am going to use the qt library in mingw. With qt4, I compile my source in mingw as
./configure --prefix=SOMEWHERE LIBS="-L /c/Qt/4.8.4/lib -lmingw32 -lqtmain -lQtGui4 -lQtCore4"
make
make installthat is, the libraries flag qtmain, QtGui4 and QtCore4, etc. were setup well upon the installation of qt4. But with this pre-compiled package of qt5, obviously, it won't set it up, so what to do to make it work with pkg-config so the mingw know how to compile my
code with qt dependency.BTW, I found three folders in the package, if I only need the mingw32 compilation, so I only have to copy everything inside mingw32 folder and place them to the mingw root folder, right?
Thanks.
-
[quote author="mctree" date="1357441574"]BTW, I found three folders in the package, if I only need the mingw32 compilation, so I only have to copy everything inside mingw32 folder and place them to the mingw root folder, right?[/quote]Please read the note in the original post for installation instructions.
-
Hi all!
I create new project on https://github.com/Alexpux/Qt-builds where is the set of scripts to build Qt5+QtCreator with all its prerequisites and dependencies under MSYS. -
[quote author="alexpux" date="1358269379"]Do you change links to toolchains or use my links?[/quote]
I used yours. The toolchains downloaded but there was no command in your script to unzip them.
Currently the qt5 configure is failing, that might be because I changed some of the flags (I added -no-exceptions -no-rtti -no-stl)
Update apparently -no-exceptions and -no-stl are no longer an option in qt5.
-
I am not aware of the current state of affairs, but Qt 5.0.1 repos were merged into stable a weak ago and should be pretty much finalized and can be found "here":http://releases.qt-project.org/digia/5.0.1/latest_successful/
There is a MinGW version there for the impatient :)
-
Ok I do build of Qt-5.0.1 with QtCreator-2.6.1 for 32-bit. You can download it from http://sourceforge.net/projects/mingwbuilds/files/external-binary-packages/Qt-Builds/Qt-5.0.1-x32.7z/download