/[lgtk]/lgtk/INSTALL.txt
ViewVC logotype

Contents of /lgtk/INSTALL.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations)
Thu May 13 17:38:52 2004 UTC (9 years, 11 months ago) by mmommer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
File MIME type: text/plain
Updated the callback.lisp address
1 How to install lgtk, a gtk+ interface for Common Lisp
2 ---------------------------------------------------------
3
4 If you want to use lgtk with SBCL, read
5
6 http://www.caddr.com/macho/archives/clump/2003-12/360.html
7
8 for instructons.
9
10 Otherwise, you will need the following things:
11
12 * The source code.
13
14 * Preferably, CMUCL 19a, or an SBCL with callback support.
15
16 Alternatively, you need a CMUCL 18e core with callback
17 support. You should grab a copy of Helmut Eller's callback.lisp
18 file from the message
19
20 http://www.common-lisp.net/project/lgtk/callback.lisp
21
22 * ASDF, see http://www.cliki.net/asdf.html
23
24 Installing
25
26 If you don't have CMUCL 19a, load the file callback.x86f (which
27 you get by compiling the file callback.lisp - this is essential)
28 into a freshly started lisp image. Now, issue the command
29
30 (save-lisp "lisp.core")
31
32 and copy this core over the standard cmucl core file. To find
33 where that lies, just look at the startup message of cmucl.
34
35 Once you have put the directory where you have installed the
36 sources into the asdf:*central-registry*, with (for instance)
37
38 (pushnew #p"/home/snoopy/mysoftware/lisp/lgtk/"
39 asdf::*central-registry*)
40
41 you only need to do
42
43 (asdf:operate 'asdf:load-op 'lgtk)
44
45 and, if all goes well, it all gets compiled and loaded. To use
46 functions in the interface you need to do
47
48 (use-package :gtk)
49
50 or alternatively use the :use option of def-package.
51
52 Running the examples in the examples/ directory
53
54 Type
55
56 (asdf:operate 'asdf:load-op 'lgtk-examples)
57
58 and run any of the following:
59
60 (hello-world)
61
62 (hello-world2)
63
64 (packing-boxes <some number between 0 and, say, 100>)
65
66 (splash-msg
67 (format nil
68 "Simple timeout example.~%stays up for 1200 milliseconds.")
69 1200)
70
71 etc. Look at the examples directory to find a few more.
72

  ViewVC Help
Powered by ViewVC 1.1.5