Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 2.3.0
-
None
-
QT is setup in the following way on the Mac I am using:
$0 ~ > mdfind -name QTCore /Library/Frameworks/QtCore.framework /Library/Frameworks/QtCore.framework/Versions/4/QtCore /Library/Frameworks/QtCore.framework/Versions/4/Headers/QtCore /Library/Frameworks/QtCore.framework/QtCore.prl /Developer/Documentation/Qt/html/qtcore.html /Developer/Documentation/Qt/html/qtcore-qmath-h.html
$0 ~ > otool -h /Library/Frameworks/QtCore.framework/Versions/4/QtCore /Library/Frameworks/QtCore.framework/Versions/4/QtCore: Mach header magic cputype cpusubtype caps filetype ncmds sizeofcmds flags 0xfeedfacf 16777223 3 0x00 6 15 2352 0x00118085
I got the version of QT from:
http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x/
My QT is a fat file containing both 64bit and 32bit executables as indicated by the command:
$0 ~ > $ lipo -info /Library/Frameworks/QtCore.framework/Versions/4/QtCore
Architectures in the fat file: /Library/Frameworks/QtCore.framework/Versions/4/QtCore are: x86_64 i386
QT is setup in the following way on the Mac I am using: $0 ~ > mdfind -name QTCore /Library/Frameworks/QtCore.framework /Library/Frameworks/QtCore.framework/Versions/4/QtCore /Library/Frameworks/QtCore.framework/Versions/4/Headers/QtCore /Library/Frameworks/QtCore.framework/QtCore.prl /Developer/Documentation/Qt/html/qtcore.html /Developer/Documentation/Qt/html/qtcore-qmath-h.html $0 ~ > otool -h /Library/Frameworks/QtCore.framework/Versions/4/QtCore /Library/Frameworks/QtCore.framework/Versions/4/QtCore: Mach header magic cputype cpusubtype caps filetype ncmds sizeofcmds flags 0xfeedfacf 16777223 3 0x00 6 15 2352 0x00118085 I got the version of QT from: http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x/ My QT is a fat file containing both 64bit and 32bit executables as indicated by the command: $0 ~ > $ lipo -info /Library/Frameworks/QtCore.framework/Versions/4/QtCore Architectures in the fat file: /Library/Frameworks/QtCore.framework/Versions/4/QtCore are: x86_64 i386
-
075c598f92b301a2149697e95e7ce78e7afff8e7
Description
Note: this is a copy of the extra information I put into QTCREATORBUG-5949
When I select GCC x86 32bit build in QT Creator it builds a 64bit binary and resets the GUI setting back to 64bit.
The Build setting QT version (Qt 4.7.4 (System)) Debug) tooltip shows :
ABI: x86-macos-generic-mach_o-64bit
ABI: x86-macos-generic-mach_o-32bit
The compiler version always defaults to GCC (x86 64bit) after restarting QT Creator - even after I select 32 bits.
I've also edited the .pro.user file manually to get a 32bit build and QT Creator sets this back to 64bits.
I believe my installation of QT is correct. If I manually edit the generated Makefile and add '-arch i386 -m32' to the compile and link steps the executable builds and runs successfully.
Attachments
Issue Links
- replaces
-
QTCREATORBUG-5949 Qt Creator + Qt 4.7.3 on Mac OS 10.6 - always builds x86_64, but I only want 32 bit
- Closed