loading of clsql_uffi.dll in delivere d application (Lispworks)
Asbjørn Bjørnstad <asbjxrn-ltuHofWucvRH4x6Dk/[email protected]> Thu, 7 Dec 2006 12:13:21 +0000 (UTC)
| Newsgroups | gmane.lisp.clsql.devel |
|---|---|
| Message-ID | <[email protected]> |
I had some problems using clsql in a delivered app.
It seems the path to the foreign library/dll is set
when clsql is loaded during delivery, so if the DLL
is located in a different place when the delivered
excutable is run, it fails to load the DLL.
For some reason the sqlite3 DLL seems to work fine,
although I couldn't find any difference in how the
DLLs are loaded.
What I've ended up doing, is adding
(push (make-pathname :name nil :type nil :defaults (lisp-image-name))
clsql:*foreign-library-search-paths*
(clsql-uffi::load-uffi-foreign-library)
To my delivery start function, this seems to work,
but there's the nasty :: in there which indicates
that it may not be the right thing to do?
--
-asbjxrn