[cells-gtk-devel] cannot load "load.lisp"

Subhasis Ray ray.subhasis at gmail.com
Mon Jun 19 09:36:09 UTC 2006


Hi,
 Though it may seem redundant/ridiculous, but for new-comers very simple
problems pose big hurdle to getting started (I am a newbie myself). Here are
my steps for running cells gtk ,it runs fine when "load.lisp" is loaded from
a clean cells-gtk. But as I tried to load it a second time I face the
problem mentioned by Lelanthran:

Download and install gtk - in windows it is installed in C:\Program
Files\Common Files\GTK.

Download
ftp://common-lisp.net/pub/project/cells-gtk/cells-gtk-2006-02-16.tgz.

Download CLisp 2.38 for win32 from
http://prdownloads.sourceforge.net/clisp/clisp-2.38-win32-with-readline-and-gettext.zip?download


Extract clisp-2.38-win32-with-readline-and-gettext.zip in "C:\", so the lisp
installation directory becomes C:\clisp-2.38. Now run the
install.batscript, enter 'y' to all questions.

Extract cells-gtk-2006-02-16.tgz wherever you like. In my case it was
"C:\subhasir\tmp".

Copy root\gtk-ffi\libcellsgtk.dll from cells-gtk directory (i.e.
C:\subhasir\tmp\cells-gtk-2006-02-16\root\gtk-ffi\libcellsgtk.dll) to the
bin directory of your GTK installation (c:\Program Files\Common
Files\GTK\2.0\bin for an installation with defaults).

Edit the file load.lisp in the directory where cells-gtk was extracted
(C:\subhasir\tmp\cells-gtk-2006-02-16\ in my case).
Modify Line#12 in the file and place the path-components to the cells-gtk
directory. I have had problem with drive-letter - if "C:" is added at the
beginning clisp will complain about the path. This is what I put there:
       #+clisp (make-pathname :directory '(:absolute "subhasir" "tmp"
"cells-gtk-2006-02-16")))) ; <=== CLISP users

Now start clisp. Go to the cells-gtk directory by entering '(cd
"C:/subhasir/tmp/cells-gtk-2006-02-16")' in clisp console - note the
front-slash as path-separator. [ You don't have to cd to cells-gtk directory
if you have asdf.lisp in your path ].
Enter '(load "load.lisp")' - and everything should compile fine.  The last
output should be:

0 errors, 0 warnings


 Done! Now try (test-gtk::gtk-demo)
;; Loaded file C:\subhasir\tmp\cells-gtk-2006-02-16\load.lisp
T

Now enter (test-gtk::gtk-demo) in clisp console and you should see the
cells-gtk splash screen appear.
Now if I restart clisp and come-back to reload the cells-gtk, this error
comes:
;;  Loading file C:\subhasir\tmp\cells-gtk-2006-02-16\root\gtk-ffi\gtk-
ffi.fas .
..
;;  Loaded file C:\subhasir\tmp\cells-gtk-2006-02-16\root\gtk-ffi\gtk-
ffi.fas
;;  Loading file C:\subhasir\tmp\cells-gtk-2006-02-16\root\gtk-ffi\gtk-
core.fas
...
** - Continuable Error
FFI::FOREIGN-LIBRARY-FUNCTION: no dynamic object named "g_free" in library
      :DEFAULT
If you continue (by typing 'continue'): Skip foreign object creation
The following restarts are also available:
RETRY          :R1
Retry performing #<ASDF:LOAD-OP NIL #x19F45AE5> on #<ASDF:CL-SOURCE-FILE
  "gtk-core" #x19F461C1>.
ACCEPT         :R2
Continue, treating #<ASDF:LOAD-OP NIL #x19F45AE5> on #<ASDF:CL-SOURCE-FILE
  "gtk-core" #x19F461C1> as having been successful.
SKIP           :R3      skip (LET # # ...)
STOP           :R4      stop loading file
C:\subhasir\tmp\cells-gtk-2006-02-16\l
oad.lisp
ABORT          :R5      ABORT

Thanks and regards,
   Su
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cells-gtk-devel/attachments/20060619/44c38642/attachment.html>


More information about the cells-gtk-devel mailing list