36

Are there any good, cross platform (SBCL and CLISP at the very least) easy to install GUI libraries?

Sébastien RoccaSerra
  • 16,731
  • 8
  • 50
  • 54
dsm
  • 10,263
  • 1
  • 38
  • 72

5 Answers5

25

Ltk is quite popular, very portable, and reasonably well documented through the Tk docs. Installation on SBCL is as easy as saying:

(require :asdf-install)
(asdf-install:install :ltk)

There's also Cells-Gtk, which is reported to be quite usable but may have a slightly steeper learning curve because of its reliance on Cells.

EDIT: Note that ASDF-INSTALL is integrated this well with SBCL only. Installing libraries from within other Lisp implementations may prove harder. (Personally, I always install my libraries from within SBCL and then use them from all implementations.) Sorry about any confusion this may have caused.

Matthias Benkard
  • 15,497
  • 4
  • 39
  • 47
  • It turned out to not really be a problem, just had to manually compile and load LTK, and then made me a new image, from then onwards its all gone smoothly. Thanks for the pointer. – dsm Sep 21 '08 at 12:19
  • I've found the documentation a little sparse myself, but I've run ltk.lisp through Albert and the output looks promising. – new123456 Nov 21 '11 at 01:52
7

clg is a binding of GTK for Common Lisp. Both complete and lispish.

If you want to design graphical interfaces in CL, you might want to take a look at CLIM, too, which some kind of standard API for GUIs. Allegro and Lispworks have their own implementation of it, and there's a free software one, McCLIM.

Nowhere man
  • 5,007
  • 3
  • 28
  • 44
5

Also, just found a Smoke library QT bindings, called CommonQt for CL

dsm
  • 10,263
  • 1
  • 38
  • 72
2

LispWorks comes with CAPI, it's portable accross Mac, Windows and Linux and even has some GUI-Builder. It's free for personal use.

Friedrich
  • 5,916
  • 25
  • 45
2

There's also wxCL, providing CFFI bindings for wxWidgets.

Frank Shearar
  • 17,012
  • 8
  • 67
  • 94
  • 2
    That project seems to be dead. The last upload to the sourceforge site was in 2006, and wxcl homepage has apparently been hacked and word-filtered. – SuperElectric Feb 06 '11 at 00:00
  • 4 years later it looks like the project and site are just fine, and the project's getting lots of commits (https://github.com/wxWidgets/wxWidgets/commits/master) – Frank Shearar Nov 05 '15 at 09:16
  • I don't see any Common Lisp bindings in the link you provided, and the www.wxcl-project.org site now points to some Japanese blog. – SuperElectric Nov 05 '15 at 14:36
  • Yeah, I meant to recall my comment - where I pointed to wxWidgets, not the CL bindings - and then it looked like SO didn't even add the comment, and here we are :/ – Frank Shearar Nov 06 '15 at 08:53