2 Using ffi.el

Make sure that ffi.el is on your load path. Then just require it. Assuming one is working in a checkout of the repository, evaluating the below snippet from an Emacs buffer visiting this Org file should do the right thing.

(add-to-list 'load-path
             (expand-file-name (file-name-concat default-directory "src")))
(require 'ffi)

You should build the test library (make test)