Lisp HUG Maillist Archive

Problem registering foreign modules

I am suing Lispworks 6 32bit on Snow Leopard. I am trying to load a dynamic library but I am getting an error that I do not know how to fix:

(setf (lispworks:environment-variable "DYLD_LIBRARY_PATH") "/Applications/MATLAB_R2010a.app/bin/maci")
(fli:register-module "libeng" :connection-style :immediate)

Error: Could not register handle for external module "libeng":
 Library not loaded: libtbb.dylib
  Referenced from: /Applications/MATLAB_R2010a.app/bin/maci/libmwfl.dylib
  Reason: image not found.

But I can load that module no problem from the listener:

(fli:register-module "libtbb" :connection-style :immediate)
"libtbb"
(fli:connected-module-pathname "libtbb")
#P"/Applications/MATLAB_R2010a.app/bin/maci/libtbb.dylib"

Any help would be greatly appreciated.

-Ryan

Re: Problem registering foreign modules

If I copy libtbb.dylib to /usr/lib everything works fine. Why is register-module not looking in DYLD_LIBRARY_PATH for the dependent modules?

On Tue, Apr 27, 2010 at 2:15 PM, Ryan Hope <rmh3093@gmail.com> wrote:
I am suing Lispworks 6 32bit on Snow Leopard. I am trying to load a dynamic library but I am getting an error that I do not know how to fix:

(setf (lispworks:environment-variable "DYLD_LIBRARY_PATH") "/Applications/MATLAB_R2010a.app/bin/maci")
(fli:register-module "libeng" :connection-style :immediate)

Error: Could not register handle for external module "libeng":
 Library not loaded: libtbb.dylib
  Referenced from: /Applications/MATLAB_R2010a.app/bin/maci/libmwfl.dylib
  Reason: image not found.

But I can load that module no problem from the listener:

(fli:register-module "libtbb" :connection-style :immediate)
"libtbb"
(fli:connected-module-pathname "libtbb")
#P"/Applications/MATLAB_R2010a.app/bin/maci/libtbb.dylib"

Any help would be greatly appreciated.

-Ryan



--
Ryan Hope, M.S.
CogWorks Lab
Department of Cognitive Science
Rensselaer Polytechnic Institute
Updated at: 2020-12-10 08:39 UTC