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

(CFFI::FL-ERROR "Unable to load foreign library (~A).~% ~A" GLIB::GLIB "Error opening shared object \"libglib-2.0-0.dll\": ..) #33

Closed
trayres opened this issue Mar 31, 2017 · 2 comments

Comments

@trayres
Copy link

trayres commented Mar 31, 2017

I tried the following:
(ql:quickload "cl-cffi-gtk")

Trying:

cffi:*foreign-library-directories*
Nil

I'm not sure if quicklisp or Portacle is having the problem; I believe you can get around it by setting up the FFI library path relative to Portacle root dir, but I haven't tried it yet (first time I've really tried CL is Portacle! It's amazing!)

@Shinmera
Copy link
Member

I doubt that this has much of anything to do with Portacle. It looks much more like it's just an issue of CFFI not being able to find the needed library on your system. Are you sure that it's indeed installed?

@ukari
Copy link

ukari commented Feb 23, 2019

you could set cffi:*foreign-library-directories* by yourself, like the following example

(pushnew #p"c:/Windows/System32/" cffi:*foreign-library-directories* :test #'equal)
(cffi:load-foreign-library "the-dll-you-miss.dll")

Here is the link

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

3 participants