Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libffi shared library name #75

Open
Zulu-Inuoe opened this issue May 7, 2017 · 0 comments
Open

libffi shared library name #75

Zulu-Inuoe opened this issue May 7, 2017 · 0 comments

Comments

@Zulu-Inuoe
Copy link

When loading cl-autowrap/libffi, I get an error about not being able to open the shared library "libffi"

Latest libffi by default will build out as libffi-6

If you see CFFI's libffi loading, their form looks like this:

(define-foreign-library (libffi)
  (:darwin (:or "libffi.dylib" "libffi32.dylib" "/usr/lib/libffi.dylib"))
  (:solaris (:or "/usr/lib/amd64/libffi.so" "/usr/lib/libffi.so"))
  (:openbsd "libffi.so")
  (:unix (:or "libffi.so.6" "libffi32.so.6" "libffi.so.5" "libffi32.so.5"))
  (:windows (:or "libffi-6.dll" "libffi-5.dll" "libffi.dll"))
  (t (:default "libffi")))

(see here)

Autowrap's looks like this:

(cffi:define-foreign-library libffi
  (:darwin (:or (:framework "libffi") (:default "libffi")))
  (:unix "libffi.so")
  (:windows "libffi.dll")
  (t (:default "libffi")))

(cffi:use-foreign-library libffi)

I think autowrap should use the same form CFFI does, for completeness

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant