[Qt-interest] Using cocoa in Qt4.5

MacUser S macos_user at yahoo.com
Wed Jun 3 09:12:04 CEST 2009


We are using Qt4.5 leopard machine.We would like to use cocoa framework instead of carbon.We are successfully removed carbon framework and the carbon codes from the application and successfully  included Qt frameworks and cocoa framework and foundation framework.

We used QT_MAC_USE_COCOA macro,and  when i pass configure -arch x86 -arch ppc -arch x86_64 -arch ppc64, or -cocoa  on terminal ,it shows error like "-bash: configure: command not found" or -bash: -cocoa: command not found.Where do i set these settings?

In build settings ,compiling the sources as its type. 
But When i try include<Cocoa/Cocoa.h>.It shows building errors.Am i missed something?please help me.


/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:124: error: expected unqualified-id before '@' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:126: error: expected constructor, destructor, or type conversion before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:127: error: 'NSString' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:127: error: 'aSelectorName' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:129: error: expected constructor, destructor, or type conversion before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:130: error: 'NSString' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:130: error: 'aClassName' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:132: error: expected constructor, destructor, or type conversion before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:133: error: expected constructor, destructor, or type conversion before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:137: error: variable or field 'NSLog' declared void
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:137: error: 'NSString' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:137: error: 'format' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:137: error: expected primary-expression before '...' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:138: error: variable or field 'NSLogv' declared void
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:138: error: 'NSString' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:138: error: 'format' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:138: error: expected primary-expression before 'args'
/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:8: error: expected unqualified-id before '@' token
/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:16: error: 'NSString' has not been declared
/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:17: error: expected constructor, destructor, or type conversion before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:8: error: expected unqualified-id before '@' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:9: error: expected unqualified-id before '@' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:13: error: expected unqualified-id before '@' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:16: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:18: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:19: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:20: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:21: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:23: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:24: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:25: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:27: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:29: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:30: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:31: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:33: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:35: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:36: error: expected unqualified-id before '-' token



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090603/91670bac/attachment.html 


More information about the Qt-interest-old mailing list