[cells-gtk-devel] Patch suggestion for "load.lisp"

Peter Denno peter.denno at nist.gov
Thu Feb 7 14:08:57 UTC 2008


On Thursday 07 February 2008 08:43, Peter Hildebrandt wrote:
> Peter Hildebrandt wrote:
> > thanks for spotting this.  However, I don't see a load.lisp in
> > CVS.  Did you install cells-gtk from CVS, from one of the
> > tarballs, or from asdf-install?
>
> Sorry, my bad here.  I just learned that load.lisp is supposed to
> be in CVS, too.  I will get it from the tarballs, merge in your
> patch (so it is useful, after all!), and commit it to CVS later
> tonight.

The tarballs also have a INSTALL.txt. I haven't checked CVS for this, 
but it contains just the follow:


To compile and run:

STEP 0: WINDOWS USERS: Do the stuff marked "Windows Users" below.

STEP .5: CLISP Users edit the path in ./load.lisp (you'll see it).

STEP 1: EVERYONE: Start lisp, change to this directory and do 
(load "load")

STEP 2: EVERYONE: (test-gtk::gtk-demo)

STEP 3: ANYONE (optional) make libcellsgtk, (or get it from the 
cells-gtk site). To make:
         3a) In ./root/gtk-ffi 'make' 
         3b) Move the library created to where it will be found (Linux 
see /etc/ld.so.conf).
         3c) Uncomment the line (pushnew :libcellsgtk *features*) 
in ./root/gtk-ffi/gtk-ffi.asd
         3d) Recompile the distribution (remove fasls and type 
(load "load") again.


TESTED ON:
    Windows XP: (with gtk 2.4.10) 
       AllegroCL 6.2 Enterprise, 
       Lispworks 4.3 Personal
    Windows 2000:
       CLISP 2.38
    Linux: 
      Lispworks 4.4 Pro, 
      CMUCL 19c, 
      CLISP 2.36
      SBCL 0.9.9.1

NOT TESTED SINCE SWITCHING TO CFFI: (as of 2006-01-03):
    AllegroCL
    MACOSX

;;; --------   Windows Users ---------------

Get GTK and Install

   http://gimp-win.sourceforge.net/stable.html  (I used version 2.8.9)
   
   Executing the setup.exe should add "C:\Program Files\Common 
Files\GTK\2.0\bin"
   to your path. You can verify that it has:

   Start>Settings>Control Panel>System>Advanced>Environment Variables>

   (I had to reboot after this, but then I don't know anything about 
Win32).

Note: On windows under emacs with slime, the gtk window does not 
popup. 
      You must start the application from a dos prompt. 
      (Solutions to this problem welcome!, probably involves putting 
something
       like a call to gtk-iteration-do into some slime loop through a 
hook.)

Known bugs:
    On Windows: Clisp crashes if    
    [My Computer]-> [Properties]-> [Advanced]-> [Perfomance 
Settings]-> [Show windows contents while dragging] 
    is set and resize the window while viewing a listbox or treebox.


>
> > We have recently changed cells-gtk quite a bit, but the changes
> > are only available in CVS, so I'd recommend you go with that. 
> > The preferred method to load cells-gtk is via  asdf.
>
> I was wrong here.  The (load "load") method should work, too.
>
> Peter
>
>    I explain this in more detail in
>
> > my guide over here:
> >
> > http://www.washbear-network.de/peterblog/getting-started-with-cel
> >ls-gtk/
> >
> > (I know, I should get my own (less silly) domain at some point)
> >
> > If you have further questions, let us know.
> >
> > Peter
> >
> > Rörd Hinrichsen wrote:
> >> Hello,
> >>
> >> "load.lisp" doesn't yet include the path to the ph-maths
> >> library. I suggest these changes:
> >>
> >> $ cvs diff -u load.lisp
> >> Index: load.lisp
> >> ================================================================
> >>=== RCS file: /project/cells-gtk/cvsroot/load.lisp,v
> >> retrieving revision 1.3
> >> diff -u -r1.3 load.lisp
> >> --- load.lisp   30 Jun 2006 15:24:21 -0000      1.3
> >> +++ load.lisp   6 Feb 2008 22:00:02 -0000
> >> @@ -29,12 +29,14 @@
> >>                #P"cells-gtk:cffi;"
> >>                #P"cells-gtk:root;pod-utils;"
> >>                #P"cells-gtk:root;gtk-ffi;"
> >> +             #P"cells-gtk:root;ph-maths;"
> >>                #P"cells-gtk:root;cells-gtk;"
> >>                #P"cells-gtk:root;cells-gtk;test-gtk;")))
> >>    (asdf:oos 'asdf:load-op :cells)
> >>    (asdf:oos 'asdf:load-op :cffi)
> >>    (asdf:oos 'asdf:load-op :cffi-uffi-compat)
> >>    (asdf:oos 'asdf:load-op :gtk-ffi)
> >> +  (asdf:oos 'asdf:load-op :ph-maths)
> >>    (asdf:oos 'asdf:load-op :cells-gtk)
> >>    (asdf:oos 'asdf:load-op :test-gtk))
> >>
> >> Rörd
> >>
> >>
> >> ----------------------------------------------------------------
> >>--------
> >>
> >> _______________________________________________
> >> cells-gtk-devel site list
> >> cells-gtk-devel at common-lisp.net
> >> http://common-lisp.net/mailman/listinfo/cells-gtk-devel
>
> _______________________________________________
> cells-gtk-devel site list
> cells-gtk-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/cells-gtk-devel

-- 
Best regards,
  - Peter
-------------- next part --------------

To compile and run:

STEP 0: WINDOWS USERS: Do the stuff marked "Windows Users" below.

STEP .5: CLISP Users edit the path in ./load.lisp (you'll see it).

STEP 1: EVERYONE: Start lisp, change to this directory and do (load "load")

STEP 2: EVERYONE: (test-gtk::gtk-demo)

STEP 3: ANYONE (optional) make libcellsgtk, (or get it from the cells-gtk site). To make:
         3a) In ./root/gtk-ffi 'make' 
         3b) Move the library created to where it will be found (Linux see /etc/ld.so.conf).
         3c) Uncomment the line (pushnew :libcellsgtk *features*) in ./root/gtk-ffi/gtk-ffi.asd
         3d) Recompile the distribution (remove fasls and type (load "load") again.


TESTED ON:
    Windows XP: (with gtk 2.4.10) 
       AllegroCL 6.2 Enterprise, 
       Lispworks 4.3 Personal
    Windows 2000:
       CLISP 2.38
    Linux: 
      Lispworks 4.4 Pro, 
      CMUCL 19c, 
      CLISP 2.36
      SBCL 0.9.9.1

NOT TESTED SINCE SWITCHING TO CFFI: (as of 2006-01-03):
    AllegroCL
    MACOSX

;;; --------   Windows Users ---------------

Get GTK and Install

   http://gimp-win.sourceforge.net/stable.html  (I used version 2.8.9)
   
   Executing the setup.exe should add "C:\Program Files\Common Files\GTK\2.0\bin"
   to your path. You can verify that it has:

   Start>Settings>Control Panel>System>Advanced>Environment Variables>

   (I had to reboot after this, but then I don't know anything about Win32).

Note: On windows under emacs with slime, the gtk window does not popup. 
      You must start the application from a dos prompt. 
      (Solutions to this problem welcome!, probably involves putting something
       like a call to gtk-iteration-do into some slime loop through a hook.)

Known bugs:
    On Windows: Clisp crashes if    
    [My Computer]-> [Properties]-> [Advanced]-> [Perfomance Settings]-> [Show windows contents while dragging] 
    is set and resize the window while viewing a listbox or treebox.


More information about the cells-gtk-devel mailing list