Build Qt 5 on OSX Mountain Lion in 32bit
I would like to build Qt 5.0 on OSX Mountain Lion in 32bit however -arch is now obsolete so the old way of setting "-arch x86" doesn't work. Anyone know how this can be done now?
Check the solution posted at "this similar topic":http://qt-project.org/forums/viewthread/15721.
I have found build errors when trying to compile in 32bit on osx 10.8.2. Would you let me know if you experience the same problem?
There are many errors building a 32bit version, apparently because of Qt 5.0 "assumption" of NS and CF types equivalence, that is not true on a 32bit platform. You can build sources using "-DNS_BUILD_32_LIKE_64" on the configure line, i.e. using:
./configure -nomake tests -platform macx-clang-32 -DNS_BUILD_32_LIKE_64
but beware of binary compatibility (see "Building 32-Bit Like 64-Bit":http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Cocoa64BitGuide/64BitChangesCocoa/64BitChangesCocoa.html#//apple_ref/doc/uid/TP40004247-CH4-SW2), you will not be able to distribute your application (without embedding qt), so that's not a good solution.
If this is your problem, you can add a vote to "this bug":https://bugreports.qt-project.org/browse/QTBUG-28828...