<div dir="ltr">I sent this email earlier, but then realized I was not subscribed. So I have know way of knowing whether it got spam-filtered out.<div>So here it is again. Sorry if this is a repeat question.</div><div><br><div class="gmail_quote"><br><div dir="ltr">The program I'm trying to load has several dependencies which I'm still trying to figure out.<div>One problem (I think) is that it loading some of its .dylib libraries from the wrong place.</div><div>I'd like to load them explicitly to help me debug the problem.</div><div>What is the correct way to do this.</div><div><br></div><div>Here's what I've tried (but it is not yet correct).</div><div>I've added the line to my .sbclrc file.</div><div><div><br></div><div>(cffi:load-foreign-library "/usr/local/Cellar/cairo/1.<wbr>12.16_1/lib/libcairo.dylib")</div><div><br></div><div>This seems indeed to load the dylib, but later my system calls (CFFI::LOAD-FOREIGN-<wbr>LIBRARY-PATH :LIBCAIRO "libcairo.dylib" NIL)</div></div><div>which apparently does not realise :LIBCAIRO is already loaded, so it</div><div>tries to load cairo again but from /usr/local/Cellar/cairo/1.14.<wbr>6_1/lib/libcairo.2.dylib</div><div><br></div><div>Is there a way for me to tell cffi:load-foreign-library that loading 1.12.16_1 loads :LIBCAIRO ?</div><div>I thought about calling cffi:define-foreign-library to associate :LIBCAIRO with the explicit path "/usr/local/Cellar/cairo/1.12.<wbr>16_1/lib/libcairo.dylib", but I don't see how to do that.</div><div><br></div><div>Can someone help?</div><div><br></div><div>Thanks.</div><span class="HOEnZb"><font color="#888888"><div>Jim</div></font></span></div>
</div><br></div></div>