How to build for x32 if my app is made with x64 kits?
-
I found that my app can't be used in my old laptop which is x32 Windows. How can i build another version of my program but for x32?
I went to Options>Kits, but there is alot of them and i don't know how to use them...(and which)
-
in the left bar of Qt Creator you can see the button "projects" click on it. 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)).
Then in the left bar, click on the screen icon just above the run button select the 32 bit and the release mode then click on the hammer icon -
@Engelard You first need to install Qt build for x86 and a matching compiler (like VisualC++ 14 you already have). Then you will have a Kit and then use this Kit to build for 32bit.
-
@jsulm yeye, but how to apply new Kit(which you just said i already have) to my current Qt project?
-
in the left bar of Qt Creator you can see the button "projects" click on it. 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)).
Then in the left bar, click on the screen icon just above the run button select the 32 bit and the release mode then click on the hammer icon@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:
-
@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
-
@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. -
-
@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. -
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.) -
@jsulm please don't tell me that i don't have to download and install another same Qt but for x32 version..
-
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!
-
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.)@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.