[Qt-interest] Need help: Build qt 4.5.1 for Mac OS X leopard (10.5.7) with cocoa but get library for carbon

Richard richardmg at trolltech.com
Mon May 18 08:58:18 CEST 2009


You cannot determine if Qt is built for Cocoa by looking at the output  
from otool. Qt/Cocoa still links to Carbon for many reasons (and the  
opposite, Qt/Carbon links to Cocoa/appkit). So you're build is  
probably in good shape.

-Richard


Den May 15, 2009 kl. 7:07 PM skrev Lei Zhang:

> Hi,
>
> I am trying to build qt 4.5.1 on leopard with cocoa, but somehow the  
> QtGUI
> library I got is for Carbon.
>
> Here is my qt config.status:
> ============================
> #!/bin/sh
> if [ "$#" -gt 0 ]; then
>  /Users/homer/Development/qt-mac-opensource-src-4.5.1/configure -cocoa
> -no-qt3support -arch x86 -confirm-license "$@"
> else
>  /Users/homer/Development/qt-mac-opensource-src-4.5.1/configure -cocoa
> -no-qt3support -arch x86 -confirm-license
> Fi
> =============================
>
> The build process was successful, however when I check the result of  
> the
> build with otool, here is what I got,
>
> ============================
> kd-homer-mbp:qt-mac-opensource-src-4.5.1 homer$ otool -L
> /usr/local/Trolltech/Qt-4.5.1/lib/QtGui.framework/QtGui
> /usr/local/Trolltech/Qt-4.5.1/lib/QtGui.framework/QtGui:
>    /usr/local/Trolltech/Qt-4.5.1/lib/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.46.0)
>    /usr/local/Trolltech/Qt-4.5.1/lib/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.1.4)
>
> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ 
> Applicat
> ionServices (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/ 
> CoreFoundatio
> n (compatibility version 150.0.0, current version 476.18.0)
>    /System/Library/Frameworks/Foundation.framework/Versions/C/ 
> Foundation
> (compatibility version 300.0.0, current version 677.24.0)
> =============
>
> This tells me the QtGui library is using Carbon, what is going on?  
> What did
> I do wrong?
>
>
> Thanks,
>
> H.
>
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list