Use FFI to dynamically load shared library on Mac OS 10.5

Joshua Gargus schwa at fastmail.us
Sat Jan 19 11:15:34 UTC 2008


On Jan 18, 2008, at 5:04 PM, John M McIntosh wrote:

>
> On Jan 18, 2008, at 2:21 PM, James Foster wrote:
>
>> The SqueakDebug flag was very helpful. I now have the message that  
>> it found the library but the library had the wrong architecture.  
>> Now that I think of it, this seems quite likely--I'm trying to load  
>> a 64-bit library into a 32-bit executable. I'll see if I can find a  
>> 32-bit library; I bet that will work. Thanks very much.
>>
>> James
>
> Thanks, I added this feature because diagnosing *why* a FFI call  
> didn't work was always most painful, find the library, nope, load  
> the library, nope, find the function, nope, oh does the data being  
> passed match the api: declare nope....   Lot's of nopes...

I didn't know about the SqueakDebug .plist option before tonight,  
either.  Coincidentally, I just ended up needing it (and I hadn't even  
planned on doing any Mac VM hacking).

Thanks!
Josh




More information about the Squeak-dev mailing list