[lgtk-devel] glade

Sean Champ schamp at commonwerx.org
Tue Apr 19 11:31:50 UTC 2005


Hello Mario,


There is a diff attached to this email -- such that I would like to
propose about the glade-lib handling -- should it be found
applicable. It's no huge thing, of course. It seemed, however, like
the code -- as available in the diff -- might serve to resolve the
issue, somewhat "broadly", such that any other Debian users, at least,
might not encounter a quirk about it.



* A rundown of the modifications, proposed in the diff:


** Motivation
The proposed code does serve to remove the pkg-config library-naming
arguments from the functions in which pkg-config command would be
called.   


** Particulars

 What the diff'd code does:

 - defines a *pkgconfig-modules* parameter

 - sets *pkgconfig-modules* to  be used (when pkg-config is executed),
   for the identification of loader/header directives that
   are required for the respective load/compile operation.



** Issues

There is an issue about it, in the fact that the glade lib does not
need not be named (in the call to pkg-config), when wrappers.c is
compiled, but yet, with the diff, the glade lib would be named, as so,
when wrappers.c is compiled -- the same, then, as when ld would be
called

There is a workaround for resolving this, but one manner of the
workaround requires that some  more code wold be written, for
extending ASDF.

I've written up a little incidental proposal for such; I expect that
it may be not ineresting to anyone but myself, as yet. However, just to
in case:
 http://gimbal.paunix.org/tmp/projects/README.asdf.foreign-c-interface.txt

The "proposal" part of it, about ASDF, starts at about line 163 of the
file. 

I am sure, it's may be not easy to read. I can, however, accept
questions and/or suggestiosn, gladly, about any part or detail of it. 


I know that it should probably be reformated as DocBook, that
file. For now, though, it is officially stopped, in its first revision
-- that proposal for a rather incidental extension of ASDF; I would  
be open for any questions/comments, about it, however.


The rest of this is like "a normal response"


On 04-18-05, Mario Mommer wrote:
> 
> Hi Sean,
> 
> Sean Champ <schamp at commonwerx.org> writes:
> > I was loading lgtk with asdf, but I was running into a problem about
> > an undefined symbol, from the glade libs.
> >
> > After I'd pushed "-lglade-2.0" onto lgtk-asd::*gtklibs* it worked
> > alright.
> 
> Can you tell me what symbol? I don't remember merging in any glade
> stuff, so I'm a bit surprised :-)

It was glade_xml_signal_connect_data



> 
> > Tired of catching flack in "the common lisp community",
> 
> Hm... I don't quite understand that comment, although I'm probably
> lacking some context. As far as lgtk-devel is concerned, this is
> flak-free zone, so feel free.

Certainly, I can understand if that statement, mine, would not have
been understandable. 

I regard it, now, as it having been a response - in some vague terms -
after what I have encountered in some community, such that has
coincided about Common LISP -- such that I may expect to encounter
again, ever, and "deal with it" though I will. 

Sometimes, such has been one heck  of a put-off, about this simple
programming  language -- some of the pomp and attitude that I have
noticed, of anyone, coinciding about Common LISP, and of course,
little if any of it is actually about the language, or programming, or
anything technical, anything practical.

Anyhow, if while I will just stay away from a channel in IRC and not
bother with c.l.l, then I bet, I'll stop thinking as if the Common
LISP community was going to be only productive of (mild) strife,
hassles, and any general annoyance, to me -- among people, all code
still being "a common norm", of course.




Anyhow, hasta


-----
Sean




Below: 
  The diff (unidiff'd), for the modifications proposed upon lgtk.asd


Index: lgtk.asd
===================================================================
RCS file: /project/lgtk/cvsroot/lgtk/lgtk.asd,v
retrieving revision 1.10
diff -p -u -u -r1.10 lgtk.asd
--- lgtk.asd	13 May 2004 19:33:49 -0000	1.10
+++ lgtk.asd	19 Apr 2005 08:59:57 -0000
@@ -12,6 +12,11 @@
 
 (defvar *ccompiler* "cc")
 
+
+;; list of library/module names to  provide to pkgconfig
+(defparameter *pkgconfig-modules* '("gtk+-2.0" "ligblade-2.0"))
+
+
 ;; Split a string at whitespace.
 (defun splitatspc (str)
   (labels ((whitespace-p (c)
@@ -32,10 +37,10 @@
       (cdr buf))))
 
 (defun pkg-config-lib-string ()
-  #+sbcl (run-program "pkg-config" '("--libs" "gtk+-2.0")
+  #+sbcl (run-program "pkg-config" (list* "--libs" *pkgconfig-modules*)
 		      :search t
 		      :output :stream)
-  #+cmu (ext:run-program "pkg-config" '("--libs" "gtk+-2.0")
+  #+cmu (ext:run-program "pkg-config" (list* "--libs" *pkgconfig-modules*)
 			  :output :stream))
 
 ;; Get the list of libraries.
@@ -55,10 +60,10 @@
 
 
 (defun pkg-config-cflags-string ()
-  #+sbcl (run-program "pkg-config" '("--cflags" "gtk+-2.0")
+  #+sbcl (run-program "pkg-config" (list* "--cflags" *pkgconfig-modules*)
 		      :search t
 		      :output :stream)
-  #+cmu (ext:run-program "pkg-config" '("--cflags" "gtk+-2.0")
+  #+cmu (ext:run-program "pkg-config" (list* "--cflags" *pkgconfig-modules*)
 			  :output :stream))
 
 (defun get-gtk-cflags ()



More information about the lgtk-devel mailing list