How to compile 32 bit qt project on 64 bit OS?
-
Hi
I am using 64 bit Windows 10. I made my project with 64 bit compiling option. I am using Qt5.7. But now I have to switch to 32 bit compiling option. My Qt plugin in VS2015 shows
'There's no Qt version assigned to this project for platform Win32. Please use change Qt version feature and choose a valid Qt version for this platform'.
But my Qt shows options only for 64 bit. How can I change it to 32 bit? -
hi
VS can be install for both 32/64
But I think you need another Qt version compiled as 32 bit
https://www.qt.io/download-open-source/#section-2This one
Qt 5.7.0 for Windows 32-bit (VS 2015, 924 MB) (info)Im not sure how u switch in VS. In creator you can select 32/64 kit
-
If you compile Qt from source you can generate both a 64 and 32 bit Qt build, then you can set up separate configurations in VS for the 32 and 64 bit versions (and also debug and release confirms for each too).
It also can help setting up env vars for Qt so in addition you can switch Qt versions without having to go and edit your VS configurations.