[Qt-creator] Can Nokia distribute qt/cocoalibraries?

Eike Ziller eike.ziller at nokia.com
Mon May 18 16:46:36 CEST 2009


Hi,

On May 18, 2009, at 1:26 PM, ext Yue Wang wrote:

> Hi,
>
> thanks for the answer,
> just downloaded the cocoa version,
> (qt-mac-cocoa-opensource-4.5.1.dmg), removed the previous
> installation, and install the cocoa version. However, qmake -project,
> qmake still make the project link to carbon framework by default:  is
> this necessary?
> moreover, after unpacking the installation package and run :
> yuewang:~ yue$ otool -L
> /Users/yue/Archive/Library/Frameworks/QtGui.framework/Versions/4/QtGui
> /Users/yue/Archive/Library/Frameworks/QtGui.framework/Versions/4/ 
> QtGui:
> 	QtGui.framework/Versions/4/QtGui (compatibility version 4.5.0,
> current version 4.5.1)
> 	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
> (compatibility version 2.0.0, current version 136.0.0)
> 	/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
> (compatibility version 45.0.0, current version 949.0.0)
> 	QtCore.framework/Versions/4/QtCore (compatibility version 4.5.0,
> current version 4.5.1)
> 	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version  
> 1.2.3)
> 	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 111.0.0)
> 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ 
> ApplicationServices
> (compatibility version 1.0.0, current version 34.0.0)
> 	/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current  
> version 7.4.0)
> 	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current  
> version 1.0.0)
> 	/System/Library/Frameworks/CoreServices.framework/Versions/A/ 
> CoreServices
> (compatibility version 1.0.0, current version 32.0.0)
> 	/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current  
> version 227.0.0)
> 	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/ 
> CoreFoundation
> (compatibility version 150.0.0, current version 476.0.0)
> 	/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
> (compatibility version 300.0.0, current version 677.12.0)
>
> it is linked to Carbon , not Cocoa?

the fact that it still links to Carbon, doesn't mean that it is a  
"Carbon application" :).
Actually it is also linked to Cocoa (/System/Library/Frameworks/ 
AppKit.framework/Versions/C/AppKit).
And also *not everything* of carbon is deprecated for 64 bit. There  
are lots of API calls that one still can (and must!) do through the  
carbon API. But (most of?) the Carbon GUI API is gone for 64bit. A  
hint that this is Qt/Cocoa is hidden in the fact that it links against  
the objective c base library (/usr/lib/libobjc.A.dylib).

Regards,
-- 
Eike Ziller
Software Engineer
Nokia, Qt Software
Phone  +49 (0)30 6392 3255
Fax    +49 (0)30 6392 3256
E-mail eike.ziller at nokia.com







More information about the Qt-creator-old mailing list