Hi!
I am using CMUCL 19c on ubuntu 5.04 with slime.
I wanted to try the wonderful ltk (http://www.peter-herth.de/ltk/), but
I'm having some problems. According to the manual (incredibly
detailed!) I did:
(compile-file "ltk")
and I think it worked (lots and lots of lines scrolling; coudn't check
everyone)
then
(load "ltk")
worked fine.
(ltk::ltk-eyes) worked perfect, but
(ltktest) didn't; I got this:
Error in KERNEL:%COERCE-TO-FUNCTION: the function LTKTEST is
undefined.
[Condition of type UNDEFINED-FUNCTION]
Then I tried this:
(defun hola ()
(with-ltk()
(let ((b (make-instance 'button
:master nil
:text "Pulsame"
:command (lambda ()
(format t "hola~&")))))
(pack b))))
and got this when typed (hola)<enter>:
Error in KERNEL:%COERCE-TO-FUNCTION: the function WITH-LTK is
undefined.
[Condition of type UNDEFINED-FUNCTION]
Don't know what I'm doing wrong... :-/
Thank you very much,
Luis. :-)
LuisGLopez wrote:
> Hi!
>
> I am using CMUCL 19c on ubuntu 5.04 with slime.
>
> I wanted to try the wonderful ltk (http://www.peter-herth.de/ltk/), but
> I'm having some problems. According to the manual (incredibly
> detailed!) I did:
>
> (compile-file "ltk")
> and I think it worked (lots and lots of lines scrolling; coudn't check
> everyone)
>
> then
> (load "ltk")
> worked fine.
>
> (ltk::ltk-eyes) worked perfect, but
> (ltktest) didn't; I got this:
Looks like a package issue, since you are probably
doing this from the cl-user package do either
(ltk:ltktest) or (ltk::ltktest)
or
(use-package :ltk)
then (ltktest)
before doing anything alse
>
> Error in KERNEL:%COERCE-TO-FUNCTION: the function LTKTEST is
> undefined.
> [Condition of type UNDEFINED-FUNCTION]
>
> Then I tried this:
>
> (defun hola ()
> (with-ltk()
> (let ((b (make-instance 'button
> :master nil
> :text "Pulsame"
> :command (lambda ()
> (format t "hola~&")))))
> (pack b))))
same here, probably should be
(ltk:with-ltk ....
and
(make-instance 'ltk:button ...
Wade
>
> and got this when typed (hola)<enter>:
>
> Error in KERNEL:%COERCE-TO-FUNCTION: the function WITH-LTK is
> undefined.
> [Condition of type UNDEFINED-FUNCTION]
>
> Don't know what I'm doing wrong... :-/
>
> Thank you very much,
>
> Luis. :-)
>
Peter Herth ha escrito:
> (use-package :ltk) should do the magic trick :)
Thank you both!!! (Specially Peter for his great package!) It works!!!
One more question: Is there any way that slime loads ltk automatically
everytime?
LuisGLopez wrote:
> Peter Herth ha escrito:
>
>
>>(use-package :ltk) should do the magic trick :)
>
>
> Thank you both!!! (Specially Peter for his great package!) It works!!!
>
> One more question: Is there any way that slime loads ltk automatically
> everytime?
>
You could either put the load and use-package statements in your Lisp
init file or (outside of slime) start CMUCL, load Ltk and save a core
in this state and use this as your standard Lisp core - with Ltk
preloaded :)
Peter
--
Ltk, the easy lisp gui http://www.peter-herth.de/ltk/