[Openmcl-devel] Problems trying to create CDB files for the Addressbook framework

Gary Byers gb at clozure.com
Tue May 9 20:51:30 PDT 2006


Just as a guess - made mostly because the "No such file" errors
look so weird - but are the lines in the file terminated with LFs
or with with CRs ?

Note also that the AddressBook.h file #includes (it actually uses
the deprecated ObjC #import directive) the other C headers in
the framework's Headers directory, so it isn't necessary to translate
those .h files separately.

Actually getting the ObjC bridge to find methods/classes from
an add-on framework like AddressBook is harder than it should be (and
the fact that it seems to work for WebKit is misleading.)  Someone
managed to jump through all of the necessary hoops last fall; when
the issue came up again a few months ago,  I was knee-deep in x86-g64
stuff and didn't have time to get into a description of the issues
and how to work around them.

I don't have that excuse (as severely) now, but ... damn it, I'm
hungry and need to get something to eat before IHOP and Denny's are my
only choices.  I will try to remember the issues and write something
up (and think concretely about how they should be fixed) soon; please
nag if I don't.


On Tue, 9 May 2006, Gary King wrote:

> I'm trying to create CDB files for the addressbook framework but I'm
> not succeeding. I've made a sub-directory of darwin-headers named
> addressbook and put a sub-directory named C under that with the
> following populate.h in it:
>
>> #!/bin/sh
>> h-to-ffi.sh -D__OBJC__ /System/Library/Frameworks/
>> AddressBook.framework/Headers/AddressBook.h
>
> I've also tried this one:
>
>> #!/bin/sh
>>
>> h-to-ffi.sh /System/Library/Frameworks/AddressBook.framework/
>> Headers/ABTypedefs.h
>> h-to-ffi.sh /System/Library/Frameworks/AddressBook.framework/
>> Headers/ABGlobalsC.h
>> h-to-ffi.sh /System/Library/Frameworks/AddressBook.framework/
>> Headers/ABAddressBookC.h
>>
>
> In either case, I get errors like:
>
>> +++ /System/Library/Frameworks/AddressBook.framework/Headers/
>> ABTypedefs.h
>> : No such file or directoryary/Frameworks/AddressBook.framework/
>> Headers/ABTypedefs.h
>> +++ /System/Library/Frameworks/AddressBook.framework/Headers/
>> ABGlobalsC.h
>> : No such file or directoryary/Frameworks/AddressBook.framework/
>> Headers/ABGlobalsC.h
>> +++ /System/Library/Frameworks/AddressBook.framework/Headers/
>> ABAddressBookC.h
>> : No such file or directoryary/Frameworks/AddressBook.framework/
>> Headers/ABAddressBookC.h
>> [
>
> But trying "ls System/Library/Frameworks/AddressBook.framework/
> Headers/ABGlobalsC.h" works fine.
>
> Can anyone tell me what I'm missing?
>
> thanks,
> -- 
> Gary Warren King
> metabang.com
> http://www.metabang.com/
> (413) 210 7511
> gwking on #lisp (occasionally)
>
>
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel
>
>



More information about the Openmcl-devel mailing list