[cells-gtk-devel] Error on SBCL: Unable to load foreign library: libgobject-2.0

Peter Denno peter.denno at nist.gov
Wed Aug 9 23:24:37 UTC 2006


On Wednesday 09 August 2006 18:26, Jason Dunsmore wrote:
> I'm trying to use cells-gtk-2006-06-30 with SBCL 0.9.14.  cells-gtk
> loads fine with (load "load"), but when I go to run the demo with
> (test-gtk:gtk-demo t), I get the error:
>
> Unable to load foreign library: libgobject-2.0
>    [Condition of type CFFI:LOAD-FOREIGN-LIBRARY-ERROR]
>
> I'm running Debian testing, and libgobject-2.0.so.0 is in /usr/lib.
> I've tried: symlinking libgobject-2.0.so.0 to libgobject-2.0.so,
> adding /usr/lib to /etc/ld.so.conf and running ldconfig, applying the
> fix listed at
> http://common-lisp.net/pipermail/cells-gtk-devel/2006-July/000214.html, and
> using CVS version of cells-gtk, but I still get the error.  After each
> attempt, I've removed all fasls and reloaded slime.
>
> Any other ideas?

Huh! It sounds like you tried all the right things. I tried it with 0.9.14 and 
didn't have a problem.

The relevant code is in cells-gtk/root/gtk-ffi/gtk-ffi.lisp Try evaluating the 
load-gtk-libs in there. It calls (cffi:load-foreign-library :gobject). Try 
evaluating just that. 

Is your object file called libgobject-2-0.so ? 

You might study cffi:load-foreign-library, there isn't too much to it.



>
> Thanks,
> Jason Dunsmore
> _______________________________________________
> cells-gtk-devel site list
> cells-gtk-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/cells-gtk-devel

-- 
- Best regards,
   Peter



More information about the cells-gtk-devel mailing list