Notice: MediaWiki has been updated. Report any rough edges to marcan@marcan.st
Getting Started With Common Lisp
From OpenKinect
Revision as of 07:41, 13 December 2010 by Chaitanya (talk | contribs) (Created page with "== Dependencies == == libfreenect == Install libfreenect as described on the Installation page. == cffi, verrazano == The next step is to create [http://c...")
Contents
Dependencies
libfreenect
Install libfreenect as described on the Installation page.
cffi, verrazano
The next step is to create CFFI bindings for libfreenect. We can use Verrazano to generate these bindings for us. Installing these is simple via quicklisp:
(ql:quickload :cffi) (ql:quickload :verrazano)
Generate CFFI bindings
Generate the bindings with verrazano and load them
(verrazano:generate-binding (list :cffi :package-name :libfreenect :input-files (list "libfreenect/libfreenect.h"))) (load (compile-file #p"libfreenect.lisp"))
Load libfreenect in your Lisp image
On Linux, you would load libfreenect.so. Change the name accordingly for Mac and Windows.
(cffi:load-foreign-library #p"libfreenect.so")