From fbogdanovic at xnet.hr Sat Jul 2 16:55:10 2011 From: fbogdanovic at xnet.hr (Haris Bogdanovich) Date: Sat, 2 Jul 2011 18:55:10 +0200 Subject: [cells-gtk-devel] first steps Message-ID: <7C7F3C0506C34CD589C77F09FEC6C74E@komp> Hi. I loaded Cells into Lispworks with (asdf:oos 'asdf:load-op 'cells) I hope that's ok ? I tried to run hello-world exsmple but I always get: badly formed lambda ? Is there some simple example where just a window opens (or maybe someone could write it here) ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramarren at gmail.com Sat Jul 2 17:13:14 2011 From: ramarren at gmail.com (Ramarren) Date: Sat, 2 Jul 2011 19:13:14 +0200 Subject: [cells-gtk-devel] first steps In-Reply-To: <7C7F3C0506C34CD589C77F09FEC6C74E@komp> References: <7C7F3C0506C34CD589C77F09FEC6C74E@komp> Message-ID: Hello, On Sat, Jul 2, 2011 at 6:55 PM, Haris Bogdanovich wrote: > I loaded Cells into Lispworks with > > (asdf:oos 'asdf:load-op 'cells) > > I hope that's ok ? You are posting to cells-gtk mailing list, and since you are referring to windows later I am assuming you want to use cells-gtk. Which is a GTK binding which uses cells. Probably the best way to install cells-gtk and its dependencies right now is to use http://www.quicklisp.org/beta/ . Once you install quicklisp by following instructions at that site you can install cells-gtk and the demo application with: (ql:quickload :test-gtk) and run it with: (test-gtk:gtk-demo) Hope this helps, Jakub Higersberger From fbogdanovic at xnet.hr Mon Jul 4 16:55:38 2011 From: fbogdanovic at xnet.hr (Haris Bogdanovich) Date: Mon, 4 Jul 2011 18:55:38 +0200 Subject: [cells-gtk-devel] first steps References: <7C7F3C0506C34CD589C77F09FEC6C74E@komp> Message-ID: <7A36023626F64FB189E471AC1CAA169E@komp> > (ql:quickload :test-gtk) I tried (ql:quickload :test-gtk) but I get: System "cl-cairo2-win32" not found I installed gtk on windows by downloading all-in-one bundle of: gtk+ 2.22 and then run pkg-config --cflags gtk+-2.0 What to do to make this work ? From ramarren at gmail.com Mon Jul 4 17:23:12 2011 From: ramarren at gmail.com (Ramarren) Date: Mon, 4 Jul 2011 19:23:12 +0200 Subject: [cells-gtk-devel] first steps In-Reply-To: <7A36023626F64FB189E471AC1CAA169E@komp> References: <7C7F3C0506C34CD589C77F09FEC6C74E@komp> <7A36023626F64FB189E471AC1CAA169E@komp> Message-ID: On Mon, Jul 4, 2011 at 6:55 PM, Haris Bogdanovich wrote: > System "cl-cairo2-win32" not found As it tuns out, quicklisp does not fully support loading cl-cairo2 specific extensions on Windows. Additionally, I have no Windows-Lisp system and hence have not tested cells-gtk on Windows at all. You can disable the subsystem requiring cl-cairo2 by editing the file which can be located with: (asdf:system-relative-pathname (asdf:find-system :cells-gtk) "features.lisp") and commenting out line which contains :cells-gtk-cairo . Then loading the system with (asdf:load-system :test-gtk) might work, if the system is able to locate the libraries. I do not know how CFFI locates libraries on a Windows system. Some adjustment to gtk-ffi/glibraries.lisp (relative to a directory where features.lisp is located) might be necessary. Regards, Jakub Higersberger From peter.denno at nist.gov Mon Jul 4 19:27:45 2011 From: peter.denno at nist.gov (Peter Denno) Date: Mon, 04 Jul 2011 15:27:45 -0400 Subject: [cells-gtk-devel] first steps In-Reply-To: References: <7C7F3C0506C34CD589C77F09FEC6C74E@komp> <7A36023626F64FB189E471AC1CAA169E@komp> Message-ID: <4E121431.8030104@nist.gov> On 07/04/2011 01:23 PM, Ramarren wrote: > On Mon, Jul 4, 2011 at 6:55 PM, Haris Bogdanovich wrote: >> System "cl-cairo2-win32" not found > As it tuns out, quicklisp does not fully support loading cl-cairo2 > specific extensions on Windows. Additionally, I have no Windows-Lisp > system and hence have not tested cells-gtk on Windows at all. > > You can disable the subsystem requiring cl-cairo2 by editing the file > which can be located with: > > (asdf:system-relative-pathname (asdf:find-system :cells-gtk) "features.lisp") > > and commenting out line which contains :cells-gtk-cairo . Then loading > the system with > > (asdf:load-system :test-gtk) > > might work, Agreed. If I recall, not much depends on Cairo. > if the system is able to locate the libraries. I do not > know how CFFI locates libraries on a Windows system. Some adjustment > to gtk-ffi/glibraries.lisp (relative to a directory where > features.lisp is located) might be necessary. > > Regards, > Jakub Higersberger > > _______________________________________________ > cells-gtk-devel site list > cells-gtk-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cells-gtk-devel > . > -- Best regards, Peter Peter Denno National Institute of Standards and Technology, Systems Integration Division, Engineering Laboratory, 100 Bureau Drive, Mail Stop 8265 Tel: +1 301-975-3595 Gaithersburg, MD, USA 20899-8265 FAX: +1 301-975-4694 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: peter_denno.vcf Type: text/x-vcard Size: 283 bytes Desc: not available URL: From peter.hildebrandt at gmail.com Tue Jul 5 15:45:34 2011 From: peter.hildebrandt at gmail.com (Peter Hildebrandt) Date: Tue, 5 Jul 2011 08:45:34 -0700 Subject: [cells-gtk-devel] first steps In-Reply-To: <4E121431.8030104@nist.gov> References: <7C7F3C0506C34CD589C77F09FEC6C74E@komp> <7A36023626F64FB189E471AC1CAA169E@komp> <4E121431.8030104@nist.gov> Message-ID: Yes, Peter is correct. Cells-gtk only uses Cairo (and OpenGL for that matter) for two widgets derived from the gtk canvas object. You can deactivate both, there is a flag somewhere (either in features or even in cells-gtk.asd, I forget). Once you deactivate the features, the dependency disappears and all you lose are these two types of widgets. Cffi uses some sort of magic to locate the binaries. You will have to compile the c file for windows (any c compiler should do if you have the gtk headers installed). Or maybe someone can share a precompiled windows version? There is a feature to remove this, too. You will lose a bit more functionality, editable listviws and treeviews for example. Nice job moving this to QuickLisp - Thank you, Jakub! Peter Travelling and without access to a computer, so I can't check myself, sorry. On Monday, July 4, 2011, Peter Denno wrote: > > > > > > > On 07/04/2011 01:23 PM, Ramarren wrote: > > On Mon, Jul 4, 2011 at 6:55 PM, Haris Bogdanovich <fbogdanovic at xnet.hr>?<fbogdanovic at xnet.hr> wrote: > > > System "cl-cairo2-win32" not found > > > > As it tuns out, quicklisp does not fully support loading cl-cairo2 > specific extensions on Windows. Additionally, I have no Windows-Lisp > system and hence have not tested cells-gtk on Windows at all. > > You can disable the subsystem requiring cl-cairo2 by editing the file > which can be located with: > > (asdf:system-relative-pathname (asdf:find-system :cells-gtk) "features.lisp") > > and commenting out line which contains :cells-gtk-cairo . Then loading > the system with > > (asdf:load-system :test-gtk) > > might work, > > Agreed. If I recall, not much depends on Cairo. > > if the system is able to locate the libraries. I do not > know how CFFI locates libraries on a Windows system. Some adjustment > to gtk-ffi/glibraries.lisp (relative to a directory where > features.lisp is located) might be necessary. > > Regards, > Jakub Higersberger > > _______________________________________________ > cells-gtk-devel site list > cells-gtk-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cells-gtk-devel > . > > > > > > -- > > Best regards, > Peter > > Peter Denno > National Institute of Standards and Technology, > Systems Integration Division, > Engineering Laboratory, > 100 Bureau Drive, Mail Stop 8265 Tel: +1 301-975-3595 > Gaithersburg, MD, USA 20899-8265 FAX: +1 301-975-4694 > > > > From ramarren at gmail.com Tue Jul 5 16:50:29 2011 From: ramarren at gmail.com (Ramarren) Date: Tue, 5 Jul 2011 18:50:29 +0200 Subject: [cells-gtk-devel] first steps In-Reply-To: References: <7C7F3C0506C34CD589C77F09FEC6C74E@komp> <7A36023626F64FB189E471AC1CAA169E@komp> <4E121431.8030104@nist.gov> Message-ID: On Tue, Jul 5, 2011 at 5:45 PM, Peter Hildebrandt wrote: > Cffi uses some sort of magic to locate the binaries. You will have to > compile the c file for windows (any c compiler should do if you have > the gtk headers installed). Or maybe someone can share a precompiled > windows version? I have actually removed the auxiliary library as part of a move to Quicklisp, which discourages uses of non-Lisp compilation. Part of it has been replaced with more recent GTK+ functionality, and part I have reimplemented in Lisp, hopefully correctly. At least it seems to work on my machine. It apparently doesn't on 64bit linux, but I don't actually know if it is in something I changed, since I don't have an access to a 64bit machine to track it down. Jakub From fbogdanovic at xnet.hr Sat Jul 9 12:46:36 2011 From: fbogdanovic at xnet.hr (Haris Bogdanovich) Date: Sat, 9 Jul 2011 14:46:36 +0200 Subject: [cells-gtk-devel] compiling gtk on windows Message-ID: <860CAAAEB8FD440E8EEF40179B61CA0C@komp> Hi. Do I have to compile gtk+ on Windows (msys, mingw) to use cells gtk ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramarren at gmail.com Sat Jul 9 13:05:05 2011 From: ramarren at gmail.com (Ramarren) Date: Sat, 9 Jul 2011 15:05:05 +0200 Subject: [cells-gtk-devel] compiling gtk on windows In-Reply-To: <860CAAAEB8FD440E8EEF40179B61CA0C@komp> References: <860CAAAEB8FD440E8EEF40179B61CA0C@komp> Message-ID: On Sat, Jul 9, 2011 at 2:46 PM, Haris Bogdanovich wrote: > Do I have to compile gtk+ on Windows (msys, mingw) > to use cells gtk ? No, you just need to have the runtime installed somewhere where CFFI can find it. The precompiled GTK runtime seems to be available for Windows from their website: http://www.gtk.org/download/win32.php . JH From fbogdanovic at xnet.hr Sat Jul 9 13:22:06 2011 From: fbogdanovic at xnet.hr (Haris Bogdanovich) Date: Sat, 9 Jul 2011 15:22:06 +0200 Subject: [cells-gtk-devel] compiling gtk on windows References: <860CAAAEB8FD440E8EEF40179B61CA0C@komp> Message-ID: > No, you just need to have the runtime installed somewhere where > CFFI can find it. I installed the all-in-one binary package in c:\gtk. What now ? How can CFFI find it there or do I change the folder ? (I'm using Lispworks) From ramarren at gmail.com Sat Jul 9 13:30:53 2011 From: ramarren at gmail.com (Ramarren) Date: Sat, 9 Jul 2011 15:30:53 +0200 Subject: [cells-gtk-devel] compiling gtk on windows In-Reply-To: References: <860CAAAEB8FD440E8EEF40179B61CA0C@komp> Message-ID: On Sat, Jul 9, 2011 at 3:22 PM, Haris Bogdanovich wrote: > How can CFFI find it there or do I change the folder ? After loading CFFI you can push the location of GTK dll files into CFFI:*FOREIGN-LIBRARY-DIRECTORIES*, which should be a list of pathnames. JH From fbogdanovic at xnet.hr Sun Jul 10 11:18:27 2011 From: fbogdanovic at xnet.hr (Haris Bogdanovich) Date: Sun, 10 Jul 2011 13:18:27 +0200 Subject: [cells-gtk-devel] installing Message-ID: <92E3C0E6454A4DA3A49E534F3813403E@komp> Hi. I tried to install cells-gtk by quicklisp. I firstly added folders with gtk dll files to cffi:*foreign-library-directories*. Now it doesn't complain something about cairo-win32. Now it complains about glut: Unable to load foreign library (GLUT). Could not register handle for external module GLUT: The specified module could not be found.. I dowloaded glut binaries and added the folder with dll to cffi:*foreign-library-directories* But again I get the same error about glut ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramarren at gmail.com Sun Jul 10 12:43:41 2011 From: ramarren at gmail.com (Ramarren) Date: Sun, 10 Jul 2011 14:43:41 +0200 Subject: [cells-gtk-devel] installing In-Reply-To: <92E3C0E6454A4DA3A49E534F3813403E@komp> References: <92E3C0E6454A4DA3A49E534F3813403E@komp> Message-ID: On Sun, Jul 10, 2011 at 1:18 PM, Haris Bogdanovich wrote: > Now it complains about glut: cells-gtk does not use glut directly, which means this is (cl-)opengl issue. You can disable opengl dependency, which is used only for embedding opengl drawing context, in the same file in the same way you disabled cairo dependency. JH