< Back to IRCAM Forum

loading cl-libraries in om

Hello,
I have been trying to load a cl library without success in om (specifically cl-mysql).
Is it possible to load such a library from within om?

I know that Lispworks has an SQL package, but it is not included in the Personal Edition. Further problems with LwPE arise since it is only 32 bits and the current MySQL is 64…

Any ideas on how I might load cl-mysql?
Any chance that it would be possible to integrate Quicklisp with OM?

All best,

Juan Cristóbal

Hello Juan Cristóbal

In principle OM embeds a full Common Lisp environment (except that it can not compile files).
So nothing prevents you from loading any CL code or library.

What specifically does not work ?

Jean

Hello Jean,

Thank you for your reply.

I had to push “/usr/local/lib” to cff:foreign-library-directories, and change the :compile-topform in the system code for the library. However, I am loading each file individaually. I wonder if there is a way to load the system using ASDF?

Also, will the value of cffi:foreign-library-directories be stored in the OM-Workspace or do I have to push the directory every time?

Though it seems that I can put all the files into an om-library and load it in om now…

All best,

jc