crategus / cl-cffi-gtk

cl-cffi-gtk is a Lisp binding to the GTK+ 3 library.

Home Page:http://www.crategus.com/books/cl-cffi-gtk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

single asd file for entire project

grapesmoker opened this issue · comments

Hi,

First off, I just wanted to thank you for this amazing project. It's the best GTK+ binding for lisp that I've seen so far and has been very useful to me. I was wondering if there was any particular reason that there isn't a single ASD file to load the entire project, including the demos, rather than having to load all the component systems individually. I'd be happy to help work on a single file to unify this.

Their is one asdf-file with the filename cl-cffi-gtk.asd for loading the complete library and its dependencies with

(asdf:load-system :cl-cffi-gtk)

But you can also load parts of the library. For GLiB only use (asdf:load-system :cl-cffi-gtk-glib).

You are right, there is no asdf-file for the GTK Demo. The project is growing and I have never taken the time to write the missing asdf-file. Furthermore, it is time to update and to improve the code of the GTK Demo in the file gtk-demo.lisp. A nice improvement would be a Lisp function which takes a list of lists for the examples and fills in the examples and demos into the model for the GtkTreeView.

If you are interessted, your might work on a fork with a separate branch for your improvements and later I will merge your work into the project.

Dieter Kaiser

While trying to use (asdf:load-system :cl-cffi-gtk) in slime with clisp I've got error "Unknown CFFI type: :STRUCT."
Any ideas what might be causing it? This happens while compiling glib/glib.misc.lisp
cl-cffi-gtk is checked out from git into ~/.local/share/common-lisp/source

Ah, my bad - was deceived by weird version number used in .deb package. Version from official repo fixed that.