Compiling for 32bit on x86_64
-
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!
-
-
Thank you for reply, but I think there is no way but compileing my app on a 32bit OS.
-
Hi and welcome to devnet,
Do you have all needed libraries in 32bit ?
-
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'.
-
Did you also install Qt 32 bit ?
-
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.
-
Then are you sure you are using the qmake from your 32bit Qt ?