[Ecls-list] load-foreign-library
Rick Taube
taube at uiuc.edu
Sun Oct 22 14:04:29 UTC 2006
>
> I think I have a simple fix. Can you edit cffi/src/cffi-ecl.lisp and
> change the definition of %load-foreign-library to look as follows?
>
> (defun %load-foreign-library (name)
> "Load a foreign library from NAME."
> (si:load-foreign-module name))
Juan -- This new defun didnt help because si:load-foreign-module cant
seem to load the lib at all:
CM> (si:load-foreign-module "/usr/local/lib/libportmidi.dylib")
LOAD-FOREIGN-MODULE: Could not load foreign module "/usr/local/lib/
libportmidi.dylib" (Error: "")
Broken at EVAL.
CM>>
CM>> (probe-file "/usr/local/lib/libportmidi.dylib")
#P"/usr/local/lib/libportmidi.dylib"
CM>> ^D
galen:/lisp/portmidi hkt$ file "/usr/local/lib/libportmidi.dylib"
/usr/local/lib/libportmidi.dylib: Mach-O fat file with 2 architectures
/usr/local/lib/libportmidi.dylib (for architecture ppc): Mach-
O dynamically linked shared library ppc
/usr/local/lib/libportmidi.dylib (for architecture i386): Mach-
O dynamically linked shared library i386
More information about the ecl-devel
mailing list