Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Announcements
  4. Unofficial MinGW-based build of Qt 5.0.0 is now available
Forum Updated to NodeBB v4.3 + New Features

Unofficial MinGW-based build of Qt 5.0.0 is now available

Scheduled Pinned Locked Moved Announcements
30 Posts 9 Posters 23.0k 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.
  • U Offline
    U Offline
    utcenter
    wrote on last edited by
    #3

    Same problem here, I built Qt5 with MSVC2012 and cannot get the exe to run on any other machine, and worst part is I get no error, even Dependency walker doesn't help.

    Maybe this build can be hosted here on the QtProject website? Dropbox ain't gonna work too good in this case...

    1 Reply Last reply
    0
    • JKSHJ Online
      JKSHJ Online
      JKSH
      Moderators
      wrote on last edited by
      #4

      When I manage to download a copy, I'll set up a mirror.

      In the meantime, this might help with general deployment on Windows: http://qt-project.org/forums/viewthread/23286/

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

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

        Yeah, but still no success, I bundled the following DLLs:
        D3DCompiler_46.dll
        libEGL.dll
        libGLESv2.dll
        msvcp110.dll
        msvcr110.dll
        Qt5Core.dll
        Qt5Gui.dll
        Qt5Widgets.dll
        qwindows.dll

        No error, no nothing, the exe just doesn't start...

        1 Reply Last reply
        0
        • JKSHJ Online
          JKSHJ Online
          JKSH
          Moderators
          wrote on last edited by
          #6

          Is qwindows.dll in a subfolder ("platforms"), relative to the executable?

          Failing that... try dumping all the DLLs from C:<Qt>\bin\ (and all the folders in C:<Qt>\plugins) into the directory and see if it works :P

          (Hint: Instead of moving everything to the other PC to test, you can rename your Qt folder to temporarily hide Qt from your system, making it emulate a "Qt-less" machine)

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • JKSHJ Online
            JKSHJ Online
            JKSH
            Moderators
            wrote on last edited by
            #7

            Mirror is now available (see original post)

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

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

              Checking it out. BTW I managed to get my deployment properly - turned out I wasn't using the "right" VC runtime DLL, got like 20 dlls and like 5-6 different versions.

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

                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.

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  Dimbreath
                  wrote on last edited by
                  #10

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

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    alexpux
                    wrote on last edited by
                    #11

                    I try to rebuild my builds of Qt5 for mingw with some optimization after 8th january and upload them. You can test perfomance again.

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

                      [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 :)

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        alexpux
                        wrote on last edited by
                        #13

                        Good :)
                        But I now build with "-march=nocona -mtune=core2" for 64-bit and "-march=i686 -mtune=core2" for 32-bit. Next I try to build Qt5 with ANGLE.

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

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

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

                            [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: POSIX

                            MSVC
                            Optimization flags: "/Ox"

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

                              i7 3770k @ 4.5GHz, 16GB RAM, Windows 7 x64
                              The MSVC build is 64bit, I haven't really set any optimization flags, so everything should be by default

                              1 Reply Last reply
                              0
                              • A Offline
                                A Offline
                                alexpux
                                wrote on last edited by
                                #17

                                My builds that uploaded to sourceforge.net are builded without any optimization.

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  mctree
                                  wrote on last edited by
                                  #18

                                  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 install

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

                                  1 Reply Last reply
                                  0
                                  • JKSHJ Online
                                    JKSHJ Online
                                    JKSH
                                    Moderators
                                    wrote on last edited by
                                    #19

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

                                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                                    1 Reply Last reply
                                    0
                                    • A Offline
                                      A Offline
                                      alexpux
                                      wrote on last edited by
                                      #20

                                      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.

                                      1 Reply Last reply
                                      0
                                      • W Offline
                                        W Offline
                                        wally
                                        wrote on last edited by
                                        #21

                                        Thanks for the hard work on this. So far I have found the following issues.

                                        • doesn't work if user name (home directory) contains a space
                                        • toolchains_prepare doesn't unzip the downloaded files.
                                        1 Reply Last reply
                                        0
                                        • A Offline
                                          A Offline
                                          alexpux
                                          wrote on last edited by
                                          #22

                                          Do you change links to toolchains or use my links?

                                          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