On Mon, Feb 15, 2010 at 10:51 AM, Tobias Rautenkranz <span dir="ltr"><<a href="mailto:tobias@rautenkranz.ch">tobias@rautenkranz.ch</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">> Now I get an undefined symbol instead. (Which I suppose is an improvement<br>
> over the last error.)<br>
</div>Looks like OS X does not like underlinking libraries. I don't know how to fix<br>
this -- the attached patch removes the underlinking for libclsmoke.<br>
(cl-smoke.qt.core has the same problem)<br>
<br>
patch -p1 < osx2.patch # in smoke/<br>
<br>
Hopefully the improvement will be a little more obvious ;)<br>
Thanks for testing.<br>
</blockquote></div><br>With both of your patches applied, libclsmoke compiles properly. Also, libclsmokeqtcore compile with the following patch:<div><br></div><div><div>hunk ./src/lib/CMakeLists.txt 14</div><div>-add_library(clsmokeqtcore MODULE ${QT_SMOKE_SOURCES})</div>
<div>+add_library(clsmokeqtcore SHARED ${QT_SMOKE_SOURCES})</div><div><br></div><div>However, when I attempt to load cl-smoke.qt.core in sbcl, cffi throws fits, first because your cffi:define-foreign-library statements are missing a :darwin case (and all of the libraries compiled with a .dylib extension, instead of a .so extension), and second because it refuses to find the libraries even when I have put them on cffi:*foreign-library-directories*.</div>
<div><br></div><div>Thanks again for the help.</div><br>-- <br>Elliott Slaughter<br><br>"Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay<br>
</div>