-spec to use when compiling for 32-bit MacOS X on Snow Leopard? (no macx-g++-32?)
I'm trying to compile a qmake-based project on MacOS X 10.6 (Snow Leopard), which will generate 64 bit code as a default. But, I need to create a 32 bit binary.
On Linux with the same setup, I can simply specify -spec linux-g++-32, and qmake create a 32 bit target. but I'm not finding a macx-g++-32 spec to specify on MacOS X. in fact, what I'm finding is are related to compiler version differences, like macx-g++-40 and macx-g++-42.
I wonder how I should specify my intention to qmake that I'm looking for a 32 bit target? should I create my own spec based on macx-g++, with -m32 added to QMAKE_CFLAGS, QMAKE_CXXFLAGS and QMAKE_LFLAGS?
Re: -spec to use when compiling for 32-bit MacOS X on Snow Leopard? (no macx-g++-32?)
Hi!
Just add CONFIG+=x86 to your *.pro file.
Re: -spec to use when compiling for 32-bit MacOS X on Snow Leopard? (no macx-g++-32?)
Quote:
Originally Posted by
kemp
Hi!
Just add CONFIG+=x86 to your *.pro file.
yes, this is what I did, and it worked! :)
thank you!