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

From: Eli Barzilay (eli at barzilay.org)
Date: Sat Oct 3 15:18:21 EDT 2009

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.

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

Posted on the users mailing list.