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. QT 5.12 make Mingw 32 release
Forum Updated to NodeBB v4.3 + New Features

QT 5.12 make Mingw 32 release

Scheduled Pinned Locked Moved Solved General and Desktop
29 Posts 11 Posters 15.4k Views 3 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.
  • AmrCoderA Offline
    AmrCoderA Offline
    AmrCoder
    wrote on last edited by
    #1

    Hello,

    Iam using QT 5.12 the last version of QT and after i installed it I found that the MinGW that comes with QT is 64 bit and no 32 version as in the old versions it always 32 bit and I was always releasing the applications in 32 so it can work on both.

    Now most of the third party libraries I compiled it in old versions of Mingw32 and it can't work on Mingw64 it gives me undefine reference in most cases.

    when I search about Mingw I found that the 64 should also work on 32 iam not sure, so is there any way to make a Mingw 32 release in the QT 5.12?
    iam using Windows 10

    Thanks in advance.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      5.11.3 seems to be the last to include 32 bit mingw.
      alt text

      You can compile a 32 bit version of 5.12 if you really need 5.12 32 bit.

      1 Reply Last reply
      1
      • AmrCoderA Offline
        AmrCoderA Offline
        AmrCoder
        wrote on last edited by
        #3

        Yes i know but is there a way to make a 32 release from the 64 there is something like this here
        they add the -m32 to the compiler and it makes a 32 release and then tests by checking the

        sizeof(size_t)
        

        if it's 4 for 32 or 8 for 64, I already test by adding this to the argument in QT but it did not work

        mrjjM 1 Reply Last reply
        0
        • AmrCoderA AmrCoder

          Yes i know but is there a way to make a 32 release from the 64 there is something like this here
          they add the -m32 to the compiler and it makes a 32 release and then tests by checking the

          sizeof(size_t)
          

          if it's 4 for 32 or 8 for 64, I already test by adding this to the argument in QT but it did not work

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @AmrCoder
          well the Qt DLL files are still 64bit and a 32 bit app wont load them.
          But yes, its the same thing as link show.
          You just have to compile ALL of Qt to get same effect :)

          I think using 5.11.3 might be faster than compiling a new Qt but
          if you already have all dependencies and a powerfull pc, its
          not the biggest task.

          1 Reply Last reply
          3
          • AmrCoderA Offline
            AmrCoderA Offline
            AmrCoder
            wrote on last edited by
            #5

            the last question please, is there any chance for 32 version in the next versions QT 5.12.1 for example or it will be only 64?

            mrjjM 1 Reply Last reply
            0
            • AmrCoderA AmrCoder

              the last question please, is there any chance for 32 version in the next versions QT 5.12.1 for example or it will be only 64?

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @AmrCoder
              Most likely only 64 bit.

              1 Reply Last reply
              1
              • naykN Offline
                naykN Offline
                nayk
                wrote on last edited by
                #7

                I build Qt 5.12 with MinGW 7.3.0 32bit from source. Download: link

                1 Reply Last reply
                5
                • AmrCoderA Offline
                  AmrCoderA Offline
                  AmrCoder
                  wrote on last edited by
                  #8

                  I download it and add it to my QT 5.12 and it worked perfectly, really I appreciated that many thanks for you <3 and i hope they make a 32 bit release in the next versions if there is a way we can make a suggestion because most of us need our apps to be in 32 bit release, Thanks again @nayk

                  aha_1980A 1 Reply Last reply
                  0
                  • naykN Offline
                    naykN Offline
                    nayk
                    wrote on last edited by
                    #9

                    you are welcome

                    1 Reply Last reply
                    1
                    • M Offline
                      M Offline
                      max.chen
                      wrote on last edited by
                      #10

                      Hi nayk,

                      I download it and add it to my QT 5.12 , but When i run the app i get some error about this:

                      qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
                      

                      Where have I not set up?

                      naykN 1 Reply Last reply
                      0
                      • AmrCoderA Offline
                        AmrCoderA Offline
                        AmrCoder
                        wrote on last edited by
                        #11

                        I solve it by copying the folder of the 5.12.0\mingw73_32\plugins\platforms to the same folder that has the exe programe if there is a solution to solve it without this it will be better

                        L 1 Reply Last reply
                        0
                        • M max.chen

                          Hi nayk,

                          I download it and add it to my QT 5.12 , but When i run the app i get some error about this:

                          qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
                          

                          Where have I not set up?

                          naykN Offline
                          naykN Offline
                          nayk
                          wrote on last edited by
                          #12

                          @max.chen try copying the "platforms/qwindows.dll" file to the application subdirectory "platforms".
                          qwindows.dll - for release mode, qwindowsd.dll - for debug mode.
                          Other plugins libraries may also be needed for you application.

                          1 Reply Last reply
                          1
                          • naykN Offline
                            naykN Offline
                            nayk
                            wrote on last edited by nayk
                            #13

                            I compiled this version with OpenSSL 1.1.1a and put the necessary dll in the "_dll_for_app" directory (libcrypto-1_1.dll, libssl-1_1.dll). OpenSSL is used by Qt5Network for https connections.
                            MySql 5.6 - for MySQL Qt plugin
                            PosgreSQL 9.6.11 - for PostgreSQL Qt plugin

                            1 Reply Last reply
                            2
                            • AmrCoderA AmrCoder

                              I download it and add it to my QT 5.12 and it worked perfectly, really I appreciated that many thanks for you <3 and i hope they make a 32 bit release in the next versions if there is a way we can make a suggestion because most of us need our apps to be in 32 bit release, Thanks again @nayk

                              aha_1980A Offline
                              aha_1980A Offline
                              aha_1980
                              Lifetime Qt Champion
                              wrote on last edited by aha_1980
                              #14

                              @AmrCoder said in QT 5.12 make Mingw 32 release:

                              I download it and add it to my QT 5.12 and it worked perfectly, really I appreciated that many thanks for you <3 and i hope they make a 32 bit release in the next versions if there is a way we can make a suggestion because most of us need our apps to be in 32 bit release,

                              You should write a mail to the Interest mailing list or directly create a suggestion in Jira.

                              In either case, please provide a link here, so we can follow the discussion. Thanks!

                              Edit: Follow-up: https://lists.qt-project.org/pipermail/interest/2018-December/031798.html

                              Qt has to stay free or it will die.

                              1 Reply Last reply
                              1
                              • AmrCoderA AmrCoder

                                I solve it by copying the folder of the 5.12.0\mingw73_32\plugins\platforms to the same folder that has the exe programe if there is a solution to solve it without this it will be better

                                L Offline
                                L Offline
                                Longxr
                                wrote on last edited by
                                #15

                                @AmrCoder 0_1546166691925_TIM截图20181230184431.png Add this environment variable

                                1 Reply Last reply
                                1
                                • KATO2K Offline
                                  KATO2K Offline
                                  KATO2
                                  wrote on last edited by
                                  #16

                                  the solution proposed by @nayk works very well, however this is a partial solution, because each time you want to update Qt, you need to build a new version of Qt for x32. I think there is a way to cross compile your application using mingw-64w, but i don't know how to do that. Maybe someone can instruct us how to do it!

                                  jsulmJ 1 Reply Last reply
                                  0
                                  • KATO2K KATO2

                                    the solution proposed by @nayk works very well, however this is a partial solution, because each time you want to update Qt, you need to build a new version of Qt for x32. I think there is a way to cross compile your application using mingw-64w, but i don't know how to do that. Maybe someone can instruct us how to do it!

                                    jsulmJ Offline
                                    jsulmJ Offline
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #17

                                    @KATO2 Why do you want to cross compile? Just use MinGW32 to build Qt.

                                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    KATO2K 1 Reply Last reply
                                    1
                                    • sierdzioS Offline
                                      sierdzioS Offline
                                      sierdzio
                                      Moderators
                                      wrote on last edited by
                                      #18

                                      FYI: Qt 5.12.2 will ship with Mingw 32 packages included. UWP packages will be dropped.

                                      (Z(:^

                                      KATO2K 1 Reply Last reply
                                      4
                                      • jsulmJ jsulm

                                        @KATO2 Why do you want to cross compile? Just use MinGW32 to build Qt.

                                        KATO2K Offline
                                        KATO2K Offline
                                        KATO2
                                        wrote on last edited by
                                        #19

                                        @jsulm official QT 5.12.0 and QT 5.12.1 includes only MinGW 64, not MinGW 32 version was included.

                                        aha_1980A 1 Reply Last reply
                                        0
                                        • KATO2K KATO2

                                          @jsulm official QT 5.12.0 and QT 5.12.1 includes only MinGW 64, not MinGW 32 version was included.

                                          aha_1980A Offline
                                          aha_1980A Offline
                                          aha_1980
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #20

                                          @KATO2 Correct. Nevertheless, that's compiling Qt from source, not cross-compiling.

                                          Qt has to stay free or it will die.

                                          1 Reply Last reply
                                          1

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved