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
Forum Updated to NodeBB v4.3 + New Features

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.5k 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 7 Nov 2023, 01:32 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

    J R 2 Replies Last reply 7 Nov 2023, 06:27
    0
    • J jchaviano
      7 Nov 2023, 01:32

      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

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 7 Nov 2023, 06:27 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 7 Nov 2023, 17:56
      0
      • J jsulm
        7 Nov 2023, 06:27

        @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 7 Nov 2023, 17:56 last edited by
        #3

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

        J C 2 Replies Last reply 8 Nov 2023, 06:42
        0
        • J jchaviano
          7 Nov 2023, 17:56

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

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 8 Nov 2023, 06:42 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
            7 Nov 2023, 01:32

            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 8 Nov 2023, 07:35 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
              7 Nov 2023, 17:56

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

              C Offline
              C Offline
              cristian-adam
              wrote on 8 Nov 2023, 21:20 last edited by cristian-adam 11 Sept 2023, 07:40
              #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
              • A Axel Spoerl referenced this topic on 1 Apr 2024, 09:08
              • J JonB referenced this topic on 23 May 2024, 17:30

              2/6

              7 Nov 2023, 06:27

              4 unread
              • Login

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