Problem loading uffi on Windows
MichaelL-mTnyLpuDpHxWk0Htik3J/[email protected]
| Newsgroups | gmane.lisp.clsql.devel |
|---|---|
| Message-ID | <OF117AC91F.19EDCE58-ON85256F5B.00039667-85256F5B.00040442@frogware.com> |
I just installed 3.1.1 on a Windows 2000 machine and tried to run the
tests. Two issues...
First, the docs don't mention the dependency on the "rt" package. (I
bring that up because they do mention things like the dependency on MD5.)
Second, I had a problem running the tests because of this var def in
clsql-uffi-loader.lisp:
(defvar *clsql-uffi-library-filename*
(uffi:find-foreign-library
'(#+64bit "uffi64" "uffi")
`(,clsql-uffi-system::*library-file-dir*
"/usr/lib/clsql/")
:drive-letters '("C")))
On my computer my Lisp libraries are on the D: drive.
I did a search and found the same def in each of the loader
files:
db2-loader.lisp
mysql-loader.lisp
odbc-loader.lisp
oracle-loader.lisp
postgresql-loader.lisp
postgresql-socket-api.lisp
sqlite3-loader.lisp
sqlite-loader.lisp
On my computer most of those are on the D: drive too. :-)
(Some of the above already mention additional drives, some don't.)
Adding the D drive fixed the problem, but... this doesn't seem like
the right approach on Windows. Windows searches for DLLs in the current
app dir and on the path; this other approach is hardcoding a path--a
development path at that, on a particular machine!--into the Lisp image,
no?
Wouldn't it be better not to specify a path at all and rely on O/S
behaviour?
In any event: very impressive package. Thank you!