Re: [Pyobjc-dev] GNUstep support
Brought to you by:
ronaldoussoren
From: David B. <te...@bi...> - 2003-07-08 21:37:06
|
[Replying to yourself is so crass....] On Tuesday 08 July 2003 02:34 pm, David Bishop wrote: > <snip build of libffi that worked> > Performing task: Generating wrappers & stubs > sh: line 1: /usr/bin/sw_vers: No such file or directory > Traceback (most recent call last): > File "Scripts/CodeGenerators/cocoa_generator.py", line 32, in ? > VER =3D '.'.join(VER.split('.')[:2]) > AttributeError: 'NoneType' object has no attribute 'split' > Task 'Generating wrappers & stubs' failed [256] I worked around this by putting the same os checking code into=20 cocoa_generator.py as is in setup.py. It now only tries to call sw_vers on= =20 OSX machines. The next snag I ran into was farther down, where=20 cocoa_generator tries to run various commands 1) on OSX only things like=20 WebKit and AddressBook, but also 2) in an OSX specfic manner=20 (/System/Library/Frameworks, etc). I now have it checking for GNUstep and= =20 adjusting accordingly. My hacked cocoa_generator available upon request. = =20 The only garuntee is that it works for me :-) Now that it's getting to the actual build, I'm hitting the same snag I get= =20 when trying to build ocunit, namely that Gnu/GCC 3.3 doesn't ship with=20 objc/runtime.h, or various other .h files that are apparently available in= =20 OSX (objc/objc-class.h specifically). This breaks any calls to=20 class_add_method_list or (in ocunit) class_getClassMethod. Now, Marco=20 Sheurer was going to get back to me on what the proper fix is, but he hasn'= t=20 as of yet (this only came up last week, so I'm not crying foul). So, any suggestions? I'm in no rush, so I can afford to spend the time to= =20 work through these things. All I need is someone better at this stuff than= I=20 am telling me what to do :-) =2D-=20 "Sorry about the whole 'bomb' thing" - Bruce Rollins D.A.Bishop |