qt6 how to compile for 32 bits on windows using mingw 11 20
-
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 -
@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 libsThis does not mean that you have to build your apps as 32bit in 2023. Do you really have reasons to do so?
-
@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. -
gcc -m32
should do the trick. See https://gcc.gnu.org/onlinedocs/gcc/x86-Options.htmlIn 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
-
-