PDA

View Full Version : Installing QT4.7 for Cocoa



koan
31st January 2011, 16:41
Hi, I have previously been using QT4.7 with Carbon on Leopard; now I am running Snow Leopard and want to use Cocoa based QT, both 32 and 64 bit.

I installed the QT SDK 4.7 for Mac because I found some posts that suggested it contained the Cocoa based framework (it didn't seem to). I went on to install the 4.7.1 binary framework for Cocoa. However when I check it seems to be Carbon still :confused: :


$ otool -L /Library/Frameworks/QtGui.framework/QtGui
/Library/Frameworks/QtGui.framework/QtGui:
QtGui.framework/Versions/4/QtGui (compatibility version 4.7.0, current version 4.7.1)
QtCore.framework/Versions/4/QtCore (compatibility version 4.7.0, current version 4.7.1)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 152.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1038.32.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 625.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0)
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 44.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.29.0)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 38.0.0)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 751.29.0)

Do I have to build QT from source myself ?

koan
2nd February 2011, 13:16
I didn't know that Cocoa = AppKit + Foundation, therefore there are Cocoa dependencies in the library. Also, it appears that this is a universal binary, 32 bit using Carbon and 64 bit using Cocoa.

If I am going to use 32 bit Cocoa I will have to compile it myself or wait until QT uses Cocoa by default.

Problem solved.