[Openmcl-devel] specify different directories for .cdb files?

Rick Taube taube at uiuc.edu
Tue Dec 6 04:01:16 PST 2005


is it possible to use .cdb files from a directory other than under 
"ccl:darwin-headers;" ?
I tried resolving my "ccl:darwin-headers;gtk2;" to a differnet 
directory by adding a translation using 
ccl::add-logical-pathname-translation .It works in the sense that 
probe-file and directory can find things, but simply adding a 
translation doesnt seem to be sufficient to actually use the interface. 
I was hoping I could keep users from having to install stuff under ccl.
--rick

;Compiling "/Lisp/cm-gtk/gtkffi-openmcl.lisp"...
 > Error in process listener(1): Interface directory 
ccl:darwin-headers;gtk2; does not exist.
 > While executing: #<Anonymous Function #x85EA04E>
 > Type :POP to abort.

? (directory "ccl:darwin-headers;gtk2;*.cdb")
(#P"/Lisp/cm-gtk/openmcl/constants.cdb" 
#P"/Lisp/cm-gtk/openmcl/functions.cdb" 
#P"/Lisp/cm-gtk/openmcl/objc-classes.cdb" 
#P"/Lisp/cm-gtk/openmcl/objc-methods.cdb" 
#P"/Lisp/cm-gtk/openmcl/records.cdb" #P"/Lisp/cm-gtk/openmcl/types.cdb" 
#P"/Lisp/cm-gtk/openmcl/vars.cdb")

? (directory "ccl:darwin-headers;cocoa;*.cdb")
(#P"/Lisp/ccl/darwin-headers/cocoa/constants.cdb" 
#P"/Lisp/ccl/darwin-headers/cocoa/functions.cdb" 
#P"/Lisp/ccl/darwin-headers/cocoa/objc-classes.cdb" 
#P"/Lisp/ccl/darwin-headers/cocoa/objc-methods.cdb" 
#P"/Lisp/ccl/darwin-headers/cocoa/records.cdb" 
#P"/Lisp/ccl/darwin-headers/cocoa/types.cdb" 
#P"/Lisp/ccl/darwin-headers/cocoa/vars.cdb")



;; this is what I used:

(ccl::add-logical-pathname-translation
  "ccl"
  (list "darwin-headers;gtk2;*.*"
        (make-pathname :name :wild :type :wild
                       :directory
                       (append (pathname-directory *load-truename*)
                               (list "openmcl"))
                       :defaults *load-truename*)))




More information about the Openmcl-devel mailing list