[Openmcl-devel] CFFI testsystem fails to load dll

Louis Höfler louis.hoefler at gmx.de
Fri Jul 30 03:24:09 PDT 2010


Why does this happen?

(require 'asdf)
(setf asdf:*central-registry*
  '(*default-pathname-defaults*
	#P"C:\\Users\\Lis\\Documents\\work\\trivial-features\\"
	#P"C:\\Users\\Lis\\Documents\\work\\babel\\"
	#P"C:\\Users\\Lis\\Documents\\work\\rt\\"
	#P"C:\\Users\\Lis\\Documents\\work\\alexandria\\"
    #P"C:\\Users\\Lis\\Documents\\work\\cffi\\"
  ))
(asdf:load-system 'trivial-features)
(asdf:load-system 'babel)
(asdf:load-system 'alexandria)
(asdf:load-system 'rt)
(asdf:load-system 'cffi)
(pushnew #P"C:\\Users\\Lis\\Documents\\work\\cffi\\tests\\libtest\\x64\\Debug\\" cffi:*foreign-library-directories* :test #'equal)
(pushnew #P"C:\\Users\\Lis\\Documents\\work\\cffi\\tests\\libtest2\\x64\\Debug\\" cffi:*foreign-library-directories* :test #'equal)

(asdf:load-system 'cffi-tests)
(asdf:test-system 'cffi-tests)

OUTPUT---------------------------------
C:\Users\Lis\Documents\work\lisp_ccl>C:\ccl\wx86cl64.exe -e "(load \"C:\\Users\\Lis\\Documents\\work\\lisp_ccl\\cffi_test.lisp\")" 
; loading system definition from C:/Users/Lis/Documents/work/trivial-features/trivial-features.asd into #<Package "ASDF0">
; registering #<SYSTEM TRIVIAL-FEATURES #x210076D07D> as TRIVIAL-FEATURES
; loading system definition from C:/Users/Lis/Documents/work/babel/babel.asd into #<Package "ASDF0">
; registering #<SYSTEM BABEL #x21007FBAAD> as BABEL
; loading system definition from C:/Users/Lis/Documents/work/alexandria/alexandria.asd into #<Package "ASDF0">
; registering #<SYSTEM :ALEXANDRIA #x210080329D> as ALEXANDRIA
; loading system definition from C:/Users/Lis/Documents/work/rt/rt.asd into #<Package "ASDF0">
; registering #<SYSTEM :RT #x2100AFC34D> as RT
; loading system definition from C:/Users/Lis/Documents/work/cffi/cffi.asd into #<Package "ASDF0">
; registering #<SYSTEM CFFI #x2100B2CBFD> as CFFI
; loading system definition from C:/Users/Lis/Documents/work/cffi/cffi-tests.asd into #<Package "ASDF0">
; registering #<SYSTEM CFFI-TESTS #x2100C4137D> as CFFI-TESTS
> Error: Unable to load foreign library (LIBTEST).
>          Can't open shared library "libtest.dll"
> While executing: CFFI::FL-ERROR, in process listener(1).
> Type :GO to continue, :POP to abort, :R for a list of available restarts.
> If continued: Skip evaluation of (load "C:\\Users\\Lis\\Documents\\work\\lisp_ccl\\cffi_test.lisp")
> Type :? for other options.
1 > Welcome to Clozure Common Lisp Version 1.5-r13651  (WindowsX8664)!
?

OUTPUT END-----------------------------------

The paths are correct, and if I add the same directories tot he PATH environment variable everything is loaded, and it get another error.

Thank you, Louis.




More information about the Openmcl-devel mailing list