[Gd-hackers] Cocoa support
vincent at wallflower.co.za
Mon Sep 26 04:51:45 UTC 2005
I am on Mac OS 10.4.2. If I knew anything about Perl I would offer to
On 25 Sep 2005, at 9:29 PM, Rob Myers wrote:
> On 25 Sep 2005, at 16:24, Vincent Coetzee wrote:
>> I am attempting to build the cocoa library in platforms/, and i2d
>> (whatever that is) is puking with
> Oh, I wrote that. "Interface To Dylan". It's a very, very hacky
> Perl script that reads the Foundation and AppKit headers and
> creates Dylan wrappers for them. To quote the comment at the head
> of the file:
> # ...i2d is therefore
> # very fragile and will require extensive maintenance as Cocoa grows.
>> gcc -traditional-cpp -dD -E -Wno-four-char-constants -arch ppc -
>> Wp,-lang-objc -P \
>> -o flat-cocoa.h \
>> -I/System/Library/Frameworks/AppKit.framework/Headers \
>> AppKit.h \
>> -D TARGET_CPU_PPC
>> platform/cocoa/tools/i2d --module cocoa-wrappers -header AppKit/
>> Appkit.h flat-cocoa.h
>> Undefined type for __const char* at /Users/vincent/Development/
>> source/dylan/gwydion-dylan-2.4.0/platform/cocoa/tools/i2d line
>> 250, <INFILE> line 8317.
>> make: *** [cocoa-wrappers.dylan] Error 255
>> although this is after I hacked the makefile to add -D
>> TARGET_CPU_PPC since errors were occurring since this was not
>> Any ideas ?
> Which version of MacOS are you on?
> __const is obviously the problem. I wonder where that's come from?
> It seems to be defined in Kernel.framework: headers/sys/cdefs.h.
> If you define __const as const that should help. But it seems to
> be a problem with the preprocessor thinking it's not compiling ANSI C.
> I'll get the developer tools installed on my iBook and take a look
> - Rob.
> Gd-hackers mailing list
> Gd-hackers at gwydiondylan.org
More information about the Gd-hackers