Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to build for x32 if my app is made with x64 kits?
Qt 6.12 LTS is out! See what's new in the release blog

How to build for x32 if my app is made with x64 kits?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
22 Posts 5 Posters 8.2k 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.
  • VRoninV VRonin

    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

    EngelardE Offline
    EngelardE Offline
    Engelard
    wrote on last edited by Engelard
    #6

    @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)).

    1. There is only my x64 current Kit
    2. 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:
    0_1553521010191_ghyhhjghj.jpg

    jsulmJ 1 Reply Last reply
    0
    • EngelardE Engelard

      @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)).

      1. There is only my x64 current Kit
      2. 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:
      0_1553521010191_ghyhhjghj.jpg

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #7

      @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.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      EngelardE 1 Reply Last reply
      0
      • jsulmJ jsulm

        @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.

        EngelardE Offline
        EngelardE Offline
        Engelard
        wrote on last edited by
        #8

        @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

        jsulmJ 1 Reply Last reply
        0
        • EngelardE Engelard

          @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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by jsulm
          #9

          @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.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          EngelardE 1 Reply Last reply
          0
          • EngelardE Offline
            EngelardE Offline
            Engelard
            wrote on last edited by
            #10

            Here is the screen of properties i changed in my Unnamed11:
            0_1553521557463_fghjj.jpg
            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)

            1 Reply Last reply
            0
            • jsulmJ jsulm

              @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.

              EngelardE Offline
              EngelardE Offline
              Engelard
              wrote on last edited by
              #11

              @jsulm please don't tell me that i don't have to download and install another same Qt but for x32 version..

              VRoninV 1 Reply Last reply
              0
              • hskoglundH Offline
                hskoglundH Offline
                hskoglund
                wrote on last edited by
                #12

                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.)

                N 1 Reply Last reply
                0
                • hskoglundH Offline
                  hskoglundH Offline
                  hskoglund
                  wrote on last edited by
                  #13

                  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.

                  1 Reply Last reply
                  2
                  • EngelardE Engelard

                    @jsulm please don't tell me that i don't have to download and install another same Qt but for x32 version..

                    VRoninV Offline
                    VRoninV Offline
                    VRonin
                    wrote on last edited by
                    #14

                    @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!

                    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                    ~Napoleon Bonaparte

                    On a crusade to banish setIndexWidget() from the holy land of Qt

                    1 Reply Last reply
                    4
                    • EngelardE Offline
                      EngelardE Offline
                      Engelard
                      wrote on last edited by
                      #15

                      As i understand i can not install it from MaintainTool, only download raw setup file from some site?

                      1 Reply Last reply
                      0
                      • EngelardE Offline
                        EngelardE Offline
                        Engelard
                        wrote on last edited by Engelard
                        #16

                        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!
                        0_1553524205220_qtfolderr.jpg
                        0_1553524210801_fld.jpg

                        UPDATE:

                        Just realised that i need qmake.exe file, and there is no such thing in whole folder of freshly installed x32 Qt!

                        1 Reply Last reply
                        0
                        • VRoninV Offline
                          VRoninV Offline
                          VRonin
                          wrote on last edited by
                          #17

                          What you are showing in your images is Qt Creator, not Qt

                          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                          ~Napoleon Bonaparte

                          On a crusade to banish setIndexWidget() from the holy land of Qt

                          EngelardE 1 Reply Last reply
                          3
                          • VRoninV VRonin

                            What you are showing in your images is Qt Creator, not Qt

                            EngelardE Offline
                            EngelardE Offline
                            Engelard
                            wrote on last edited by Engelard
                            #18

                            @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?

                            1 Reply Last reply
                            0
                            • VRoninV Offline
                              VRoninV Offline
                              VRonin
                              wrote on last edited by
                              #19

                              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 0_1553539566975_Capture.PNG

                              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                              ~Napoleon Bonaparte

                              On a crusade to banish setIndexWidget() from the holy land of Qt

                              1 Reply Last reply
                              4
                              • hskoglundH hskoglund

                                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.)

                                N Offline
                                N Offline
                                Nick111
                                wrote on last edited by Nick111
                                #20

                                @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.

                                jsulmJ 1 Reply Last reply
                                0
                                • N Offline
                                  N Offline
                                  Nick111
                                  wrote on last edited by
                                  #21
                                  This post is deleted!
                                  1 Reply Last reply
                                  0
                                  • N Nick111

                                    @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.

                                    jsulmJ Offline
                                    jsulmJ Offline
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #22

                                    @Nick111 You can use x86 on x64 if you don't really need x64

                                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    1 Reply Last reply
                                    1

                                    • Login

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • Users
                                    • Groups
                                    • Search
                                    • Get Qt
                                    • Unsolved