Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. qt6 how to compile for 32 bits on windows using mingw 11 20

qt6 how to compile for 32 bits on windows using mingw 11 20

Scheduled Pinned Locked Moved Unsolved Qt 6
6 Posts 4 Posters 2.4k Views
  • 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.
  • J Offline
    J Offline
    jchaviano
    wrote on last edited by
    #1

    I have managed to compile qt 6.7.0 static and dynamic to 64 bits using the mingw 64 bits (mingw1120_64) that comes with qt online.
    but I can't compile to 32 bits using mingw1120_64. above to compile on older versions of qt
    I used to compile to 32 bits the mingw32 of the version in question of qt, as we know, the old versions had
    for both of us...... I have read a lot about why to use qt at 32 if it is already almost everything at 64 but understand that many things that
    They are strong projects, they are 32-bit and they use 32-bit libs, which of course cannot be used in 64. My question is someone
    managed to compile qt 6.7.0 to 32 bits on windows with mingw either using mingw1120_64 with some specific configuration or
    some version of mingw at 32 bits to compile qt at 32 bits I have downloaded countless mingw from
    https://github.com/niXman/mingw-builds-binaries/releases?page=2 and from winlibs and without success

    jsulmJ R 2 Replies Last reply
    0
    • J jchaviano

      I have managed to compile qt 6.7.0 static and dynamic to 64 bits using the mingw 64 bits (mingw1120_64) that comes with qt online.
      but I can't compile to 32 bits using mingw1120_64. above to compile on older versions of qt
      I used to compile to 32 bits the mingw32 of the version in question of qt, as we know, the old versions had
      for both of us...... I have read a lot about why to use qt at 32 if it is already almost everything at 64 but understand that many things that
      They are strong projects, they are 32-bit and they use 32-bit libs, which of course cannot be used in 64. My question is someone
      managed to compile qt 6.7.0 to 32 bits on windows with mingw either using mingw1120_64 with some specific configuration or
      some version of mingw at 32 bits to compile qt at 32 bits I have downloaded countless mingw from
      https://github.com/niXman/mingw-builds-binaries/releases?page=2 and from winlibs and without success

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

      @jchaviano said in qt6 how to compile for 32 bits on windows using mingw 11 20:

      but understand that many things that
      They are strong projects, they are 32-bit and they use 32-bit libs

      This does not mean that you have to build your apps as 32bit in 2023. Do you really have reasons to do so?

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

      J 1 Reply Last reply
      0
      • jsulmJ jsulm

        @jchaviano said in qt6 how to compile for 32 bits on windows using mingw 11 20:

        but understand that many things that
        They are strong projects, they are 32-bit and they use 32-bit libs

        This does not mean that you have to build your apps as 32bit in 2023. Do you really have reasons to do so?

        J Offline
        J Offline
        jchaviano
        wrote on last edited by
        #3

        @jsulm
        You are telling me that with mingw 64 I can compile projects that have 32-bit libraries

        jsulmJ cristian-adamC 2 Replies Last reply
        0
        • J jchaviano

          @jsulm
          You are telling me that with mingw 64 I can compile projects that have 32-bit libraries

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

          @jchaviano said in qt6 how to compile for 32 bits on windows using mingw 11 20:

          You are telling me

          Where did I?
          I just asked why you want to build your app as 32bit.

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

          1 Reply Last reply
          0
          • J jchaviano

            I have managed to compile qt 6.7.0 static and dynamic to 64 bits using the mingw 64 bits (mingw1120_64) that comes with qt online.
            but I can't compile to 32 bits using mingw1120_64. above to compile on older versions of qt
            I used to compile to 32 bits the mingw32 of the version in question of qt, as we know, the old versions had
            for both of us...... I have read a lot about why to use qt at 32 if it is already almost everything at 64 but understand that many things that
            They are strong projects, they are 32-bit and they use 32-bit libs, which of course cannot be used in 64. My question is someone
            managed to compile qt 6.7.0 to 32 bits on windows with mingw either using mingw1120_64 with some specific configuration or
            some version of mingw at 32 bits to compile qt at 32 bits I have downloaded countless mingw from
            https://github.com/niXman/mingw-builds-binaries/releases?page=2 and from winlibs and without success

            R Offline
            R Offline
            Redman
            wrote on last edited by
            #5

            @jchaviano Are you restriced to using MingGW? With MSCV I had no problems compiling Qt6.5.2 32Bit.

            1 Reply Last reply
            0
            • J jchaviano

              @jsulm
              You are telling me that with mingw 64 I can compile projects that have 32-bit libraries

              cristian-adamC Offline
              cristian-adamC Offline
              cristian-adam
              wrote on last edited by cristian-adam
              #6

              gcc -m32 should do the trick. See https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html

              In order to build Qt 6.7 with this, you'll have to use a CMake toolchain file.

              Here is how I've built on Linux 32 bit https://lists.qt-project.org/pipermail/development/2020-November/040702.html

              1 Reply Last reply
              1
              • Axel SpoerlA Axel Spoerl referenced this topic on
              • JonBJ JonB referenced this topic on

              • Login

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