From andy128k at gmail.com Tue Jun 9 11:30:59 2009 From: andy128k at gmail.com (Andrey Kutejko) Date: Tue, 9 Jun 2009 14:30:59 +0300 Subject: [cl-gtk2-devel] GObjectIntrospection Message-ID: <2ea864070906090430i2b34cdc3r1c64fb991feded0c@mail.gmail.com> ???????? ?? ??????, ??????????? ?? ????????? ????????? ?? GObjectIntrospection? ? ????? ?????? ??????? ? ????? ?????? GObjectIntrospection. ????????? ?????????? ??????. From kalyanov.dmitry at gmail.com Thu Jun 11 10:49:17 2009 From: kalyanov.dmitry at gmail.com (Kalyanov Dmitry) Date: Thu, 11 Jun 2009 14:49:17 +0400 Subject: [cl-gtk2-devel] GObjectIntrospection Message-ID: <200906111449.21863.Kalyanov.Dmitry@gmail.com> >???????? ?? ??????, ??????????? ?? ????????? ????????? ?? >GObjectIntrospection? >? ????? ?????? ??????? ? ????? ?????? GObjectIntrospection. ????????? >?????????? ?????? ???????????, GObjectIntrospection ??? ?? ??? ????? ????????. ?????? ??????????? ??? ???????? ??????? ? enum'?? ???????? ?????????????, ????????? ?????????? GObject'? (?????? ????????? ???????? ??????-?? ??????? ?????? ? ???? ??????? ???? class_get_property ? class_set_property ? ?? ???????? ??? GObject-????????; ????? ???????? ??????????? ???????). ??? ????? ?????? GObject: 1) ????????? ???????? ???????/??????? (?????? ???????? ???????). ?? ?????? ? ??? ??????, ???? ? ??? ???????? ?????????? ? ???????? ???????? ????????? (? ?????-?? ??????? ?????? ??????????, ? ?????-?? ???? ?????????? ?????? ?? ???????? ??????; ???????????? ?????? (GList) ?????? ???? ???????????, ?????? ???). 2) ????????? ???????? ?????, ??????????? ????? GObject: struct. ?? ????? ?? ?????? ? ??? ??????, ???? ????? ????????????? ????????, ??? ????????? ??? ?????????, ??? ? ????? ???????????, ??? ?? ?????????? ? ???????. ?????? ?????? ? ???? ??????? ???? ???:) Yes, it's on to-do list. GObjectIntrospection might be very useful. At present, descriptions of classes and enums are generated automatically using GObject metadata (with exception of some properties which are only available as accessor functions like class_get_prop and class_set_prop; such properties are described manually). GObject might be useful in the following ways. 1) Generate functions/methods declarations. Information about object ownership transfer must be available (some functions copy string arguments, some do not; GLists returned by some functions should be freed, and some others do not). 2) Generate declarations for types that are not accessible through GObject. Mainly, structs. Memory management and ownership management information must be available. I'll be glad for any help in this project. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From andy128k at gmail.com Sat Jun 13 19:49:23 2009 From: andy128k at gmail.com (Andrey Kutejko) Date: Sat, 13 Jun 2009 22:49:23 +0300 Subject: [cl-gtk2-devel] patch for gtk.text.lisp Message-ID: <2ea864070906131249m1e016afbr410f868885d0734@mail.gmail.com> There are changes I've made in attachment. I've fixed a typo and implemented few functions. -------------- next part -------------- A non-text attachment was scrubbed... Name: text.patch Type: text/x-patch Size: 4111 bytes Desc: not available URL: From kalyanov.dmitry at gmail.com Sat Jun 13 20:25:54 2009 From: kalyanov.dmitry at gmail.com (Kalyanov Dmitry) Date: Sun, 14 Jun 2009 00:25:54 +0400 Subject: [cl-gtk2-devel] patch for gtk.text.lisp In-Reply-To: <2ea864070906131249m1e016afbr410f868885d0734@mail.gmail.com> References: <2ea864070906131249m1e016afbr410f868885d0734@mail.gmail.com> Message-ID: <200906140026.03930.Kalyanov.Dmitry@gmail.com> On ??????? 13 ???? 2009 23:49:23 Andrey Kutejko wrote: > There are changes I've made in attachment. I've fixed a typo and > implemented few functions. I've changed the patch to return multiple values instead of a cons for consistency with other code (todo for myself: use GdkPoint). -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From elzacho at gmail.com Tue Jun 23 17:21:54 2009 From: elzacho at gmail.com (Zach) Date: Tue, 23 Jun 2009 11:21:54 -0600 Subject: [cl-gtk2-devel] Build problems Message-ID: <95f1acd0906231021x5fd87bb5h328f000c1649158e@mail.gmail.com> cl-gtk2 people, I posted on Reddit a while back that I was having trouble building and I didn't want to be the guy that complains about it not building but doesn't help make it better. So here I am. Sorry to say that I gave it another go today and still no luck. I handle all of my Lisp libraries by hand (exactly because package managers seem to have outdated versions). You were right that I was behind of several of the dependencies. I pulled the latest sources on those. On my Ubuntu 8.10 system, I noticed that the libgtk2.0 package is version 2.14, which doesn't meet the 2.16 version requirement. As far as I can tell 2.16 is fairly new and has not made it's way into apt yet. I am not going to install outside of the package manager for this, so cl-gtk2 will have to wait (maybe I can install via the apt package manager somehow? I am not very experienced with it). If you still care, under GNU/Linux Ubuntu running SBCL 1.0.25 I get this as the first error after (asdf:oos 'asdf:load-op :gtk) ... ; compiling (DEFINE-G-OBJECT-CLASS "GtkUIManager" ...) ; compiling (DEFINE-G-OBJECT-CLASS "GtkWindowGroup" ...) ; compiling (DEFINE-G-OBJECT-CLASS "GtkToggleAction" ...) ; compiling (DEFINE-G-OBJECT-CLASS "GtkRecentAction" ...) ; compiling (DEFINE-G-OBJECT-CLASS "GtkRadioAction" ...) ; /home/smithzv/dld/src/lisp-pkg/user-interfaces/cl-gtk2/gtk/sbcl-1.0.25-linux-x86-64/gtk.generated-classes.fasl written ; compilation finished in 0:00:00.613 debugger invoked on a SB-SYS:MEMORY-FAULT-ERROR in thread #: Unhandled memory fault at #x0. Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL. restarts (invokable by number or by possibly-abbreviated name): 0: [TRY-RECOMPILING] Recompile gtk.generated-classes and try loading it again 1: [RETRY ] Retry performing # on #. 2: [ACCEPT ] Continue, treating # on # as having been successful. 3: [ABORT ] Exit debugger, returning to top level. (SB-SYS:MEMORY-FAULT-ERROR) 0] :backtrace 0: (SB-INT:SIMPLE-EVAL-IN-LEXENV BT #) 1: (SB-EXT:INTERACTIVE-EVAL BT) 2: (SB-DEBUG::DEBUG-EVAL-PRINT BT) 3: (SB-DEBUG::DEBUG-LOOP-FUN) 4: (SB-DEBUG:INTERNAL-DEBUG) 5: (SB-DEBUG::%INVOKE-DEBUGGER #) 6: ((LAMBDA ())) 7: (SB-IMPL::CALL-WITH-SANE-IO-SYNTAX #) 8: (SB-IMPL::%WITH-STANDARD-IO-SYNTAX #) 9: (INVOKE-DEBUGGER #) 10: (ERROR SB-SYS:MEMORY-FAULT-ERROR)[:EXTERNAL] 11: (SB-SYS:MEMORY-FAULT-ERROR) 12: ("foreign function: #x41F732") 13: ("foreign function: #x41F810") 14: ("foreign function: #x0") 15: ((LAMBDA (SB-PCL::.PV. SB-PCL::.NEXT-METHOD-CALL. SB-PCL::.ARG0. SB-INT:&MORE SB-PCL::.DFUN-MORE-CONTEXT. SB-PCL::.DFUN-MORE-COUNT.)) # # # 17574443330577 16) 16: ((SB-PCL::FAST-METHOD MAKE-INSTANCE (CLASS)) # # #)[:EXTERNAL] 17: ((FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK)) 18: ((FLET #:WITHOUT-INTERRUPTS-BODY-[CALL-WITH-RECURSIVE-LOCK]509)) 19: (SB-THREAD::CALL-WITH-RECURSIVE-LOCK # #S(SB-THREAD:MUTEX :NAME "World Lock" :%OWNER # :STATE 1)) 20: ((SB-PCL::FAST-METHOD SB-MOP:ENSURE-CLASS-USING-CLASS (NULL T)) # # NIL ORIENTABLE)[:EXTERNAL] 21: ((FLET #:WITHOUT-INTERRUPTS-BODY-[CALL-WITH-RECURSIVE-LOCK]509)) 22: (SB-THREAD::CALL-WITH-RECURSIVE-LOCK # #S(SB-THREAD:MUTEX :NAME "World Lock" :%OWNER # :STATE 1)) 23: (SB-MOP:ENSURE-CLASS ORIENTABLE)[:EXTERNAL] 24: (SB-PCL::REAL-LOAD-DEFCLASS ORIENTABLE GOBJECT::GOBJECT-CLASS NIL ((:NAME ORIENTATION :READERS (ORIENTABLE-ORIENTATION) :WRITERS ((SETF ORIENTABLE-ORIENTATION)) :INITARGS (:ORIENTATION) :G-PROPERTY-NAME "orientation" :G-PROPERTY-TYPE "GtkOrientation" ...)) (:G-TYPE-NAME "GtkOrientable" :G-INTERFACE-P T :G-TYPE-INITIALIZER "gtk_orientable_get_type") (ORIENTABLE-ORIENTATION) ((SETF ORIENTABLE-ORIENTATION)) (ORIENTATION) #S(SB-C:DEFINITION-SOURCE-LOCATION :NAMESTRING "/home/smithzv/dld/src/lisp-pkg/user-interfaces/cl-gtk2/gtk/gtk.generated-classes.lisp" :TOPLEVEL-FORM-NUMBER 129 :PLIST NIL) T) I also played around on OS X (which I see you do not support) also running 1.0.25 by adding the dylib style shared object files. This reported several SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERRORs which sounds more like an unmet library version dependency. Those look like this: Attempt to call an undefined alien function. [Condition of type SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERROR] Restarts: ... Backtrace: 0: (SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERROR) 1: ("foreign function: call_into_lisp") 2: ("foreign function: funcall0") 3: ("foreign function: undefined_alien_function") 4: (GTK::GTK-TEST-REGISTER-ALL-TYPES) ... Also, I would like to say that there are several Lisp libraries that provide gtk, gdk, and the like (just not very well, in my experience). Some have also taken the same names for there .asd files (gtk.asd, gdk.asd, glib.asd, etc.), which means that one cannot have your library coexist with the other in the same asdf registry since asdf doesn't know which .asd to use. It is just a little annoying. I hope some of this helps. If you have any questions or things you want me to try, I would be happy to do so. I know absolutely nothing about GTK, but I would be very happy to have a gtk binding that works for me and the rest of the CL community, so I wish you the best of luck, Zach S -------------- next part -------------- An HTML attachment was scrubbed... URL: From elzacho at gmail.com Tue Jun 23 17:25:37 2009 From: elzacho at gmail.com (Zach) Date: Tue, 23 Jun 2009 11:25:37 -0600 Subject: [cl-gtk2-devel] Cannot git clone Message-ID: <95f1acd0906231025m38fbe411te3c61764a610a57e@mail.gmail.com> I cannot git clone from the repo... $ git clone http://repo.or.cz/w/cl-gtk2.git Initialized empty Git repository in /Users/smithzv/src/lisp/pkg/user-interfaces/cl-gtk2/.git/ /opt/local/bin/git-clone: line 4: cd: /Users/smithzv/src/lisp/pkg/user-interfaces/cl-gtk2/.git/refs/remotes/origin: No such file or directory fatal: Not a valid object name HEAD Seems like I'm doing it right, is there a mistake? Zach S -------------- next part -------------- An HTML attachment was scrubbed... URL: From kalyanov.dmitry at gmail.com Tue Jun 23 18:46:24 2009 From: kalyanov.dmitry at gmail.com (Kalyanov Dmitry) Date: Tue, 23 Jun 2009 22:46:24 +0400 Subject: [cl-gtk2-devel] Cannot git clone In-Reply-To: <95f1acd0906231025m38fbe411te3c61764a610a57e@mail.gmail.com> References: <95f1acd0906231025m38fbe411te3c61764a610a57e@mail.gmail.com> Message-ID: <200906232246.28655.Kalyanov.Dmitry@gmail.com> On ??????? 23 ???? 2009 21:25:37 Zach wrote: > I cannot git clone from the repo... > > $ git clone http://repo.or.cz/w/cl-gtk2.git > Initialized empty Git repository in > /Users/smithzv/src/lisp/pkg/user-interfaces/cl-gtk2/.git/ > /opt/local/bin/git-clone: line 4: cd: > /Users/smithzv/src/lisp/pkg/user-interfaces/cl-gtk2/.git/refs/remotes/origi >n: No such file or directory > fatal: Not a valid object name HEAD > > Seems like I'm doing it right, is there a mistake? > > Zach S http://repo.or.cz/w/cl-gtk2.git is actually a link to a gitweb, but actual repositoriy is the following (any of them): git://repo.or.cz/cl-gtk2.git http://repo.or.cz/r/cl-gtk2.git I'll correct the site, thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From kalyanov.dmitry at gmail.com Tue Jun 23 19:35:11 2009 From: kalyanov.dmitry at gmail.com (Kalyanov Dmitry) Date: Tue, 23 Jun 2009 23:35:11 +0400 Subject: [cl-gtk2-devel] Build problems In-Reply-To: <95f1acd0906231021x5fd87bb5h328f000c1649158e@mail.gmail.com> References: <95f1acd0906231021x5fd87bb5h328f000c1649158e@mail.gmail.com> Message-ID: <200906232335.21946.Kalyanov.Dmitry@gmail.com> On ??????? 23 ???? 2009 21:21:54 Zach wrote: > I handle all of my Lisp libraries by hand (exactly because package managers > seem to have outdated versions). You were right that I was behind of > several of the dependencies. I pulled the latest sources on those. (offtopic: in gentoo linux, lisp overlay has all the newest versions of lisp- related software including libraries; debian current lags behind) > > On my Ubuntu 8.10 system, I noticed that the libgtk2.0 package is version > 2.14, which doesn't meet the 2.16 version requirement. As far as I can > tell 2.16 is fairly new and has not made it's way into apt yet. I am not > going to install outside of the package manager for this, so cl-gtk2 will > have to wait (maybe I can install via the apt package manager somehow? I > am not very experienced with it). I tried running cl-gtk2 on Ubuntu 9.04, it worked (ubuntu 9.04 has gtk+-2.16). It looks like that some versioning mechanism is required in cl-gtk2 (to detect which version of gtk is installed to define only things that are available in installed version). I'll think about how I can relax the requirement to gtk+ version. > debugger invoked on a SB-SYS:MEMORY-FAULT-ERROR in thread # thread" RUNNING {100277E431}>: > Unhandled memory fault at #x0. That's probably a consequence of some of Gtk+ classes not being available in gtk+-2.14. > I also played around on OS X (which I see you do not support) also running > 1.0.25 by adding the dylib style shared object files. This reported > several SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERRORs which sounds more like > an unmet library version dependency. Those look like this: > > Attempt to call an undefined alien function. > [Condition of type SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERROR] > Were the warning about undefined alien symbols signalled before this error? Like this: ; caught STYLE-WARNING: ; Undefined alien: "..." Probably, gtk_test_register_all_types was not compiled into the os x binary of gtk+. It should be harmless to remove the call to (gtk-register-all-types) in file gtk/gtk.main_loop_events.lisp. > > Also, I would like to say that there are several Lisp libraries that > provide gtk, gdk, and the like (just not very well, in my experience). > Some have also taken the same names for there .asd files (gtk.asd, gdk.asd, > glib.asd, etc.), which means that one cannot have your library coexist with > the other in the same asdf registry since asdf doesn't know which .asd to > use. It is just a little annoying. I've thought of that ? I'll change names to avoid name conflicts. > > I hope some of this helps. If you have any questions or things you want me > to try, I would be happy to do so. I know absolutely nothing about GTK, > but I would be very happy to have a gtk binding that works for me and the > rest of the CL community, so I wish you the best of luck, Thanks! -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: