[cffi-devel] cffi newbie questions

Luís Oliveira luismbo at gmail.com
Wed Jul 14 20:55:34 UTC 2010


On Wed, Jul 14, 2010 at 6:30 PM, Kevin Smith <k2msmith at gmail.com> wrote:
> I need an interface from SBCL to a a set of "C" function in the OpenCV
> library.  I don't think there is a bindings package available for opencv, so
> I need to carve my own.

Ryan Davis seems to have plans to write such a bindings package as
well, and he has some prototype code over here:
<http://github.com/ryepup/cl-opencv>. Perhaps you should get in touch
with him.


> Should I go with the option of trying to use SWIG to generate some bindings
> or should I just dig into CFFI and hand-create the bindings that I need ?

I personally prefer to write the FFI definitions as I go along, but
this is not always practical if the library is too big and/or changes
very often.


>  Also if anyone can send me references to any examples,  I would appreciate.

CFFI's User Manual has a nice tutorial and its reference chapters also
have a bunch of small examples. cl-opengl, iolib, and osicat are some
libraries that use CFFI.

Hope that helps,

-- 
Luís Oliveira
http://r42.eu/~luis/




More information about the cffi-devel mailing list