Cerbero: Package GTK+3 on OSX
Urs Hofer
hoferurs at gmail.com
Sun Jul 6 07:13:07 PDT 2014
Hi
I'm trying to compile the GTK 3 Package under OSX.
I guess there's a reason why the package is not activated ;)
- glib compiled only after deactivating the patches
- atk compiled only after adjusting the include path for the .gir files
but the point where I'm really failing is while building the recipe gtk+3 itself:
> In file included from imquartz.c:30:
> In file included from ../../gdk/quartz/gdkquartz.h:23:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:409:1: error: expected identifier or '('
> @class NSString, Protocol;
> ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:411:19: error: unknown type name 'NSString'; did you mean 'GString'?
> FOUNDATION_EXPORT NSString *NSStringFromSelector(SEL aSelector);
> ^
> /Users/urshofer/cerbero/dist/darwin_x86_64/include/glib-2.0/glib/gstring.h:39:33: note: 'GString' declared here
> typedef struct _GString GString;
> ^
> In file included from imquartz.c:30:
> In file included from ../../gdk/quartz/gdkquartz.h:23:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:412:44: error: unknown type name 'NSString'; did you mean 'GString'?
> FOUNDATION_EXPORT SEL NSSelectorFromString(NSString *aSelectorName);
> ^
> /Users/urshofer/cerbero/dist/darwin_x86_64/include/glib-2.0/glib/gstring.h:39:33: note: 'GString' declared here
> typedef struct _GString GString;
> ^
> In file included from imquartz.c:30:
> In file included from ../../gdk/quartz/gdkquartz.h:23:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:414:19: error: unknown type name 'NSString'; did you mean 'GString'?
> FOUNDATION_EXPORT NSString *NSStringFromClass(Class aClass);
> ^
> /Users/urshofer/cerbero/dist/darwin_x86_64/include/glib-2.0/glib/gstring.h:39:33: note: 'GString' declared here
> typedef struct _GString GString;
> ^
> In file included from imquartz.c:30:
> In file included from ../../gdk/quartz/gdkquartz.h:23:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:415:43: error: unknown type name 'NSString'; did you mean 'GString'?
> FOUNDATION_EXPORT Class NSClassFromString(NSString *aClassName);
> ^
> /Users/urshofer/cerbero/dist/darwin_x86_64/include/glib-2.0/glib/gstring.h:39:33: note: 'GString' declared here
> typedef struct _GString GString;
> ^
> In file included from imquartz.c:30:
> In file included from ../../gdk/quartz/gdkquartz.h:23:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:417:19: error: unknown type name 'NSString'; did you mean 'GString'?
> FOUNDATION_EXPORT NSString *NSStringFromProtocol(Protocol *proto) NS_AVAILABLE(10_5, 2_0);
> ^
> /Users/urshofer/cerbero/dist/darwin_x86_64/include/glib-2.0/glib/gstring.h:39:33: note: 'GString' declared here
> typedef struct _GString GString;
> ^
> In file included from imquartz.c:30:
> In file included from ../../gdk/quartz/gdkquartz.h:23:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:417:50: error: unknown type name 'Protocol'
> FOUNDATION_EXPORT NSString *NSStringFromProtocol(Protocol *proto) NS_AVAILABLE(10_5, 2_0);
> ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:418:19: error: unknown type name 'Protocol'
> FOUNDATION_EXPORT Protocol *NSProtocolFromString(NSString *namestr) NS_AVAILABLE(10_5, 2_0);
> ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:418:50: error: unknown type name 'NSString'; did you mean 'GString'?
> FOUNDATION_EXPORT Protocol *NSProtocolFromString(NSString *namestr) NS_AVAILABLE(10_5, 2_0);
> ^
> /Users/urshofer/cerbero/dist/darwin_x86_64/include/glib-2.0/glib/gstring.h:39:33: note: 'GString' declared here
> typedef struct _GString GString;
> ^
> In file included from imquartz.c:30:
> In file included from ../../gdk/quartz/gdkquartz.h:23:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:422:30: error: unknown type name 'NSString'; did you mean 'GString'?
> FOUNDATION_EXPORT void NSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2);
> ^
> /Users/urshofer/cerbero/dist/darwin_x86_64/include/glib-2.0/glib/gstring.h:39:33: note: 'GString' declared here
> typedef struct _GString GString;
> ^
> In file included from imquartz.c:30:
> In file included from ../../gdk/quartz/gdkquartz.h:23:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:422:53: error: format argument not an NSString
> FOUNDATION_EXPORT void NSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2);
> ^~~~~~~~~~~~~~~~~~~~~~~
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:85:49: note: expanded from macro 'NS_FORMAT_FUNCTION'
> #define NS_FORMAT_FUNCTION(F,A) __attribute__((format(__NSString__, F, A)))
> ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:423:31: error: unknown type name 'NSString'; did you mean 'GString'?
> FOUNDATION_EXPORT void NSLogv(NSString *format, va_list args) NS_FORMAT_FUNCTION(1,0);
> ^
> /Users/urshofer/cerbero/dist/darwin_x86_64/include/glib-2.0/glib/gstring.h:39:33: note: 'GString' declared here
> typedef struct _GString GString;
> ^
> In file included from imquartz.c:30:
> In file included from ../../gdk/quartz/gdkquartz.h:23:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:423:63: error: format argument not an NSString
> FOUNDATION_EXPORT void NSLogv(NSString *format, va_list args) NS_FORMAT_FUNCTION(1,0);
> ^~~~~~~~~~~~~~~~~~~~~~~
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:85:49: note: expanded from macro 'NS_FORMAT_FUNCTION'
> #define NS_FORMAT_FUNCTION(F,A) __attribute__((format(__NSString__, F, A)))
> ^
> In file included from imquartz.c:30:
> In file included from ../../gdk/quartz/gdkquartz.h:23:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:6:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:8:1: error: expected identifier or '('
> @class NSString;
> ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:16:52: error: unknown type name 'NSString'; did you mean 'GString'?
> FOUNDATION_EXPORT void NSSetZoneName(NSZone *zone, NSString *name);
> ^
> /Users/urshofer/cerbero/dist/darwin_x86_64/include/glib-2.0/glib/gstring.h:39:33: note: 'GString' declared here
> typedef struct _GString GString;
> ^
> In file included from imquartz.c:30:
> In file included from ../../gdk/quartz/gdkquartz.h:23:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:6:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:17:19: error: unknown type name 'NSString'; did you mean 'GString'?
> FOUNDATION_EXPORT NSString *NSZoneName(NSZone *zone);
> ^
> /Users/urshofer/cerbero/dist/darwin_x86_64/include/glib-2.0/glib/gstring.h:39:33: note: 'GString' declared here
> typedef struct _GString GString;
> ^
> In file included from imquartz.c:30:
> In file included from ../../gdk/quartz/gdkquartz.h:23:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:8:1: error: expected identifier or '('
> @class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
> ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:9:1: error: expected identifier or '('
> @class Protocol;
> ^
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:13:1: error: expected identifier or '('
> @protocol NSObject
> ^
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> 20 errors generated.
> make[5]: *** [imquartz.lo] Error 1
> make[4]: *** [included-modules] Error 2
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> Running command 'make'
>
> Recipe 'gtk+3' failed at the build step 'compile'
> Select an action to proceed:
> [0] Enter the shell
> [1] Rebuild the recipe from scratch
> [2] Rebuild starting from the failed step
> [3] Skip recipe
> [4] Abort
Is there a solution for this - I'm not really experienced in compiling on osx...
All the best,
Urs
More information about the gstreamer-devel
mailing list