[Gimp-developer] Building GIMP on OSX 10.9



Hi,

I'm building GIMP on OS X 10.9 with an updated version
of Clayton Walker's JHBuild script. The command I use is
JHB=gimp GIMP_SDK=10.9 jhbuild build gimp-osx

Now that I have all my dependencies built, building GIMP
itself fails with the following messages:



Making all in core
make[4]: warning: -jN forced in submake: disabling jobserver mode.
  CC     gimpmarshal.o
  CC     gimp-user-install.o
  CC     gimpbrushpipe.o
  CC     gimpbrushpipe-load.o
In file included from gimp-user-install.c:40:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.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.9.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:371:1: error:
      expected identifier or '('
@class NSString, Protocol;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:373:19: error:
      unknown type name 'NSString'; did you mean 'GString'?
FOUNDATION_EXPORT NSString *NSStringFromSelector(SEL aSelector);
                  ^
/Users/.../gimp/10.9/inst/include/glib-2.0/glib/gstring.h:39:33: note: 'GString' declared here
typedef struct _GString         GString;
                                ^


The following error is repeated many times until the build breaks with
the message 'Too many errors emitted, stopping now [-ferror-limit=]':

In file included from gimp-user-install.c:40:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.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.9.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:374:44: error:
      unknown type name 'NSString'; did you mean 'GString'?
FOUNDATION_EXPORT SEL NSSelectorFromString(NSString *aSelectorName);
                                           ^
/Users/.../gimp/10.9/inst/include/glib-2.0/glib/gstring.h:39:33: note: 'GString' declared here
typedef struct _GString         GString;



I have glib 2.39.1 installed and the sources I build with are
in [GIMP's osx-build branch] plus Simone's and su_v's patches
to treat C files as Objective C files. However, this doesn't
seem to solve the problem.

Does anybody have a clue how to fix these errors?

Thank you in advance,

Sven


[GIMP's osx-build branch]:
https://git.gnome.org/browse/gimp/tree/build/osx?h=osx-build


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]