[Cl-smoke] Building cl-smoke on Mac OS X

Elliott Slaughter elliottslaughter at gmail.com
Tue Feb 16 00:36:31 CET 2010


On Mon, Feb 15, 2010 at 10:51 AM, Tobias Rautenkranz
<tobias at rautenkranz.ch>wrote:

> > Now I get an undefined symbol instead. (Which I suppose is an improvement
> > over the last error.)
> Looks like OS X does not like underlinking libraries. I don't know how to
> fix
> this -- the attached patch removes the underlinking for libclsmoke.
> (cl-smoke.qt.core has the same problem)
>
> patch -p1 < osx2.patch # in smoke/
>
> Hopefully the improvement will be a little more obvious ;)
> Thanks for testing.
>

With both of your patches applied, libclsmoke compiles properly. Also,
libclsmokeqtcore compile with the following patch:

hunk ./src/lib/CMakeLists.txt 14
-add_library(clsmokeqtcore MODULE ${QT_SMOKE_SOURCES})
+add_library(clsmokeqtcore SHARED ${QT_SMOKE_SOURCES})

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*.

Thanks again for the help.

-- 
Elliott Slaughter

"Don't worry about what anybody else is going to do. The best way to predict
the future is to invent it." - Alan Kay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tobias.rautenkranz.ch/pipermail/cl-smoke_tobias.rautenkranz.ch/attachments/20100215/80a3a6e1/attachment-0002.html>


More information about the Cl-smoke mailing list