Hi,
Could someone give us a few pointers on how to get celtk running on linux/sbcl please. I've downloaded the latest source from cvs for cells, and celtk. The demo for ltk runs fine but I suspect that might be irrelevant.
When I (require :celtk) after linking the relevant asd files to my ~/.sbcl/systems, I get some errors, the first of which is that "utils-kt:eval-now! is not defined".
If I just keep on accepting the errors/warnings it does eventually compile. Howver, when I try (ctk::tk-test), I get "Unable to load foreign library: libtcl.so". This file doesn't seem to belong to any debian package.
Cheers, Andy
p.s This program has the best name ever!! (I support Glasgow "Celtk" football team)
Andy Chambers wrote:
Hi,
Could someone give us a few pointers on how to get celtk running on linux/sbcl please. I've downloaded the latest source from cvs for cells, and celtk. The demo for ltk runs fine but I suspect that might be irrelevant.
No, that is important, it means you have Tcl/Tk installed properly.
When I (require :celtk) after linking the relevant asd files to my ~/.sbcl/systems, I get some errors, the first of which is that "utils-kt:eval-now! is not defined".
That might be because ASDF sucks so bad. Try ":force t" so it always recompiles and loads as it goes.
If I just keep on accepting the errors/warnings it does eventually compile. Howver, when I try (ctk::tk-test), I get "Unable to load foreign library: libtcl.so". This file doesn't seem to belong to any debian package.
Ah, hang on, LTk talks to wish.exe over a pipe, I talk to Tcl/Tk via the FFI. So Ltk needs wish.exe, Celtk (glad you liked the name!) needs the .SOs. You might be able to get them from ActiveState directly, but they should not be /that/ hard to find.
Yes, folks have run Celtk on Linux and Mac OS/X.
Wish I could help more, but I do not do Linux.
best, kt
On Wednesday 30 May 2007 08:22, Andy Chambers wrote:
Howver, when I try (ctk::tk-test), I get "Unable to load foreign library: libtcl.so". This file doesn't seem to belong to any debian package.
You can work around this by creating a symlink
eg. first find which version of tcl is installed $ ls /usr/lib/libtcl* /usr/lib/libtcl8.4.so.0
then as root create a symlink $ ln -s /usr/lib/libtcl8.4.so.0 /usr/lib/libtcl.so
The proper solution is for the shared library loader to find the file itself, I'm working on a fix this.
On 5/30/07, jan jan.marecek@gmail.com wrote:
On Wednesday 30 May 2007 08:22, Andy Chambers wrote:
Howver, when I try (ctk::tk-test), I get "Unable to load foreign library: libtcl.so". This file doesn't seem to belong to any debian package.
You can work around this by creating a symlink
eg. first find which version of tcl is installed $ ls /usr/lib/libtcl* /usr/lib/libtcl8.4.so.0
then as root create a symlink $ ln -s /usr/lib/libtcl8.4.so.0 /usr/lib/libtcl.so
The proper solution is for the shared library loader to find the file itself, I'm working on a fix this.
Thanks for all the help. After dealing with the distractions of life and finally getting round to trying out the advice above, I can (require :celtk) without any errors. Now though, when I try to run the test program (ctk:ltktest), I get following backtrace
Backtrace: 0: (SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERROR) 1: ("foreign function: call_into_lisp") 2: ("foreign function: funcall0") 3: ("foreign function: undefined_alien_function") 4: (TOGL-CREATE-FUNC #.(SB-SYS:INT-SAP #X05000F78)) 5: (TK-TOGL-INIT #.(SB-SYS:INT-SAP #X0810DCD8)) 6: (RUN-WINDOW CELTK-USER::LTKTEST-CELLS-INSIDE T)
I can load togl.lisp so I think it can find the libraries ok but it can't seem to find togl-create-func. Any idea why? I feel like I'm pretty close to seeing those gears :-)
--Andy Chambers
-- jan _______________________________________________ cells-devel site list cells-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cells-devel
Andy Chambers wrote:
On 5/30/07, jan jan.marecek@gmail.com wrote:
On Wednesday 30 May 2007 08:22, Andy Chambers wrote:
Howver, when I try (ctk::tk-test), I get "Unable to load foreign library: libtcl.so". This file doesn't seem to belong to any debian package.
You can work around this by creating a symlink
eg. first find which version of tcl is installed $ ls /usr/lib/libtcl* /usr/lib/libtcl8.4.so.0
then as root create a symlink $ ln -s /usr/lib/libtcl8.4.so.0 /usr/lib/libtcl.so
The proper solution is for the shared library loader to find the file itself, I'm working on a fix this.
Thanks for all the help. After dealing with the distractions of life and finally getting round to trying out the advice above, I can (require :celtk) without any errors. Now though, when I try to run the test program (ctk:ltktest), I get following backtrace
Backtrace: 0: (SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERROR) 1: ("foreign function: call_into_lisp") 2: ("foreign function: funcall0") 3: ("foreign function: undefined_alien_function") 4: (TOGL-CREATE-FUNC #.(SB-SYS:INT-SAP #X05000F78)) 5: (TK-TOGL-INIT #.(SB-SYS:INT-SAP #X0810DCD8)) 6: (RUN-WINDOW CELTK-USER::LTKTEST-CELLS-INSIDE T)
I can load togl.lisp so I think it can find the libraries ok but it can't seem to find togl-create-func. Any idea why? I feel like I'm pretty close to seeing those gears :-)
Sorry if this has been covered, but: Togl does not come with Tc/Tk (or did not when I installed). Go here if this might be your problem:
Pretty amazing install/build instructions, IIRC.
The acid test on many questions you might have is: Can you do it from wish? ie, run wish.exe and try XXXX manually or by using a Tcl script provided by the folks offering XXXX. When /that/ works you can focus debugging on Celtk. (I am not discouraging questions, just sharing with you my own attack sequence on some problems; it is really nice being able to hop over to wish to do a sanity check before staring longer at a Celtk problem).
kt
On 6/7/07, Ken Tilton kennytilton@optonline.net wrote:
Sorry if this has been covered, but: Togl does not come with Tc/Tk (or did not when I installed). Go here if this might be your problem:
http://togl.sourceforge.net/
Pretty amazing install/build instructions, IIRC.
The acid test on many questions you might have is: Can you do it from wish? ie, run wish.exe and try XXXX manually or by using a Tcl script provided by the folks offering XXXX. When /that/ works you can focus debugging on Celtk. (I am not discouraging questions, just sharing with you my own attack sequence on some problems; it is really nice being able to hop over to wish to do a sanity check before staring longer at a Celtk problem).
Yes once I'd downloaded all the pre-requisites, togl installed fine and at least some of their demos work (my display doesn't support the overlay script and index/stereo cause X errors).
....and now I've got some of the celtk demos running too! The gears one came first (thankyou Peter), closely followed by the ltktest-ci. I had to remove references to SystemButtonFace, because my tk didn't recognize that symbol. I just changed changed them to "white" which seems to work ok.
Now I just have to learn cells :-)
--Andy
kt