From: DMac <dv...@ya...> - 2008-07-03 17:05:08
|
I am new to Clisp and wanted to see if I could create a simple gui hello world on Windows XP. >From the FAQ at http://clisp.cons.org/impnotes/faq.html <Quote> How do I create a GUI for my CLISP program? Use module gtk2: create ui.glade with Glade, then do $ ./configure --with-module=gtk2 --cbc build-gtk $ ./build-gtk/clisp -K full -x '(gtk:run-glade-file "ui.glade")' <\Quote> I downloaded Glade for Win32. I created a ui.glade. I opened VisualCLisp and pasted the two code lines into the editor saved and attempted to (load "") it. REPL does not recognize the "$" Can anyone tell me how to use the gtk2 module in Windows? Regards, DMac |
From: Reini U. <ru...@x-...> - 2008-07-03 17:14:26
|
DMac schrieb: > I am new to Clisp and wanted to see if I could create a simple gui hello world > on Windows XP. > >>From the FAQ at http://clisp.cons.org/impnotes/faq.html > > <Quote> > > How do I create a GUI for my CLISP program? > > Use module gtk2: create ui.glade with Glade, then do > > $ ./configure --with-module=gtk2 --cbc build-gtk > $ ./build-gtk/clisp -K full -x '(gtk:run-glade-file "ui.glade")' > > <\Quote> > > I downloaded Glade for Win32. > I created a ui.glade. > I opened VisualCLisp and pasted the two code lines into the editor saved and > attempted to (load "") it. > > REPL does not recognize the "$" Sure. That's a shell command. You probably don't have a bash on your windows box. > Can anyone tell me how to use the gtk2 module in Windows? cygwin has a binary clisp-gtk2 package. You probably also need the gtk2 package from a seperate setup site, called cygwin ports. google that. And be sure that gtk2 works first, then try the clisp-gtk2 package. Wonder if the binary mingw package from the sf.net site includes gtk2 also. No, it does not. See http://sourceforge.net/projects/clisp -- Reini Urban http://phpwiki.org/ http://murbreak.at/ |
From: DMac <dv...@ya...> - 2008-07-03 22:51:42
|
Reini Urban <rurban <at> x-ray.at> writes: > > DMac schrieb: <Snip> > > REPL does not recognize the "$" > > Sure. That's a shell command. You probably don't have a bash on your > windows box. > > > Can anyone tell me how to use the gtk2 module in Windows? > > cygwin has a binary clisp-gtk2 package. > You probably also need the gtk2 package from a seperate setup site, > called cygwin ports. google that. > And be sure that gtk2 works first, then try the clisp-gtk2 package. > I see, as I understand it cygwin is an emulator. Would I need to install this to make it all work? Perhaps there is something with lower overhead. I started coding in AutoLisp years ago. Moved into Software development with VB.NET, then coded in C with Win32 SDK, now C#. I thought it would be fun to play around with Common Lisp but anything I write nowadays starts with a dialog. DMac |
From: Reini U. <ru...@x-...> - 2008-07-04 10:12:33
|
DMac schrieb: > Reini Urban <rurban <at> x-ray.at> writes: > >> DMac schrieb: > > <Snip> > >>> REPL does not recognize the "$" >> Sure. That's a shell command. You probably don't have a bash on your >> windows box. >> >>> Can anyone tell me how to use the gtk2 module in Windows? >> cygwin has a binary clisp-gtk2 package. >> You probably also need the gtk2 package from a seperate setup site, >> called cygwin ports. google that. >> And be sure that gtk2 works first, then try the clisp-gtk2 package. >> > I see, as I understand it cygwin is an emulator. Would I need to install this > to make it all work? Sure. And it will be pretty complicated. Right now I'm also fighting with getting gtk2 compiled, because the original gtk2 for cygwin is too old. you'd need the gtk2 libs and deps from cygwinports. > Perhaps there is something with lower overhead. I started coding in AutoLisp > years ago. Moved into Software development with VB.NET, then coded in C with > Win32 SDK, now C#. I thought it would be fun to play around with Common Lisp > but anything I write nowadays starts with a dialog. cygwin clisp has three gui options: gtk2, new-clx and gdi (native gdi). there are also other and easier gui libs around. -- Reini Urban http://phpwiki.org/ http://murbreak.at/ ex-autolisp |
From: Elliott S. <ell...@gm...> - 2008-07-04 18:55:13
|
On Fri, Jul 4, 2008 at 3:18 AM, Reini Urban <ru...@x-...> wrote: > DMac schrieb: >> Reini Urban <rurban <at> x-ray.at> writes: >> >>> DMac schrieb: >> I see, as I understand it cygwin is an emulator. Would I need to install this >> to make it all work? > > Sure. And it will be pretty complicated. > Right now I'm also fighting with getting gtk2 compiled, because the > original gtk2 for cygwin is too old. you'd need the gtk2 libs and deps > from cygwinports. I don't know much about GTK with CLISP, but I do know that GTK itself *does not* require Cygwin to run, but can be compiled to run natively on Windows using MinGW. In fact, a number of programs (e.g. GIMP for Windows) that depend on GTK include the installer already. One place you can download installers for the GTK runtime is at the GIMP for Windows download site http://sourceforge.net/project/showfiles.php?group_id=121075 . If on the other hand you need development packages, you can get them from http://www.gtk.org/download-windows.html . -- Elliott Slaughter "Any road followed precisely to its end leads precisely nowhere." - Frank Herbert |
From: DMac <dv...@ya...> - 2008-07-10 17:29:53
|
DMac <dvmacd <at> yahoo.com> writes: > > I am new to Clisp and wanted to see if I could create a simple gui hello world > on Windows XP. > > >From the FAQ at http://clisp.cons.org/impnotes/faq.html > > <Quote> > > How do I create a GUI for my CLISP program? > > Use module gtk2: create ui.glade with Glade, then do > > $ ./configure --with-module=gtk2 --cbc build-gtk > $ ./build-gtk/clisp -K full -x '(gtk:run-glade-file "ui.glade")' > > <\Quote> > > I downloaded Glade for Win32. > I created a ui.glade. > I opened VisualCLisp and pasted the two code lines into the editor saved and > attempted to (load "") it. > > REPL does not recognize the "$" > > Can anyone tell me how to use the gtk2 module in Windows? > > Regards, > DMac > I know that the gtk for windows is working on my box. I got an example to work that used a precursor to the gtk2 module. I guess the question should have been "how do I load this gtk2 module into my image?" CL-USER> *features* (:ASDF :DIRKEY :REGEXP :SYSCALLS :CLOS :LOOP :COMPILER :CLISP :ANSI-CL :COMMON-LISP :LISP=CL :INTERPRETER :SOCKETS :GENERIC-STREAMS :LOGICAL-PATHNAMES :SCREEN :FFI :UNICODE :BASE-CHAR=CHARACTER :PC386 :WIN32) CL-USER> I had a look at the repository http://clisp.cvs.sourceforge.net/clisp/clisp/modules/gtk2 and figured that I needed gtk.lisp gtk-server.cfg I am not sure about the other stuff. How on windows do I get this into the *features*? regards, DMac |