Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Compiling for 32bit on x86_64
Qt 6.11 is out! See what's new in the release blog

Compiling for 32bit on x86_64

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 3.8k Views 1 Watching
  • 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.
  • T Offline
    T Offline
    trulex
    wrote on last edited by
    #1

    I have 64 bit Qt Creator installed on my Arch Linux machine, and compiling 64 bit apps goes well. I also installed the 32bit version of the program, and tried to compile my project with 32bit Qt and GCC, but the built app is 64 bit. I also tried compiling from the terminal, but unsuccessfully. I tried many approaches but every time i end up with 64 bit application. Please help me, I think this shouldn't be so hard and frustrating!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      shajeen
      wrote on last edited by
      #2

      "see this Link,":http://www.cyberciti.biz/tips/compile-32bit-application-using-gcc-64-bit-linux.html

      Shajeen Ahamed

      1 Reply Last reply
      0
      • T Offline
        T Offline
        trulex
        wrote on last edited by
        #3

        Thank you for reply, but I think there is no way but compileing my app on a 32bit OS.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi and welcome to devnet,

          Do you have all needed libraries in 32bit ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • T Offline
            T Offline
            trulex
            wrote on last edited by
            #5

            I installed the 32bit Qt5 Creator with all libraries and I also have 32bit GCC installed, so there were no problems reported at the build options. The compiled executable was nevertheless 64 bit. When I added the flag for explicit 32 bit compilation (-spec linux-g++-32), an error occurred - error: expected unqualified-id before '__int128'.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Did you also install Qt 32 bit ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • T Offline
                T Offline
                trulex
                wrote on last edited by
                #7

                Yes, in the build options both Qt and GCC are 32 bit. Qt 5.1.0 for Linux 32-bit (417 MB) is the package I installed.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Then are you sure you are using the qmake from your 32bit Qt ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0

                  • Login

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