Solved How to build for x32 if my app is made with x64 kits?
-
@VRonin said in How to build for x32 if my app is made with x64 kits?:
On the left side under "Build & Run" you will find all the kits you have installed. Make sure the 32 bit compiler is enabled (Microsoft Visual C++ Compiler 15.0 (x86)).
- There is only my x64 current Kit
- How would i enable it?
I tried to add new Kit, then in it's preferences i select 15.0 x86 compilers for C and C++, and it all looks like this:
-
@Engelard Did you install Qt for your x86 compiler? Can you show the list of your Kits?
Your Unnamed11 Kit is apparently not configured properly. -
@jsulm said in How to build for x32 if my app is made with x64 kits?:
Can you show the list of your Kits?
In the very first post i showed it.
@jsulm said in How to build for x32 if my app is made with x64 kits?:
Your Unnamed11 Kit is apparently not configured properly.
that why i created this topic
-
@Engelard Please show your Unnamed11 Kit else I only can guess what the problem is and that wouldn't be very effective...
And in your first post you show only the list of your compilers, not Kits.
And you still did not say whether you installed Qt matching your 32bit compiler. -
Here is the screen of properties i changed in my Unnamed11:
This not available(Kit) probably because i can't select Qt version(on the screenshot i selected that field), i can't select current x64 because Kit become Red and imply that something wrong) -
@jsulm please don't tell me that i don't have to download and install another same Qt but for x32 version..
-
Hi, I'd just install the 32-bit versions of Qt and never bother with the 64-bit versions of Qt, because there are so many Windows installations that are still 32-bit.
(And the 32-bit version of Qt you can install and run on a 64-bit Windows, but not the other way around.) -
Forgot to say, Visual Studio 2019 (and as I heard also Visual Studio 2021) also follow this path, i.e. they are built as 32-bit applications that can run either on a 32-bit or 64-bit version of Windows.
-
@Engelard said in How to build for x32 if my app is made with x64 kits?:
please don't tell me that i don't have to download and install another same Qt but for x32 version.
Bingo!
-
As i understand i can not install it from MaintainTool, only download raw setup file from some site?
-
Okay, i'm done. I downloaded that 3gb, installed another Qt(same 5.12.0 version but x32) file name was: qt-opensource-windows-x86-5.12.0.exe it installed about 0.5gb in selected folder(interesting why weight of install file almost 3gb). And after all this i can't select bloody executable file when try to add Qt version!
UPDATE:
Just realised that i need qmake.exe file, and there is no such thing in whole folder of freshly installed x32 Qt!
-
What you are showing in your images is Qt Creator, not Qt
-
@VRonin said in How to build for x32 if my app is made with x64 kits?:
What you are showing in your images is Qt Creator, not Qt
What should it be then?
-
Go to the folder where you installed Qt (not Qt Creator, it's where qmake.exe is) and start the maintenance tool, select "add or remove components" and tick the boxes as shown in the picture
-
@hskoglund :( ...shit! I just downloaded the offline version of x86... and I am on 64 bit! :(
And I have been enjoying this whole topic from top (jus for fun) ...and didn't realize it untill I came to this part...writtern 64 bit. That it struck me!.... I ran back to checked my IDM listing and phew! ...its x86... And just completed.....smile
V funny ...Now I have to download it again....smile
Think getting smarter day by day. :)
Anyway np will download it tomorrow. In anycase not going to use it now....so its no big deal.
-
This post is deleted! -
@Nick111 You can use x86 on x64 if you don't really need x64