cl-gtk2
has the following dependencies. They all must be installed before installing cl-gtk2
.
At first, source code should be downloded. Current version of CL-GTK2 can be downloaded from http://common-lisp.net/project/cl-gtk2/files/cl-gtk2-0.1.1.tar.gz.
Development tree of CL-GTK2 can be cloned with Git:
git clone git://repo.or.cz/cl-gtk2.git
or, using the mirror:
git clone git://github.com/dmitryvk/cl-gtk2.git
To be able to compile, load and use cl-gtk2
, you should register the ASDF
system definitions.
To do this, either add glib
, gdk
and gtk
directories to asdf:*central-registry*
:
(push "/path/to/cl-gtk2/glib" asdf:*central-registry*) (push "/path/to/cl-gtk2/pango/" asdf:*central-registry*) (push "/path/to/cl-gtk2/gdk" asdf:*central-registry*) (push "/path/to/cl-gtk2/gtk" asdf:*central-registry*) (push "/path/to/cl-gtk2/gtk-glext/" asdf:*central-registry*) (push "/path/to/cl-gtk2/cairo/" asdf:*central-registry*)
or create symlinks to cl-gtk2-glib.asd
, cl-gtk2-gdk.asd
and cl-gtk2-gtk.asd
files in a directory where ASDF
systems are located (it might be /usr/share/common-lisp/systems/
for system-wide installation in Gentoo Linux and Debian Linux, ~/.sbcl/systems/
for user installation for SBCL compiler):
cd ~/.sbcl/systems # depends on your system ln -s /path/to/cl-gtk2/glib/cl-gtk2-glib.asd . ln -s /path/to/cl-gtk2/pango/cl-gtk2-pango.asd . ln -s /path/to/cl-gtk2/gdk/cl-gtk2-gdk.asd . ln -s /path/to/cl-gtk2/gtk/cl-gtk2-gtk.asd . ln -s /path/to/cl-gtk2/gtkglext/cl-gtk2-gtkglext.asd . ln -s /path/to/cl-gtk2/cairo/cl-gtk2-cairo.asd .
In Gentoo Linux, it is possible to use layman (see Gentoo Overlays Users' Guide) to add lisp
and cl-gtk2
overlays that contains neccessary ebuilds:
layman -a lisp layman --overlays=http://github.com/dmitryvk/cl-gtk2-overlay/raw/master/layman-list.xml -a cl-gtk2 emerge cl-gtk2