LeAnthony Mathews <[EMAIL PROTECTED]> writes:

> O.K. after taking a day or two off trying to get the wxCL GUI examples to run
> on my windows XP machine I have given it another try here are my issues:
> 1..using the slime init file:
> site-init.lisp
> I added the line:
> (register-source-directory "C:\lispbox-0.6\packages\wxcl\")
> which is is the path with wxCL .asd file for my computer
> 2.  using the defpackage.lisp inside ..\wxcl\source\defpackage.lisp
> I added:
> (:export #: C:\lispbox-0.6\packages\wxcl\lib\wxc-msw2.6.2.dll
> which is the the exact path to the wxcl .dll
> 3. I loaded emacs/slime/cl(works very well)
> 4. I load hello-world.lisp from the examples in the wxcl directory
> 5. I compile and I get the following error. 
>   #P"C:\\lispbox-0.6\\packages\\wxcl\\examples\\hello-world.lisp" @4>: there
> is no package with name #1="WXCL-WINDOWS"
>    [Condition of type SYSTEM::SIMPLE-PACKAGE-ERROR]
> My thought is it is the way I am introducing the .asd into the site-init.lisp
> file.  Here are the alternate (register-source-directory) i tried:

You seem to have a misconception. Packages are not related to ASDF in
any way. Packages are part of Common Lisp. I probably have an older
version of WXCL, but it doesn't have WXCL-WINDOWS package anywhere. My
hello-world.lisp starts with:

(asdf:operate 'asdf:load-op 'wxcl)
(use-package "FFI")
(use-package :wxCL)
(use-package :wx_main)
(use-package :wxFrame)
(use-package :wx_wrapper)
(use-package :wxWindow)

There is no :wxcl-windows package anywhere...

ASDF refers not to packages, but to components. When it can't find a
component, such as wxcl it writes `component "wxcl" is not found'.
This seems not to be the case, so probably the error is unrelated to
your ASDF setup. As another user pointed out, you shouldn't use
backward slashes (\) for pathes to files, because \ is a special
character for Lisp, which "escapes" the character that follows it. So,
Lisp reader translates "c:\lisp" to "c:lisp" and "c:\\lisp" to
"c:\lisp".

-- 
   / Timofei Shatrov (grue at mail dot ru)
 ,/  *This sig is under construction*
 L'  <--that's a shovel!

_______________________________________________
Gardeners mailing list
[email protected]
http://www.lispniks.com/mailman/listinfo/gardeners

Reply via email to