[plt-scheme] FFI with Mac OS X framework?

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Sat Oct 3 20:27:24 EDT 2009

Many thanks Eli and Jay. Naming the file inside the .framework directory 
works. I just thought maybe it can be made automatic, because now I 
write "foo.framework/foo" instead of just "foo".


Eli Barzilay wrote:
> The `ffi-lib' function will use dlopen() directly, so if it works with
> some file in a .framework directory you should be fine with naming the
> file.  There are cases where the OS (dlopen(), actually) does some
> searching, but IIRC, on OS X this is not done and you're expected to
> use hard-wired paths where the library is expected to be.
> On Oct  3, Jay McCarthy wrote:
>> The framework is a directory that contains a bunch of differently
>> compiled frameworks. You can go in and get the right one and give
>> the path to the FFI. That will help you make due until the FFI can
>> handle it directly.
>> Jay
>> On Sat, Oct 3, 2009 at 10:13 AM,  <czhu at cs.utah.edu> wrote:
>>> On a Mac computer:
>>>> (system-type 'so-suffix)
>>> #".dylib"
>>> So there is no #".framework" support for FFI? Could I ask why?
>>> According to http://en.wikipedia.org/wiki/Dynamic_loading , the
>>> actual call to dlopen is nearly the same.

Posted on the users mailing list.