You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(34) |
Aug
(11) |
Sep
(6) |
Oct
(1) |
Nov
(10) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2004 |
Jan
(2) |
Feb
(8) |
Mar
|
Apr
(9) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(13) |
Nov
(1) |
Dec
(7) |
2005 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
(22) |
Apr
(1) |
May
|
Jun
(9) |
Jul
(3) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
(5) |
Apr
(2) |
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Pablo S. <pbl...@gm...> - 2009-07-11 14:39:02
|
Phil Krylov escribió: > Hi, > > Are you compiling using make -f Makefile.simple? > The autoconf stuff is temporarily broken in CVS. > Hi, Phil. No, I went the autoconf way. I'll give Makefile.simple a try. Thank you for answering, and best regards. -- Pablo Sánchez Linux Registered User #417589 |
From: Phil K. <ph...@ne...> - 2009-07-11 13:42:55
|
Hi, Are you compiling using make -f Makefile.simple? The autoconf stuff is temporarily broken in CVS. 2009/7/9 Pablo Sánchez <pbl...@gm...>: > Hi all, > after updating to latest revision, > >> /* $Id: ChangeLog,v 1.57 2009/03/23 19:35:20 likewolf Exp $ */ >> >> 2009-03-23-r2 Phil Krylov <phil a t newstar.rinet.ru> > > xbgtk does not compile any more, aborting with the following message: > >> Traceback (most recent call last): >> File "../codegen/codegen_xb.py", line 1587, in <module> >> sys.exit(main(sys.argv)) >> File "../codegen/codegen_xb.py", line 1543, in main >> p.startParsing() >> File "/home/pablo/Proyectos/xbgtk/codegen/scmexpr.py", line 113, in startParsing >> for statement in statements: >> File "/home/pablo/Proyectos/xbgtk/codegen/scmexpr.py", line 27, in parse >> fp = open(filename, 'r') >> IOError: [Errno 2] No such file or directory: 'gdk-types.defs' >> /home/pablo/hbdevel/bin/harbour -q0 -n -I/home/pablo/hbdevel/include -oatk.raw atk.prg >> Cannot open input file: atk.prg >> make[1]: *** [atk.raw] Error 1 >> make[1]: se sale del directorio `/home/pablo/Proyectos/xbgtk/source' >> make: *** [all-recursive] Error 1 > > My environment: > >> Linux ps-nsa-lsa-roam 2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 19:49:51 UTC 2009 i686 GNU/Linux > >> Harbour 2.0.0beta2 (Rev. 11664) >> Copyright (c) 1999-2009, http://www.harbour-project.org/ >> >> Harbour Build Info >> --------------------------- >> Version: Harbour 2.0.0beta2 (Rev. 11664) >> Compiler: GNU C 4.3.3 (32-bit) >> Platform: Linux 2.6.28-13-generic i686 >> PCode version: 0.2 >> ChangeLog last entry: 2009-07-08 01:11 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) >> ChangeLog ID: ChangeLog 11664 2009-07-07 23:12:27Z vszakats >> >> Built on: Jul 9 2009 12:28:21 >> Build options: >> Language options: (Clipper 5.3) (Clipper 5.x undoc) (Xbase++) (Flagship) >> --------------------------- > >> pablo@ps-nsa-lsa-roam:~$ pkg-config gtk+-2.0 --modversion >> 2.16.1 > > Problem seems to be the changing of the .defs files after > >> 2009-03-23 Phil Krylov <phil a t newstar.rinet.ru> > > I'd prefer not to mess with the makefiles myself. Is there something I'm missing? > > Thanks in advance, and best regards, > > -- > Pablo Sánchez -- Ph. |
From: Pablo S. <pbl...@gm...> - 2009-07-09 17:58:15
|
Hi all, after updating to latest revision, > /* $Id: ChangeLog,v 1.57 2009/03/23 19:35:20 likewolf Exp $ */ > > 2009-03-23-r2 Phil Krylov <phil a t newstar.rinet.ru> xbgtk does not compile any more, aborting with the following message: > Traceback (most recent call last): > File "../codegen/codegen_xb.py", line 1587, in <module> > sys.exit(main(sys.argv)) > File "../codegen/codegen_xb.py", line 1543, in main > p.startParsing() > File "/home/pablo/Proyectos/xbgtk/codegen/scmexpr.py", line 113, in startParsing > for statement in statements: > File "/home/pablo/Proyectos/xbgtk/codegen/scmexpr.py", line 27, in parse > fp = open(filename, 'r') > IOError: [Errno 2] No such file or directory: 'gdk-types.defs' > /home/pablo/hbdevel/bin/harbour -q0 -n -I/home/pablo/hbdevel/include -oatk.raw atk.prg > Cannot open input file: atk.prg > make[1]: *** [atk.raw] Error 1 > make[1]: se sale del directorio `/home/pablo/Proyectos/xbgtk/source' > make: *** [all-recursive] Error 1 My environment: > Linux ps-nsa-lsa-roam 2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 19:49:51 UTC 2009 i686 GNU/Linux > Harbour 2.0.0beta2 (Rev. 11664) > Copyright (c) 1999-2009, http://www.harbour-project.org/ > > Harbour Build Info > --------------------------- > Version: Harbour 2.0.0beta2 (Rev. 11664) > Compiler: GNU C 4.3.3 (32-bit) > Platform: Linux 2.6.28-13-generic i686 > PCode version: 0.2 > ChangeLog last entry: 2009-07-08 01:11 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) > ChangeLog ID: ChangeLog 11664 2009-07-07 23:12:27Z vszakats > > Built on: Jul 9 2009 12:28:21 > Build options: > Language options: (Clipper 5.3) (Clipper 5.x undoc) (Xbase++) (Flagship) > --------------------------- > pablo@ps-nsa-lsa-roam:~$ pkg-config gtk+-2.0 --modversion > 2.16.1 Problem seems to be the changing of the .defs files after > 2009-03-23 Phil Krylov <phil a t newstar.rinet.ru> I'd prefer not to mess with the makefiles myself. Is there something I'm missing? Thanks in advance, and best regards, -- Pablo Sánchez Linux Registered User #417589 |
From: Phil K. <ph...@ne...> - 2009-04-11 20:36:17
|
Hi, On Thu, Mar 26, 2009 at 12:58 AM, Przemyslaw Czerpak <dr...@ac...> wrote: > But to use [x]hb* scripts only (or hbmk2 in the future) it's necessary > to resolve the problem with static Harbour functions inside #pragma > {begin,end}dump in .prg files and eliminate sed. Sadly, it's not enough. I need also to pass pkgconfig --cflags gtk+-2.0 output to hbcmp, but now it seems to be impossible. Only hbmk2 seems to support -cflag:... option. -- Ph. |
From: Przemyslaw C. <dr...@ac...> - 2009-04-06 19:56:54
|
Hi, On Thu, 26 Mar 2009, Phil Krylov wrote: > On Wed, Mar 25, 2009 at 11:58 PM, Przemyslaw Czerpak <dr...@ac...> wrote: > > I see that you are using static Harbour functions inside > > #pragma begindump C code and then preprocess generated .c > > files with sed to convert declarations from HB_FUNC_EXTERN() > > to HB_FUNC_STATIC(). > > It effectively blocks using hbcmp directly to compile .prg files > > to .o ones so it's still necessary to define HB_INC_INSTALL and > > HB_LIB_INSTALL. > > It will be much easier to use only [x]hbcmp and [x]hbcc/[x]hblnk > > just like in xHGtk without setting any external variables. > > Yes I have this problem. Also, line numbers in PCODE after #enddump > are off-by-one. I cannot replicate this problem. Probably I'm missing sth but the code below works correctly for me compiled with and without -DDUMP. > Actually, I would prefer to drop begindump usage and > declare classes in C, but we don't have a well enough C classes API > for this. Yes, it's the best solution. I'll look what I can do here. So far I tried to minimize public Harbour OOP C API to not introduce some possible limitation in farther extensions but seems that it creates other problems. > > you can use: > > GTK_CFLAGS := $(shell pkg-config --cflags gtk+-2.0) > Yes, I know, just it didn't look too slow to me ;) I will add it. Just like for me but it was reported by Windows users in some other projects. Probably in Windows it causes noticeable speed overhead. > > But to use [x]hb* scripts only (or hbmk2 in the future) it's necessary > > to resolve the problem with static Harbour functions inside #pragma > > {begin,end}dump in .prg files and eliminate sed. > > I do not like it but I cannot give you any reasonable alternative so > > I'll add to Harbour some very simple support for detecting such functions > > though it will work in a little bit different way then in xHarbour. > > It will only look for static functions used also in .prg code and will > > make some basic tokenization to eliminate comments, strings and operate > > only on whole words. However it will not know anything about C syntax > > and C preprocessing so it will not work correctly for code like: > > #if 0 > > HB_FUNC_STATIC( MYFUNC ) > > #else > > HB_FUNC( MYFUNC ) > > #endif > > { > > hb_retc( "MyFunc" ); > > } > > but for xbgtk and probably 99% of other cases it's enough. > How many other cases do you know BTW? Not too much. Just simply I see #pragma {begin,end}dump in some other projects but because it works in xHarbour then for sure it will work with current Harbour code which is a little bit more precise. I left this example in ChangeLog: proc main() ? YEAR( DATE() ), MONTH( DATE() ), DAY( DATE() ), TEST() return #pragma begindump #include "hbapi.h" /* are comments stripped? If not then HB_FUNC_STATIC( DATE ) in comment can create troubles. */ // HB_FUNC_STATIC( YEAR ) just like this one in C++ comments #define MYHB_FUNC_STATIC( fun ) #fun // to test whole word tokens /* COMMENT */HB_FUNC_STATIC( TEST ) { hb_retc( "HB_FUNC_STATIC( DAY )->" MYHB_FUNC_STATIC( MONTH ) ); } #pragma enddump I used it to test if I correctly extract C tokens in dumped C code in Harbour. It should also exploits some problems with xHarbour code which does not make basic token validation when looks for HB_FUNC_STATIC so maybe current xHarbour code should also be updated. > > Seems that > > it's better/safer solution then external updating of generated .c files. > I'm not sure it's safer, because I generate these files and know > exactly what kind of code they contain. > Rather than this hack I would prefer a C-level classes API, which > would allow me to define a class with its superclasses, multiple > constructors. Not using begindump. > But I understand that an API should be carefully designed, and so - > thanks at least for the hack. Now it should work. Not perfect due to missing C preprocessor rules what is rather impossible to implement without full integration with C compiler but it should work as I said a little bit better then in xHarbour. But of course it's still ugly hack. > > There is still open the question about localization of final libraries > > in make install but I think we can resolve it by adding new switch > > to hb* scripts, f.e. --hblibdir so they can be used just like pkg-config: > > HB_LIB_INSTALL := $(shell hbmk --hblibdir) > > HB_INC_INSTALL := $(shell hbmk --hbincdir) > It would be a really nice feature! It's already added to hb* scripts and hbmk2 as: --hbdirbin --hbdirlib --hbdirinc below is patch. Please add it to xHarbour so it can be used by libraries written for both projects. best regards, Przemek /*** proc line test ***/ proc main() ? p1() #ifdef DUMP ? c() #endif ? p2() return func p1() return procname()+"("+hb_ntos(procline())+")" #ifdef DUMP #pragma begindump #include "hbapi.h" HB_FUNC( C ) { char buf[ 100 ]; hb_snprintf( buf, sizeof( buf ), "F(%d)", __LINE__ ); hb_retc( buf ); } #pragma enddump #endif func p2() return procname()+"("+hb_ntos(procline())+")" /*** end of proc line test ***/ Index: hb-func.sh =================================================================== --- hb-func.sh (wersja 10780) +++ hb-func.sh (kopia robocza) @@ -368,6 +368,7 @@ HB_USRLPATH="" HB_GEN="" HB_MODE="" +HB_EXIT="" LN_OPT="${CC_HB_USER_LDFLAGS}" CC_OPT="-O3 ${CC_HB_USER_CFLAGS}" HB_OPT="${CC_HB_USER_PRGFLAGS}" @@ -413,6 +414,9 @@ -g[cohwij]) HB_GEN="\${v#-g}"; p="\${v}" ;; -gc[0-9]) HB_GEN="c"; p="\${v}" ;; -go[0-9]) HB_GEN="o"; p="\${v}" ;; + --hbdirlib) echo "\${HB_LIB_INSTALL}"; HB_EXIT="yes" ;; + --hbdirinc) echo "\${HB_INC_INSTALL}"; HB_EXIT="yes" ;; + --hbdirbin) echo "\${HB_BIN_INSTALL}"; HB_EXIT="yes" ;; -*) p="\${v}" ;; *) [ -z \${FILEOUT} ] && FILEOUT="\${v##*/}"; p="\${v}" ;; esac @@ -421,6 +425,9 @@ done P=( "\${PP[@]}" ) +[ "\${P}" != "" ] && HB_EXIT="no" +[ "\${HB_EXIT}" = "yes" ] && exit + case "\${HB_MT}" in [Mm][Tt]|[Yy][Ee][Ss]|1) HB_MT="MT";; *) HB_MT="";; |
From: Phil K. <ph...@ne...> - 2009-03-26 05:59:00
|
Hi, On Wed, Mar 25, 2009 at 11:58 PM, Przemyslaw Czerpak <dr...@ac...> wrote: > I see that you are using static Harbour functions inside > #pragma begindump C code and then preprocess generated .c > files with sed to convert declarations from HB_FUNC_EXTERN() > to HB_FUNC_STATIC(). > It effectively blocks using hbcmp directly to compile .prg files > to .o ones so it's still necessary to define HB_INC_INSTALL and > HB_LIB_INSTALL. > It will be much easier to use only [x]hbcmp and [x]hbcc/[x]hblnk > just like in xHGtk without setting any external variables. Yes I have this problem. Also, line numbers in PCODE after #enddump are off-by-one. Actually, I would prefer to drop begindump usage and declare classes in C, but we don't have a well enough C classes API for this. > You can also make small trick to increase a little bit the compilation > speed by reducing number of calls to pkg-config. > Instead of: > GTK_CFLAGS = `pkg-config --cflags gtk+-2.0` > you can use: > GTK_CFLAGS := $(shell pkg-config --cflags gtk+-2.0) > It should cause that pkg-config will be executed only once in the above > line instead of calling it in each rule. Yes, I know, just it didn't look too slow to me ;) I will add it. > But to use [x]hb* scripts only (or hbmk2 in the future) it's necessary > to resolve the problem with static Harbour functions inside #pragma > {begin,end}dump in .prg files and eliminate sed. > I do not like it but I cannot give you any reasonable alternative so > I'll add to Harbour some very simple support for detecting such functions > though it will work in a little bit different way then in xHarbour. > It will only look for static functions used also in .prg code and will > make some basic tokenization to eliminate comments, strings and operate > only on whole words. However it will not know anything about C syntax > and C preprocessing so it will not work correctly for code like: > #if 0 > HB_FUNC_STATIC( MYFUNC ) > #else > HB_FUNC( MYFUNC ) > #endif > { > hb_retc( "MyFunc" ); > } > but for xbgtk and probably 99% of other cases it's enough. How many other cases do you know BTW? > Seems that > it's better/safer solution then external updating of generated .c files. I'm not sure it's safer, because I generate these files and know exactly what kind of code they contain. Rather than this hack I would prefer a C-level classes API, which would allow me to define a class with its superclasses, multiple constructors. Not using begindump. But I understand that an API should be carefully designed, and so - thanks at least for the hack. > There is still open the question about localization of final libraries > in make install but I think we can resolve it by adding new switch > to hb* scripts, f.e. --hblibdir so they can be used just like pkg-config: > HB_LIB_INSTALL := $(shell hbmk --hblibdir) > HB_INC_INSTALL := $(shell hbmk --hbincdir) It would be a really nice feature! -- Ph. |
From: Przemyslaw C. <dr...@ac...> - 2009-03-25 20:51:46
|
Hi Phil, I see that you are using static Harbour functions inside #pragma begindump C code and then preprocess generated .c files with sed to convert declarations from HB_FUNC_EXTERN() to HB_FUNC_STATIC(). It effectively blocks using hbcmp directly to compile .prg files to .o ones so it's still necessary to define HB_INC_INSTALL and HB_LIB_INSTALL. It will be much easier to use only [x]hbcmp and [x]hbcc/[x]hblnk just like in xHGtk without setting any external variables. Probably only one simple variable HB_PREF will be enough to give support for Harbour and xHarbour compilation (also cross compilation). I.e. compile configuration can look like: # by default build Harbour platform native binaries # for xHarbour use HB_PREF=xhb # you can also set prefix for cross compilation, f.e.: # HB_PREF=hbw # Harbour Win32 cross build binaries (MinGW32) # HB_PREF=xhbw # xHarbour Win32 cross build binaries (MinGW32) ifeq ($(HB_PREF),) HB_PREF=hb endif OBJ_DIR = obj-$(HB_PREF) LIB_DIR = lib-$(HB_PREF) PRG_RULE = $(HB_PREF)cmp $(PRGFLAGS) -o$@ $< CC_RULE = $(HB_PREF)cc -c $(CFLAGS) -o$@ $< $(OBJ_DIR)/%.o: %.prg $(PRG_RULE) $(OBJ_DIR)/%.o: %.c $(CC_RULE) You can also make small trick to increase a little bit the compilation speed by reducing number of calls to pkg-config. Instead of: GTK_CFLAGS = `pkg-config --cflags gtk+-2.0` you can use: GTK_CFLAGS := $(shell pkg-config --cflags gtk+-2.0) It should cause that pkg-config will be executed only once in the above line instead of calling it in each rule. But to use [x]hb* scripts only (or hbmk2 in the future) it's necessary to resolve the problem with static Harbour functions inside #pragma {begin,end}dump in .prg files and eliminate sed. I do not like it but I cannot give you any reasonable alternative so I'll add to Harbour some very simple support for detecting such functions though it will work in a little bit different way then in xHarbour. It will only look for static functions used also in .prg code and will make some basic tokenization to eliminate comments, strings and operate only on whole words. However it will not know anything about C syntax and C preprocessing so it will not work correctly for code like: #if 0 HB_FUNC_STATIC( MYFUNC ) #else HB_FUNC( MYFUNC ) #endif { hb_retc( "MyFunc" ); } but for xbgtk and probably 99% of other cases it's enough. Seems that it's better/safer solution then external updating of generated .c files. There is still open the question about localization of final libraries in make install but I think we can resolve it by adding new switch to hb* scripts, f.e. --hblibdir so they can be used just like pkg-config: HB_LIB_INSTALL := $(shell hbmk --hblibdir) HB_INC_INSTALL := $(shell hbmk --hbincdir) You can easy add it also to xhb* scripts. It should help in creating really simple make files which should work also in other systems supported by [x]hb* scripts, f.e. in SunOS without any explicit support for them. [x]hb* scripts will make the whole job. HTH, best regards, Przemek |
From: <lik...@us...> - 2009-03-23 19:35:26
|
Update of /cvsroot/xbgtk/xbgtk In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv19514 Modified Files: ChangeLog MAPPING README Log Message: 2009-03-23-r2 Phil Krylov <phil a t newstar.rinet.ru> * MAPPING * README Added a note about GObject():props magic message. Removed a note about previously unsuppoerted hashes under Harbour. * include/xbgtk.h * source/xbadd.c Added xbg_xbobj_to_unichar_conv() which allows to use a UTF8 or a numeric code for gunichar type args. Added O& format specifier in xb_parse_params() allowing to assign custom PHB_ITEM -> api type conversion functions. * source/gtk_xb.override Added GtkTreeStore():set_column_types(aTypes). * source/xbgobject.prg Added GObject():disconnect(handler_id), GObject():emit(signal_name, ...), GObject():freeze_notify(), GObject():get_property(name), GObject():handler_disconnect(handler_id), GObject():handler_is_connected(handler_id), GObject():handler_block(handler_id), GObject():handler_unblock(handler_id), GObject():stop_emission(signal_name), GObject():notify(property_name), GObject():set_property(name, value), GObject():thaw_notify(). Added a magic message GObject():props allowing to access/assign GObject properties in an easy way, like some_object:props:some_prop. Index: ChangeLog =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/ChangeLog,v retrieving revision 1.56 retrieving revision 1.57 diff -u -d -r1.56 -r1.57 --- ChangeLog 23 Mar 2009 11:14:04 -0000 1.56 +++ ChangeLog 23 Mar 2009 19:35:20 -0000 1.57 @@ -1,5 +1,35 @@ /* $Id$ */ +2009-03-23-r2 Phil Krylov <phil a t newstar.rinet.ru> + * MAPPING + * README + Added a note about GObject():props magic message. + Removed a note about previously unsuppoerted hashes under Harbour. + + * include/xbgtk.h + * source/xbadd.c + Added xbg_xbobj_to_unichar_conv() which allows to use a UTF8 or a + numeric code for gunichar type args. + Added O& format specifier in xb_parse_params() allowing to assign + custom PHB_ITEM -> api type conversion functions. + + * source/gtk_xb.override + Added GtkTreeStore():set_column_types(aTypes). + + * source/xbgobject.prg + Added GObject():disconnect(handler_id), + GObject():emit(signal_name, ...), GObject():freeze_notify(), + GObject():get_property(name), + GObject():handler_disconnect(handler_id), + GObject():handler_is_connected(handler_id), + GObject():handler_block(handler_id), + GObject():handler_unblock(handler_id), + GObject():stop_emission(signal_name), + GObject():notify(property_name), + GObject():set_property(name, value), GObject():thaw_notify(). + Added a magic message GObject():props allowing to access/assign + GObject properties in an easy way, like some_object:props:some_prop. + 2009-03-23 Phil Krylov <phil a t newstar.rinet.ru> * codegen/argtypes_xb.py Better diagnostics. Index: MAPPING =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/MAPPING,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- MAPPING 18 Jul 2006 17:29:05 -0000 1.7 +++ MAPPING 23 Mar 2009 19:35:20 -0000 1.8 @@ -1,3 +1,5 @@ +/* $Id$ */ + The mapping of GTK+ onto [x]Harbour =================================== @@ -129,6 +131,12 @@ GtkWindow():get_default_icon_list() --> aIcons GtkWindow():list_toplevels() --> aToplevels +There is also a magic GObject():props message, which you can use to access or +assign GObject properties, like this: + + some_object:props:some_property_name := value + value := some_object:props:some_property_name + Translation from pygtk-based code ================================= @@ -138,8 +146,8 @@ Replace gtk. module prefix from pygtk with Gtk prefix. Replace calls using named (non-positional) arguments by positional -arguments or (only in xHarbour) a single argument which is a hash -containing real arguments, like this: +arguments or by a single argument which is a hash containing real +arguments, like this: GtkMessageDialog():new( { "buttons" => GTK_BUTTONS_OK, "message_format" => "Hello world" } ) Index: README =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/README,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- README 18 Jul 2006 17:47:54 -0000 1.16 +++ README 23 Mar 2009 19:35:20 -0000 1.17 @@ -143,8 +143,7 @@ XBase Dialect Differences ========================= - Harbour xHarbour -Hash value support: No Yes +(none I know of) Using xbGTK @@ -152,7 +151,7 @@ To use xbGTK, you need to compile your program specifying the path to xbGTK include files (/usr/local/include/xbgtk by default) and link it -with libxbgtk.so (in /usr/local/lib by default) and GTK+ libraries. +with libxbgtk.so (in /usr/local/lib by default). Harbour and xHarbour both include wonderful build utilities by Przemyslaw Czerpak: [x]hbcmp, [x]hblnk, and [x]hbmk. They supply the required build flags automatically if you run them with -xbgtk switch. @@ -186,6 +185,6 @@ Contact Niko Mikkila <nm...@ph...> if you have problems with the makefiles or Linux-related stuff. -Finally, the best sources of information is pygtk site at http://www.pygtk.org +Finally, the best sources of information are pygtk site at http://www.pygtk.org and GTK site at http://www.gtk.org. |
From: <lik...@us...> - 2009-03-23 11:14:18
|
Update of /cvsroot/xbgtk/xbgtk In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv12273 Modified Files: ChangeLog Log Message: 2009-03-23 Phil Krylov <phil a t newstar.rinet.ru> * codegen/argtypes_xb.py Better diagnostics. UInt32 conversion fix. CairoContext support. const-GBoxed support. * codegen/codegen_xb.py * codegen/definitions.py * codegen/defsparser_xb.py Misc beautifications, include .defs file support, docstring in .defs. * codegen/docextract.py * codegen/docgen.py * codegen/override_xb.py * codegen/reversewrapper_xb.py * codegen/scmexpr.py * codegen/override_xb.py * source/atk-types.defs * source/atk.defs * source/gtk-extrafuncs.defs * source/pango-types.defs * source/pango.defs - source/gtk-types.defs - source/gdk-types.defs - source/gtk.defs - source/gdk.defs + source/gtk-base-types.defs + source/gtk-base.defs + source/gtk-2.10-types.defs + source/gtk-2.10.defs + source/gtk-2.12-types.defs + source/gtk-2.12.defs + source/gtk-2.14-types.defs + source/gtk-2.14.defs + source/gdk-base-types.defs + source/gdk-base.defs + source/gdk-2.10.defs + source/gdk-2.12.defs + source/gdk-2.14.defs + source/gtkunixprint-base-types.defs + source/gtkunixprint-base.defs + source/gtkunixprint-2.12.defs + source/gtkunixprint-2.14.defs + source/libglade.defs + source/pangocairo.defs Updates from upstream. * Makefile.config-simple * examples/Makefile.simple + examples/glade/Makefile.simple + examples/xbgtk_demo/Makefile.simple Use hb* tools to build shared libs and executables. Support for gtkunixprint, libglade and cairo added. Support for different GTK+ APIs: 2.8, 2.10, 2.12, 2.14. Sadly, only .simple Makefiles are updated yet, and only for Harbour/linux. Autoconf stuff will be later. * examples/helloworld.prg CVS Id and another button added. + examples/testprint.prg An example for Cairo and GtkPrint* usage. * examples/glade/autoconnect.prg Made the example to exit ;) Unref toplevel windows on exit. * examples/glade/glade-demo.prg Unref toplevel windows on exit. * examples/xbgtk_demo/demos.prg - examples/xbgtk_demo/item_factory.prg + examples/xbgtk_demo/uimanager.prg GtkItemFactory is deprecated, use GtkUIManager instead. * source/Makefile.simple Now these separate shared libraries are built: libxbgobject.so libxbatk.so libxbcairo.so libxbgtk.so libxbgtkunixprint.so libxbglade.so libxbpango.so libxbpangocairo.so * source/atk_xb.override Added AtkRectangle():new(x,y,w,h). * source/gdk_xb.override Added GdkPixbuf():pixel_array, GdkPixbuf():get_from_drawable2(), GdkRectangle():union(src). * source/gtk_xb.override Added GtkFileChooserButton():new(title,[backend] | dialog), GtkPrintContext():get_cairo_context(). * source/pango_xb.override Added PangoLayout():set_text(). * source/libglade_xb.override * source/xbgboxed.prg Formatting. * source/xbgobject.prg Unref wrapped GObjects on exit, allows to prevent some memory leaks by uncareful developers. Now GObject references (=destroys) XbGObject, which references HB_ITEM. Most memleaks are gone. This is an unfinished work, but I really want to commit it, I just have deleted one of the heavily fixed files and had to restore it by memory. TODO: xHarbour support, minGW support, library versioning in Makefile.simple, autoconf updates. Index: ChangeLog =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/ChangeLog,v retrieving revision 1.55 retrieving revision 1.56 diff -u -d -r1.55 -r1.56 --- ChangeLog 18 Jul 2006 17:47:54 -0000 1.55 +++ ChangeLog 23 Mar 2009 11:14:04 -0000 1.56 @@ -1,5 +1,135 @@ /* $Id$ */ +2009-03-23 Phil Krylov <phil a t newstar.rinet.ru> + * codegen/argtypes_xb.py + Better diagnostics. + UInt32 conversion fix. + CairoContext support. + const-GBoxed support. + * codegen/codegen_xb.py + * codegen/definitions.py + * codegen/defsparser_xb.py + Misc beautifications, include .defs file support, docstring in .defs. + * codegen/docextract.py + * codegen/docgen.py + * codegen/override_xb.py + * codegen/reversewrapper_xb.py + * codegen/scmexpr.py + * codegen/override_xb.py + * source/atk-types.defs + * source/atk.defs + * source/gtk-extrafuncs.defs + * source/pango-types.defs + * source/pango.defs + - source/gtk-types.defs + - source/gdk-types.defs + - source/gtk.defs + - source/gdk.defs + + source/gtk-base-types.defs + + source/gtk-base.defs + + source/gtk-2.10-types.defs + + source/gtk-2.10.defs + + source/gtk-2.12-types.defs + + source/gtk-2.12.defs + + source/gtk-2.14-types.defs + + source/gtk-2.14.defs + + source/gdk-base-types.defs + + source/gdk-base.defs + + source/gdk-2.10.defs + + source/gdk-2.12.defs + + source/gdk-2.14.defs + + source/gtkunixprint-base-types.defs + + source/gtkunixprint-base.defs + + source/gtkunixprint-2.12.defs + + source/gtkunixprint-2.14.defs + + source/libglade.defs + + source/pangocairo.defs + Updates from upstream. + + * Makefile.config-simple + * examples/Makefile.simple + + examples/glade/Makefile.simple + + examples/xbgtk_demo/Makefile.simple + Use hb* tools to build shared libs and executables. + Support for gtkunixprint, libglade and cairo added. + Support for different GTK+ APIs: 2.8, 2.10, 2.12, 2.14. + Sadly, only .simple Makefiles are updated yet, and only for + Harbour/linux. Autoconf stuff will be later. + + * examples/helloworld.prg + CVS Id and another button added. + + examples/testprint.prg + An example for Cairo and GtkPrint* usage. + * examples/glade/autoconnect.prg + Made the example to exit ;) + Unref toplevel windows on exit. + * examples/glade/glade-demo.prg + Unref toplevel windows on exit. + * examples/xbgtk_demo/demos.prg + - examples/xbgtk_demo/item_factory.prg + + examples/xbgtk_demo/uimanager.prg + GtkItemFactory is deprecated, use GtkUIManager instead. + + * source/Makefile.simple + Now these separate shared libraries are built: + libxbgobject.so libxbatk.so libxbcairo.so libxbgtk.so + libxbgtkunixprint.so libxbglade.so libxbpango.so libxbpangocairo.so + + * source/atk_xb.override + Added AtkRectangle():new(x,y,w,h). + * source/gdk_xb.override + Added GdkPixbuf():pixel_array, GdkPixbuf():get_from_drawable2(), + GdkRectangle():union(src). + * source/gtk_xb.override + Added GtkFileChooserButton():new(title,[backend] | dialog), + GtkPrintContext():get_cairo_context(). + * source/pango_xb.override + Added PangoLayout():set_text(). + + * source/libglade_xb.override + * source/xbgboxed.prg + Formatting. + + * source/xbgobject.prg + Unref wrapped GObjects on exit, allows to prevent some memory leaks + by uncareful developers. Now GObject references (=destroys) + XbGObject, which references HB_ITEM. Most memleaks are gone. + + This is an unfinished work, but I really want to commit it, I just + have deleted one of the heavily fixed files and had to restore it by + memory. + + TODO: xHarbour support, minGW support, library versioning in + Makefile.simple, autoconf updates. + +2009-03-18 Phil Krylov <phil a t newstar.rinet.ru> + * xbgtk/Makefile.config-simple + * changed curses to ncurses - only SunOS [x]Harbour builds uses curses + automake should also be updated. Probably the references to [n]curses, + slang, gpm should be removed from current builds because now + [x]harbour shared libraries are linked with bindings to external + libraries + + * xbgtk/examples/xbgtk_demo/appwindow.prg + * use hb_bitand() instead of numand(). hb_bit*() functions are default + part of Harbour and xHarbour builds + + * xbgtk/include/xbgtk.h + * updated xb_item* macros to current [x]Harbour API functions + * enabled GC pointer items in Harbour builds + + * xbgtk/source/libglade_xb.override + * enabled hash item support in Harbour builds + % minor optimization + + * xbgtk/source/xbadd.c + * enabled hash item support in Harbour builds + ! fixed typo in variable name 'item' variable is used internally + in HPARAM() macro what may cause very bad results in code like: + PHB_ITEM item = HPARAM(n); + + (Fixes by Przemyslaw Czerpak. Thanks!) + 2006-07-18 Phil Krylov <phil a t newstar.rinet.ru> * README Some more documentation updates. |
From: Przemyslaw C. <dr...@ac...> - 2009-03-14 00:13:48
|
On Fri, 13 Mar 2009, Phil Krylov wrote: Hi, > > I have a patch for Harbour builds and some small cleanups to > > the version in CVS. > > Can I sent it to you? > Yes of course, probably the xbgtk mailing list is a better place, > AFAIR you were subscribed to it, but you can send the patch directly > to me. Here are modifications: * xbgtk/Makefile.config-simple * changed curses to ncurses - only SunOS [x]Harbour builds uses curses automake should also be updated. Probably the references to [n]curses, slang, gpm should be removed from current builds because now [x]harbour shared libraries are linked with bindings to external libraries * xbgtk/examples/xbgtk_demo/appwindow.prg * use hb_bitand() instead of numand(). hb_bit*() functions are default part of Harbour and xHarbour builds * xbgtk/include/xbgtk.h * updated xb_item* macros to current [x]Harbour API functions * enabled GC pointer items in Harbour builds * xbgtk/source/libglade_xb.override * enabled hash item support in Harbour builds % minor optimization * xbgtk/source/xbadd.c * enabled hash item support in Harbour builds ! fixed typo in variable name 'item' variable is used internally in HPARAM() macro what may cause very bad results in code like: PHB_ITEM item = HPARAM(n); After each make distclean if I also remove manually: xbgtk/source/genheader_atk xbgtk/source/genheader_gdk xbgtk/source/genheader_gtk xbgtk/source/genheader_pango xbgtk/source/genheader_xbgtk-fundamental xbgtk/source/xbgtk-fundamental.ch I see this error: make[1]: *** No rules to make target object `genheader_atk', necessary for `atk.ch'. Stop. the next make calls works correctly. It should be fixed. I think that you should look also at this warnings: gtk.prg:7698: warning: passing argument 2 of 'gtk_about_dialog_set_authors' from incompatible pointer type gtk.prg:7729: warning: passing argument 2 of 'gtk_about_dialog_set_documenters' from incompatible pointer type gtk.prg:7760: warning: passing argument 2 of 'gtk_about_dialog_set_artists' from incompatible pointer type gtk.prg:38561: warning: assignment from incompatible pointer type pango.prg:1850: warning: assignment discards qualifiers from pointer target type pango.prg:2502: warning: assignment makes pointer from integer without a cast In most of cases const is missing in declaration. best regards, Przemek |
From: Shikoba K. <co...@wa...> - 2007-01-27 23:56:20
|
Good day, Viazzgra $1, 80 Ciazzlis $3, 00 Levizztra $3, 35 http://www.printeryml.*com ( Important ! Remove "*" ) -- saw Madame Maxime return it, her opals glittering in the candlelight. Hermione was now teaching Krum to say her name properly; he kept calling her Hermy-own. |
From: <lik...@us...> - 2006-07-18 17:47:59
|
Update of /cvsroot/xbgtk/xbgtk In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14668 Modified Files: ChangeLog README Log Message: 2006-07-18 Phil Krylov <phil a t newstar.rinet.ru> * README Some more documentation updates. Index: ChangeLog =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/ChangeLog,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- ChangeLog 18 Jul 2006 17:29:04 -0000 1.54 +++ ChangeLog 18 Jul 2006 17:47:54 -0000 1.55 @@ -1,6 +1,10 @@ /* $Id$ */ 2006-07-18 Phil Krylov <phil a t newstar.rinet.ru> + * README + Some more documentation updates. + +2006-07-18 Phil Krylov <phil a t newstar.rinet.ru> * MAPPING * README Some documentation updates. Index: README =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/README,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- README 18 Jul 2006 17:29:05 -0000 1.15 +++ README 18 Jul 2006 17:47:54 -0000 1.16 @@ -147,6 +147,17 @@ Hash value support: No Yes +Using xbGTK +=========== + +To use xbGTK, you need to compile your program specifying the path to +xbGTK include files (/usr/local/include/xbgtk by default) and link it +with libxbgtk.so (in /usr/local/lib by default) and GTK+ libraries. +Harbour and xHarbour both include wonderful build utilities by Przemyslaw +Czerpak: [x]hbcmp, [x]hblnk, and [x]hbmk. They supply the required +build flags automatically if you run them with -xbgtk switch. + + BUGS / TODO =========== |
From: <lik...@us...> - 2006-07-18 17:29:11
|
Update of /cvsroot/xbgtk/xbgtk In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv6729 Modified Files: ChangeLog MAPPING README Log Message: 2006-07-18 Phil Krylov <phil a t newstar.rinet.ru> * MAPPING * README Some documentation updates. * codegen/argtypes_xb.py * codegen/codegen_xb.py * include/xbgtk.h * source/gdk.defs * source/gdk_xb.override * source/gtk.defs * source/gtk_xb.override * source/xbgobject.prg Added support for conversion between XBase arrays and gchar **, GList * and GSList * containers with object or string values. It gives us some more GTK+ API coverage. * source/gtk-types.defs GtkIconView implements GtkCellLayout. * examples/glade/Makefile.am Include *.glade files in the distribution package. * examples/xbgtk_demo/xbgtk_demo.prg Use the generic Monospace font family instead of Courier. Index: ChangeLog =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/ChangeLog,v retrieving revision 1.53 retrieving revision 1.54 diff -u -d -r1.53 -r1.54 --- ChangeLog 5 Jul 2006 22:04:06 -0000 1.53 +++ ChangeLog 18 Jul 2006 17:29:04 -0000 1.54 @@ -1,5 +1,27 @@ /* $Id$ */ +2006-07-18 Phil Krylov <phil a t newstar.rinet.ru> + * MAPPING + * README + Some documentation updates. + * codegen/argtypes_xb.py + * codegen/codegen_xb.py + * include/xbgtk.h + * source/gdk.defs + * source/gdk_xb.override + * source/gtk.defs + * source/gtk_xb.override + * source/xbgobject.prg + Added support for conversion between XBase arrays and gchar **, + GList * and GSList * containers with object or string values. + It gives us some more GTK+ API coverage. + * source/gtk-types.defs + GtkIconView implements GtkCellLayout. + * examples/glade/Makefile.am + Include *.glade files in the distribution package. + * examples/xbgtk_demo/xbgtk_demo.prg + Use the generic Monospace font family instead of Courier. + 2006-07-06 Phil Krylov <phil a t newstar.rinet.ru> * configure.in * include/xbgtk.h Index: MAPPING =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/MAPPING,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- MAPPING 22 Feb 2005 19:54:10 -0000 1.6 +++ MAPPING 18 Jul 2006 17:29:05 -0000 1.7 @@ -1,5 +1,5 @@ -The mapping of GTK+ onto Harbour -=============================== +The mapping of GTK+ onto [x]Harbour +=================================== This file is originally borrowed from pygtk, but its contents are changed to reflect xbgtk features. @@ -130,6 +130,20 @@ GtkWindow():list_toplevels() --> aToplevels +Translation from pygtk-based code +================================= + +If you want to use a pygtk-based example, you have to: + +Replace gtk. module prefix from pygtk with Gtk prefix. + +Replace calls using named (non-positional) arguments by positional +arguments or (only in xHarbour) a single argument which is a hash +containing real arguments, like this: + GtkMessageDialog():new( { "buttons" => GTK_BUTTONS_OK, + "message_format" => "Hello world" } ) + + Conclusions =========== Index: README =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/README,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- README 6 Apr 2006 13:29:25 -0000 1.14 +++ README 18 Jul 2006 17:29:05 -0000 1.15 @@ -140,6 +140,13 @@ /usr/local/mingw32-xharbour. +XBase Dialect Differences +========================= + + Harbour xHarbour +Hash value support: No Yes + + BUGS / TODO =========== @@ -168,3 +175,6 @@ Contact Niko Mikkila <nm...@ph...> if you have problems with the makefiles or Linux-related stuff. +Finally, the best sources of information is pygtk site at http://www.pygtk.org +and GTK site at http://www.gtk.org. + |
From: <lik...@us...> - 2006-07-05 22:04:24
|
Update of /cvsroot/xbgtk/xbgtk In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv17282 Modified Files: ChangeLog Makefile.in aclocal.m4 configure configure.in Log Message: 2006-07-06 Phil Krylov <phil a t newstar.rinet.ru> * configure.in * include/xbgtk.h * source/Makefile.am * source/gtk_xb.override * source/libglade_xb.override * source/xbgobject.h * source/xbgobject.prg * examples/Makefile.am * examples/glade/ * examples/glade/Makefile.am * examples/glade/README * examples/glade/glade-demo.prg * examples/glade/autoconnect.prg * examples/glade/test.glade * examples/glade/test2.glade Added libglade wrappers and samples. Increased version number to 0.5. * source/gdk_xb.override Added gdk_pixbuf_new_from_xpm_data() Index: ChangeLog =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/ChangeLog,v retrieving revision 1.52 retrieving revision 1.53 diff -u -d -r1.52 -r1.53 --- ChangeLog 6 Apr 2006 13:29:25 -0000 1.52 +++ ChangeLog 5 Jul 2006 22:04:06 -0000 1.53 @@ -1,5 +1,27 @@ /* $Id$ */ +2006-07-06 Phil Krylov <phil a t newstar.rinet.ru> + * configure.in + * include/xbgtk.h + * source/Makefile.am + * source/gtk_xb.override + * source/libglade_xb.override + * source/xbgobject.h + * source/xbgobject.prg + * examples/Makefile.am + * examples/glade/ + * examples/glade/Makefile.am + * examples/glade/README + * examples/glade/glade-demo.prg + * examples/glade/autoconnect.prg + * examples/glade/test.glade + * examples/glade/test2.glade + Added libglade wrappers and samples. Increased version number to + 0.5. + + * source/gdk_xb.override + Added gdk_pixbuf_new_from_xpm_data() + 2006-04-06 Phil Krylov <phil a t newstar.rinet.ru> * README * configure.in Index: Makefile.in =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/Makefile.in,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- Makefile.in 6 Apr 2006 13:29:25 -0000 1.7 +++ Makefile.in 5 Jul 2006 22:04:06 -0000 1.8 @@ -89,6 +89,10 @@ HBLNK = @HBLNK@ HB_MKSLIB = @HB_MKSLIB@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LIBGLADE_CFLAGS = @LIBGLADE_CFLAGS@ +LIBGLADE_CFLAGS_FOR_BUILD = @LIBGLADE_CFLAGS_FOR_BUILD@ +LIBGLADE_LIBS = @LIBGLADE_LIBS@ +LIBGLADE_LIBS_FOR_BUILD = @LIBGLADE_LIBS_FOR_BUILD@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ OBJDUMP = @OBJDUMP@ Index: aclocal.m4 =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/aclocal.m4,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- aclocal.m4 6 Apr 2006 13:29:25 -0000 1.10 +++ aclocal.m4 5 Jul 2006 22:04:06 -0000 1.11 @@ -7749,3 +7749,160 @@ rm -f conf.gtktest ]) +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- +# +# Copyright © 2004 Scott James Remnant <sc...@ne...>. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# PKG_PROG_PKG_CONFIG([MIN-VERSION]) +# ---------------------------------- +AC_DEFUN([PKG_PROG_PKG_CONFIG], +[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=m4_default([$1], [0.9.0]) + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + PKG_CONFIG="" + fi + +fi[]dnl +])# PKG_PROG_PKG_CONFIG + +# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) +# +# Check to see whether a particular set of modules exists. Similar +# to PKG_CHECK_MODULES(), but does not set variables or print errors. +# +# +# Similar to PKG_CHECK_MODULES, make sure that the first instance of +# this or PKG_CHECK_MODULES is called, or make sure to call +# PKG_CHECK_EXISTS manually +# -------------------------------------------------------------- +AC_DEFUN([PKG_CHECK_EXISTS], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +if test -n "$PKG_CONFIG" && \ + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then + m4_ifval([$2], [$2], [:]) +m4_ifvaln([$3], [else + $3])dnl +fi]) + + +# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) +# --------------------------------------------- +m4_define([_PKG_CONFIG], +[if test -n "$PKG_CONFIG"; then + if test -n "$$1"; then + pkg_cv_[]$1="$$1" + else + PKG_CHECK_EXISTS([$3], + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], + [pkg_failed=yes]) + fi +else + pkg_failed=untried +fi[]dnl +])# _PKG_CONFIG + +# _PKG_SHORT_ERRORS_SUPPORTED +# ----------------------------- +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi[]dnl +])# _PKG_SHORT_ERRORS_SUPPORTED + + +# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], +# [ACTION-IF-NOT-FOUND]) +# +# +# Note that if there is a possibility the first call to +# PKG_CHECK_MODULES might not happen, you should be sure to include an +# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac +# +# +# -------------------------------------------------------------- +AC_DEFUN([PKG_CHECK_MODULES], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl + +pkg_failed=no +AC_MSG_CHECKING([for $1]) + +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) +_PKG_CONFIG([$1][_LIBS], [libs], [$2]) + +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS +and $1[]_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details.]) + +if test $pkg_failed = yes; then + _PKG_SHORT_ERRORS_SUPPORTED + if test $_pkg_short_errors_supported = yes; then + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` + else + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` + fi + # Put the nasty error message in config.log where it belongs + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD + + ifelse([$4], , [AC_MSG_ERROR(dnl +[Package requirements ($2) were not met: + +$$1_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +_PKG_TEXT +])], + [$4]) +elif test $pkg_failed = untried; then + ifelse([$4], , [AC_MSG_FAILURE(dnl +[The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +_PKG_TEXT + +To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])], + [$4]) +else + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS + AC_MSG_RESULT([yes]) + ifelse([$3], , :, [$3]) +fi[]dnl +])# PKG_CHECK_MODULES + Index: configure =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/configure,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- configure 6 Apr 2006 13:29:25 -0000 1.15 +++ configure 5 Jul 2006 22:04:06 -0000 1.16 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.59 for xbgtk 0.4. +# Generated by GNU Autoconf 2.59 for xbgtk 0.5. # # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation @@ -421,8 +421,8 @@ # Identity of this package. PACKAGE_NAME='xbgtk' PACKAGE_TARNAME='xbgtk' [...658 lines suppressed...] "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; @@ -20758,11 +21078,18 @@ s,@PKG_CONFIG@,$PKG_CONFIG,;t t s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t s,@GTK_LIBS@,$GTK_LIBS,;t t +s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t +s,@LIBGLADE_CFLAGS@,$LIBGLADE_CFLAGS,;t t +s,@LIBGLADE_LIBS@,$LIBGLADE_LIBS,;t t +s,@BUILD_LIBGLADE_TRUE@,$BUILD_LIBGLADE_TRUE,;t t +s,@BUILD_LIBGLADE_FALSE@,$BUILD_LIBGLADE_FALSE,;t t s,@USE_HBCMP_TRUE@,$USE_HBCMP_TRUE,;t t s,@USE_HBCMP_FALSE@,$USE_HBCMP_FALSE,;t t s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t s,@GTK_CFLAGS_FOR_BUILD@,$GTK_CFLAGS_FOR_BUILD,;t t s,@GTK_LIBS_FOR_BUILD@,$GTK_LIBS_FOR_BUILD,;t t +s,@LIBGLADE_CFLAGS_FOR_BUILD@,$LIBGLADE_CFLAGS_FOR_BUILD,;t t +s,@LIBGLADE_LIBS_FOR_BUILD@,$LIBGLADE_LIBS_FOR_BUILD,;t t s,@LIBOBJS@,$LIBOBJS,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t CEOF Index: configure.in =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/configure.in,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- configure.in 6 Apr 2006 13:29:25 -0000 1.9 +++ configure.in 5 Jul 2006 22:04:06 -0000 1.10 @@ -3,23 +3,23 @@ dnl We need AC_CONFIG_SRCDIR AC_PREREQ([2.53]) -AC_INIT([xbgtk], [0.4]) +AC_INIT([xbgtk], [0.5]) dnl =========================================================================== # libtool shared library version # Increment if the interface has additions, changes, removals. -LT_CURRENT=2 +LT_CURRENT=3 # Increment any time the source changes; set to # 0 if you increment CURRENT -LT_REVISION=1 +LT_REVISION=0 # Increment if any interfaces have been added; set to 0 # if any interfaces have been removed. removal has # precedence over adding, so set to 0 if both happened. -LT_AGE=0 +LT_AGE=1 VERSION_INFO="$LT_CURRENT:$LT_REVISION:$LT_AGE" AC_SUBST(VERSION_INFO) @@ -54,12 +54,19 @@ *** GTK+ 2.8.0 or better is required. The latest version of *** GTK+ is always available from ftp://ftp.gtk.org/.])) +PKG_CHECK_MODULES(LIBGLADE, [libglade-2.0 >= 2.5.0], + build_libglade=true, build_libglade=false) +AC_SUBST(LIBGLADE_CFLAGS) +AC_SUBST(LIBGLADE_LIBS) +AM_CONDITIONAL(BUILD_LIBGLADE, $build_libglade) + dnl Checks for header files. dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST dnl Checks for library functions. +AC_CHECK_FUNCS(bind_textdomain_codeset) AM_CONDITIONAL(USE_HBCMP, test x$USE_HBCMP = xyes) @@ -67,15 +74,21 @@ if test x$cross_compiling != xno ; then GTK_CFLAGS_FOR_BUILD="$GTK_CFLAGS" GTK_LIBS_FOR_BUILD="$GTK_LIBS" - GTK_CFLAGS="-mms-bitfields `echo $GTK_CFLAGS|sed 's/-I\\/usr/-I\\/mnt\\/hda1\\/compiler\\/gtk/g'`" - GTK_LIBS="-L/mnt/hda1/compiler/gtk/lib `echo $GTK_LIBS|sed 's/x11/win32/g;s/-ldl//g'`" + LIBGLADE_CFLAGS_FOR_BUILD="$LIBGLADE_CFLAGS" + LIBGLADE_LIBS_FOR_BUILD="$LIBGLADE_LIBS" + GTK_CFLAGS="-mms-bitfields `echo $GTK_CFLAGS $LIBGLADE_CFLAGS|sed 's/-I\\/usr/-I\\/mnt\\/hda1\\/compiler\\/gtk/g'`" + GTK_LIBS="-L/mnt/hda1/compiler/gtk/lib `echo $GTK_LIBS $LIBGLADE_LIBS|sed 's/x11/win32/g;s/-ldl//g'`" else CC_FOR_BUILD="$CC" GTK_CFLAGS_FOR_BUILD="$GTK_CFLAGS" GTK_LIBS_FOR_BUILD="$GTK_LIBS" + LIBGLADE_CFLAGS_FOR_BUILD="$LIBGLADE_CFLAGS" + LIBGLADE_LIBS_FOR_BUILD="$LIBGLADE_LIBS" fi AC_SUBST(CC_FOR_BUILD) AC_SUBST(GTK_CFLAGS_FOR_BUILD) AC_SUBST(GTK_LIBS_FOR_BUILD) +AC_SUBST(LIBGLADE_CFLAGS_FOR_BUILD) +AC_SUBST(LIBGLADE_LIBS_FOR_BUILD) -AC_OUTPUT(xbgtk.pc codegen/Makefile source/Makefile Makefile examples/Makefile examples/xbgtk_demo/Makefile include/Makefile) +AC_OUTPUT(xbgtk.pc codegen/Makefile source/Makefile Makefile examples/Makefile examples/glade/Makefile examples/xbgtk_demo/Makefile include/Makefile) |
From: Guy R. <guy...@te...> - 2006-06-27 14:23:10
|
Thank you Phil, Now, i compile harbour with make_tgz.sh instead of make_gnu.sh and this error is gone. xbgtk is now running fine ... Best regards, Guy Phil Krylov wrote: > On 27/06/06, Guy Roussin <guy...@te...> wrote: >=20 >> Now, when i "make install" as root, i get this error : >> >> ---------------------------------------- >> Total memory allocated: 140392 bytes (4169 blocks) >> WARNING! Memory allocated but not released: 4 bytes (1 blocks) >> harbour.c:692: HB_TR_ERROR Block 1 0x80be708 (size 4) "\00\00\00\00" >> source=3D'appwindow.c' object=3D'appwindow.o' libtool=3Dno \ >> depfile=3D'.deps/appwindow.Po' tmpdepfile=3D'.deps/appwindow.= TPo' \ >> depmode=3Dgcc3 /bin/sh ../../config/depcomp \ >> gcc -DPACKAGE_NAME=3D\"xbgtk\" -DPACKAGE_TARNAME=3D\"xbgtk\" >> -DPACKAGE_VERSION=3D\"0.4\" -DPACKAGE_STRING=3D\"xbgtk\ 0.4\"=20 >> -DPACKAGE_BUGREPORT=3D\"\" >> -DPACKAGE=3D\"xbgtk\" -DVERSION=3D\"0.4\" -DSTDC_HEADERS=3D1=20 >> -DHAVE_SYS_TYPES_H=3D1 >> -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 -DHAVE_M= EMORY_H=3D1 >> -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 -DHAVE_STDINT_H=3D1=20 >> -DHAVE_UNISTD_H=3D1 >> -DHAVE_DLFCN_H=3D1 -I. -I. -I../../include=20 >> -I/usr/local/include/harbour -g -O2 -c `test >> -f 'appwindow.c' || echo './'`appwindow.c >> appwindow.prg:188: error: static declaration of 'HB_FUN_NUMAND'=20 >> follows non-static declaration >> appwindow.c:31: error: previous declaration of 'HB_FUN_NUMAND' was her= e >> make[2]: *** [appwindow.o] Erreur 1 >> make[2]: quittant le r=E9pertoire =AB=20 >> /usr/local/src/xbgtk/examples/xbgtk_demo =BB >> make[1]: *** [install-recursive] Erreur 1 >> make[1]: quittant le r=E9pertoire =AB /usr/local/src/xbgtk/examples =BB >> make: *** [install-recursive] Erreur 1 >=20 > Sorry, I can't check it currently. But you may safely ignore this > error, because it occurs with examples, not with the library itself. > However, if you still want to build this example program using > Harbour, I guess you can change HB_FUNC_STATIC(NUMAND) to > HB_FUNC(NUMAND) in appwindow.prg and try again. >=20 > -- Ph. |
From: Phil K. <phi...@gm...> - 2006-06-27 10:39:28
|
On 27/06/06, Guy Roussin <guy...@te...> wrote: > Now, when i "make install" as root, i get this error : > > ---------------------------------------- > Total memory allocated: 140392 bytes (4169 blocks) > WARNING! Memory allocated but not released: 4 bytes (1 blocks) > harbour.c:692: HB_TR_ERROR Block 1 0x80be708 (size 4) "\00\00\00\00" > source=3D'appwindow.c' object=3D'appwindow.o' libtool=3Dno \ > depfile=3D'.deps/appwindow.Po' tmpdepfile=3D'.deps/appwindow.TPo= ' \ > depmode=3Dgcc3 /bin/sh ../../config/depcomp \ > gcc -DPACKAGE_NAME=3D\"xbgtk\" -DPACKAGE_TARNAME=3D\"xbgtk\" > -DPACKAGE_VERSION=3D\"0.4\" -DPACKAGE_STRING=3D\"xbgtk\ 0.4\" -DPACKAGE_B= UGREPORT=3D\"\" > -DPACKAGE=3D\"xbgtk\" -DVERSION=3D\"0.4\" -DSTDC_HEADERS=3D1 -DHAVE_SYS_T= YPES_H=3D1 > -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 -DHAVE_MEMO= RY_H=3D1 > -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 -DHAVE_STDINT_H=3D1 -DHAVE_UNI= STD_H=3D1 > -DHAVE_DLFCN_H=3D1 -I. -I. -I../../include -I/usr/local/include/harbour = -g -O2 -c `test > -f 'appwindow.c' || echo './'`appwindow.c > appwindow.prg:188: error: static declaration of 'HB_FUN_NUMAND' follows n= on-static declaration > appwindow.c:31: error: previous declaration of 'HB_FUN_NUMAND' was here > make[2]: *** [appwindow.o] Erreur 1 > make[2]: quittant le r=E9pertoire =AB /usr/local/src/xbgtk/examples/xbgtk= _demo =BB > make[1]: *** [install-recursive] Erreur 1 > make[1]: quittant le r=E9pertoire =AB /usr/local/src/xbgtk/examples =BB > make: *** [install-recursive] Erreur 1 Sorry, I can't check it currently. But you may safely ignore this error, because it occurs with examples, not with the library itself. However, if you still want to build this example program using Harbour, I guess you can change HB_FUNC_STATIC(NUMAND) to HB_FUNC(NUMAND) in appwindow.prg and try again. -- Ph. |
From: Guy R. <guy...@te...> - 2006-06-27 10:15:04
|
Thank you Phil for your very quick answer ! With "./configure && make" i get very quickly another error with xbgtk-0.= 4 (if you want i can send you the error i get) So, i try with cvs version with ./configure && make clean & make and now all seems to compile fine with lots of warnings. Now, when i "make install" as root, i get this error : ---------------------------------------- Total memory allocated: 140392 bytes (4169 blocks) WARNING! Memory allocated but not released: 4 bytes (1 blocks) harbour.c:692: HB_TR_ERROR Block 1 0x80be708 (size 4) "\00\00\00\00" source=3D'appwindow.c' object=3D'appwindow.o' libtool=3Dno \ depfile=3D'.deps/appwindow.Po' tmpdepfile=3D'.deps/appwindow.TPo= ' \ depmode=3Dgcc3 /bin/sh ../../config/depcomp \ gcc -DPACKAGE_NAME=3D\"xbgtk\" -DPACKAGE_TARNAME=3D\"xbgtk\"=20 -DPACKAGE_VERSION=3D\"0.4\" -DPACKAGE_STRING=3D\"xbgtk\ 0.4\" -DPACKAGE_B= UGREPORT=3D\"\"=20 -DPACKAGE=3D\"xbgtk\" -DVERSION=3D\"0.4\" -DSTDC_HEADERS=3D1 -DHAVE_SYS_T= YPES_H=3D1=20 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 -DHAVE_MEMO= RY_H=3D1=20 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 -DHAVE_STDINT_H=3D1 -DHAVE_UNI= STD_H=3D1=20 -DHAVE_DLFCN_H=3D1 -I. -I. -I../../include -I/usr/local/include/harbour = -g -O2 -c `test=20 -f 'appwindow.c' || echo './'`appwindow.c appwindow.prg:188: error: static declaration of 'HB_FUN_NUMAND' follows n= on-static declaration appwindow.c:31: error: previous declaration of 'HB_FUN_NUMAND' was here make[2]: *** [appwindow.o] Erreur 1 make[2]: quittant le r=E9pertoire =AB /usr/local/src/xbgtk/examples/xbgtk= _demo =BB make[1]: *** [install-recursive] Erreur 1 make[1]: quittant le r=E9pertoire =AB /usr/local/src/xbgtk/examples =BB make: *** [install-recursive] Erreur 1 Thanks, Guy Roussin |
From: Phil K. <phi...@gm...> - 2006-06-27 09:47:05
|
Hi Guy, On 27/06/06, Guy Roussin <guy...@te...> wrote: > I'm new to linux harbour. I try to compile xbgtk (0.4) on my debian etch. > I use harbour 0.46.1 compiled from source. I think you have to try the "autoconf" way to compile. The "simple" Makefiles haven't been updated for quite long time. So, to compile xbgtk, issue the command: ./configure && make clean && make -- Ph. |
From: Guy R. <guy...@te...> - 2006-06-27 09:37:08
|
Hi, I'm new to linux harbour. I try to compile xbgtk (0.4) on my debian etch. I use harbour 0.46.1 compiled from source. Here is the error i get when i try to compile xbgtk-0.4 : guy@pcinfo12:/usr/local/src/xbgtk-0.4$ head -n11 Makefile.config-simple |= tail -n6 HB_ARCHITECTURE =3D linux HB_HARBOUR =3D /usr/local/bin/harbour HB_COMPILER =3D gcc HB_GT_LIB =3D gtcrs HB_LIB_INSTALL =3D /usr/local/lib/harbour HB_INC_INSTALL =3D /usr/local/include/harbour guy@pcinfo12:/usr/local/src/xbgtk-0.4$ make -f Makefile.simple make -C source -f Makefile.simple make[1]: entrant dans le r=E9pertoire =AB /usr/local/src/xbgtk-0.4/source= =BB /usr/local/bin/harbour -gc0 -q0 -n -I/usr/local/include/harbour -o_xbgbox= ed.c xbgboxed.prg ---------------------------------------- Total memory allocated: 77242 bytes (714 blocks) WARNING! Memory allocated but not released: 4 bytes (1 blocks) harbour.c:692: HB_TR_ERROR Block 1 0x80be668 (size 4) "\00\00\00\00" sed "s/^extern HB_FUNC( \([A-Z][A-Z]*_[0-9A-Z_]*\) );/HB_FUNC_STATIC( \1 = );/g" <=20 _xbgboxed.c > xbgboxed.c gcc -c -o xbgboxed.o xbgboxed.c -O3 -mcpu=3Di586 -fomit-frame-pointer -ff= ast-math=20 `pkg-config --cflags glib-2.0` `pkg-config --cflags atk` `pkg-config --cf= lags pango`=20 `pkg-config --cflags gtk+-2.0` -I/usr/local/include/harbour `-mcpu=3D' is deprecated. Use `-mtune=3D' or '-march=3D' instead. xbgboxed.prg:22: error: static declaration of 'HB_FUN_GBOXED_COPY' follow= s non-static=20 declaration xbgboxed.c:14: error: previous declaration of 'HB_FUN_GBOXED_COPY' was he= re xbgboxed.prg: In function 'HB_FUN_GBOXED_COPY': xbgboxed.prg:25: warning: passing argument 1 of 'hb_itemMove' makes point= er from integer=20 without a cast make[1]: *** [xbgboxed.o] Erreur 1 rm _xbgboxed.c xbgboxed.c make[1]: quittant le r=E9pertoire =AB /usr/local/src/xbgtk-0.4/source =BB make: *** [libxbgtk] Erreur 2 Thanks, --=20 Guy Roussin |
From: Pablo <pbl...@gm...> - 2006-06-14 17:42:21
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Phil Krylov escribi? el 14/06/06 a las 13:49: > Thanks a lot! You deserve it. >> I have a question, though. Is it possible to load .glade definitions at >> runtime? pyGTK has a glade module, but I've not been able to find >> anything like that in xbgtk. Where should I look? > > I had not implemented a glade module yet, because had not needed it. But as > there's your request, I hope I'll implement it quite easily in a couple of days. > > -- Ph. Thank you so much in advance. If I ever find a way to contribute (or if you need some help in any way) I'll be glad to do so. Keep the good work! Best regards. - -- Pablo S?nchez Usando Thunderbird en Ubuntu/Linux. Linux Registered User #417589 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEkEqnWEesNgKZwDARAhjzAKC0LP8ssXvO/NIa3/7dC0igi6F/egCaAmdy BaKEdHWr1kQ+0wmwMYmWjIU= =kH1r -----END PGP SIGNATURE----- |
From: Phil K. <ph...@ne...> - 2006-06-14 16:50:07
|
On Wed, 14 Jun 2006 11:59:52 -0300 Pablo <pbl...@gm...> wrote: > Hello Phil, > Sorry to reach you directly, but for some reason my messages don't seem > to reach the list. > > Best regards. > > - ------------------------------------------------------------------------ > > Hello Phil (and everybody) > > I've recently discovered xbgtk and I must say I'm impressed. I'm just > getting used to it, but the results are terific. Congratulations for the > good work! Thanks a lot! > I have a question, though. Is it possible to load .glade definitions at > runtime? pyGTK has a glade module, but I've not been able to find > anything like that in xbgtk. Where should I look? I had not implemented a glade module yet, because had not needed it. But as there's your request, I hope I'll implement it quite easily in a couple of days. -- Ph. |
From: Pablo <pbl...@gm...> - 2006-06-14 14:59:12
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Phil, Sorry to reach you directly, but for some reason my messages don't seem to reach the list. Best regards. - ------------------------------------------------------------------------ Hello Phil (and everybody) I've recently discovered xbgtk and I must say I'm impressed. I'm just getting used to it, but the results are terific. Congratulations for the good work! I have a question, though. Is it possible to load .glade definitions at runtime? pyGTK has a glade module, but I've not been able to find anything like that in xbgtk. Where should I look? Thanks in advance, and best regards. - -- Pablo Sánchez Usando Thunderbird en Ubuntu/Linux. Linux Registered User #417589 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEkCRnWEesNgKZwDARAp0NAKC4Psc5Hy2VoYotSIIgIANFdvqOVQCcCkGQ iYyqdByAHotgaPGBH+rdjZs= =CMSt -----END PGP SIGNATURE----- |
From: Pablo <pbl...@gm...> - 2006-06-12 00:52:48
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Phil (and everybody) I've recently discovered xbgtk and I must say I'm impressed. I'm just getting used to it, but the results are terific. Congratulations for the good work! I have a question, though. Is it possible to load .glade definitions at runtime? pyGTK has a glade module, but I've not been able to find anything like that in xbgtk. Where should I look? Thanks in advance, and best regards. - -- Pablo Sánchez Usando Thunderbird en Ubuntu/Linux. Linux Registered User #417589 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEjLr0WEesNgKZwDARAoUJAJ4tdJrkRJZsdaiTYoI0cqYSwQq8SACgr2g9 /aNxa4snMBvbAphezJJrqpU= =u5Pd -----END PGP SIGNATURE----- |
From: <lik...@us...> - 2006-04-06 13:30:21
|
Update of /cvsroot/xbgtk/xbgtk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3634 Modified Files: ChangeLog Makefile.in README aclocal.m4 configure configure.in Log Message: 2006-04-06 Phil Krylov <phil a t newstar.rinet.ru> * README * configure.in * config/harbour.m4 * source/Makefile.am * source/gdk_xb.override * source/gtk_xb.override * source/pango_xb.override * codegen/codegen_xb.py * codegen/override_xb.py Added cross-compilation to MinGW32. Fixed boxed type constructor generation. Added capability to specify integer and double constants in overrides. Added GtkTextBuffer():get_selection_bounds(), GtkTextBuffer():insert_with_tags(), GtkTextBuffer():insert_with_tags_by_name(). Changed length parameter to be optional in GtkTextBuffer():set_text(). Added PANGO_SCALE* constants. Index: ChangeLog =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/ChangeLog,v retrieving revision 1.51 retrieving revision 1.52 diff -u -d -r1.51 -r1.52 --- ChangeLog 18 Mar 2006 11:24:08 -0000 1.51 +++ ChangeLog 6 Apr 2006 13:29:25 -0000 1.52 @@ -1,5 +1,26 @@ /* $Id$ */ +2006-04-06 Phil Krylov <phil a t newstar.rinet.ru> + * README + * configure.in + * config/harbour.m4 + * source/Makefile.am + * source/gdk_xb.override + * source/gtk_xb.override + * source/pango_xb.override + * codegen/codegen_xb.py + * codegen/override_xb.py + Added cross-compilation to MinGW32. + Fixed boxed type constructor generation. + Added capability to specify integer and double constants in + overrides. + Added GtkTextBuffer():get_selection_bounds(), + GtkTextBuffer():insert_with_tags(), + GtkTextBuffer():insert_with_tags_by_name(). + Changed length parameter to be optional in + GtkTextBuffer():set_text(). + Added PANGO_SCALE* constants. + 2006-03-18 Phil Krylov <phil a t newstar.rinet.ru> * README Some clarifications and updates. Index: Makefile.in =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/Makefile.in,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- Makefile.in 8 Mar 2006 23:19:42 -0000 1.6 +++ Makefile.in 6 Apr 2006 13:29:25 -0000 1.7 @@ -70,6 +70,7 @@ AS = @AS@ AWK = @AWK@ CC = @CC@ +CC_FOR_BUILD = @CC_FOR_BUILD@ CXX = @CXX@ CXXCPP = @CXXCPP@ DEPDIR = @DEPDIR@ @@ -80,7 +81,9 @@ GCJ = @GCJ@ GCJFLAGS = @GCJFLAGS@ GTK_CFLAGS = @GTK_CFLAGS@ +GTK_CFLAGS_FOR_BUILD = @GTK_CFLAGS_FOR_BUILD@ GTK_LIBS = @GTK_LIBS@ +GTK_LIBS_FOR_BUILD = @GTK_LIBS_FOR_BUILD@ HARBOUR = @HARBOUR@ HBCMP = @HBCMP@ HBLNK = @HBLNK@ @@ -143,7 +146,7 @@ install-exec-recursive installdirs-recursive install-recursive \ uninstall-recursive check-recursive installcheck-recursive DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \ - Makefile.in NEWS aclocal.m4 config/config.guess \ + Makefile.in NEWS aclocal.m4 config/compile config/config.guess \ config/config.sub config/depcomp config/install-sh \ config/ltmain.sh config/missing config/mkinstalldirs \ config/py-compile configure configure.in xbgtk.pc.in Index: README =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/README,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- README 18 Mar 2006 11:24:08 -0000 1.13 +++ README 6 Apr 2006 13:29:25 -0000 1.14 @@ -126,6 +126,19 @@ HB_INC_INSTALL. +Cross-compilation to MinGW32 +============================ + +I use the following to make Windows builds: + +./configure --host=i386-mingw32msvc --prefix=/mnt/hda1/compiler/xbgtk CC_FOR_BUILD=gcc +make +sudo make install + +Be sure to correct the path to your Win32 GTK+ installation in configure.in. +Also path to your MinGW xHarbour is hard-coded in harbour.m4 as +/usr/local/mingw32-xharbour. + BUGS / TODO =========== Index: aclocal.m4 =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/aclocal.m4,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- aclocal.m4 3 Mar 2006 15:20:29 -0000 1.9 +++ aclocal.m4 6 Apr 2006 13:29:25 -0000 1.10 @@ -7395,7 +7395,7 @@ (exit $ac_status); }]) # Configure variables for [x]Harbour -# (C) Phil Krylov 2002-2004 +# (C) Phil Krylov 2002-2006 dnl AM_PATH_HARBOUR([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) dnl Test for [x]Harbour, and define { HARBOUR, HB_FLAGS, HB_CFLAGS, and HB_LIBS } or HBCMP @@ -7471,8 +7471,20 @@ AC_MSG_RESULT($HB_GT_LIB) AC_MSG_CHECKING(the presence of shared [x]Harbour library) - if test -f $HB_ROOT/lib/lib$HB_DIALECT.so ; then - HB_SHARED_LIB=-l$HB_DIALECT + shared_lib_path=$HB_ROOT/lib + case $host in + *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) + shared_lib_name=$HB_DIALECT.dll + if test x"$cross_compiling" != xno ; then + shared_lib_path=$HB_ROOT/mingw32-xharbour/lib + fi + ;; + *) + shared_lib_name=lib$HB_DIALECT.so + ;; + esac + if test -f $shared_lib_path/$shared_lib_name ; then + HB_SHARED_LIB="-L$shared_lib_path -l$HB_DIALECT" AC_MSG_RESULT($HB_SHARED_LIB) else AC_MSG_RESULT(not present) @@ -7487,7 +7499,8 @@ if test x"$HB_GT_LIBS" = x ; then HB_GT_LIBS="-l$HB_GT_LIB" if test x$HB_DIALECT = xxharbour; then - HB_GT_LIBS="$HB_GT_LIBS -lgtnul -lgtsln -lgpm -lslang" + HB_GT_LIBS="$HB_GT_LIBS -lgtnul" + # -lgtsln -lgpm -lslang" fi fi if test x"$HB_RDD_LIBS" = x ; then @@ -7515,16 +7528,22 @@ ;; esac fi + + case $host in + *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) + ;; + *) + # gtsln and lib[x]harbour.so use libslang and libgpm + if test x$HB_GT_LIB = xgtsln -o -n "$HB_SHARED_LIB"; then + HB_LIBS="$HB_LIBS -lslang -lgpm" + fi - # gtsln and lib[x]harbour.so use libslang and libgpm - if test x$HB_GT_LIB = xgtsln -o -n "$HB_SHARED_LIB"; then - HB_LIBS="$HB_LIBS -lslang -lgpm" - fi - - # gtcrs and lib[x]harbour.so use libcurses - if test x$HB_GT_LIB = xgtcrs -o -n "$HB_SHARED_LIB"; then - HB_LIBS="$HB_LIBS -lcurses" - fi + # gtcrs and lib[x]harbour.so use libcurses + if test x$HB_GT_LIB = xgtcrs -o -n "$HB_SHARED_LIB"; then + HB_LIBS="$HB_LIBS -lcurses" + fi + ;; + esac fi AC_MSG_RESULT($HB_LIB_DIR) ifelse([$3], , :, [$3]) Index: configure =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/configure,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- configure 12 Mar 2006 01:51:44 -0000 1.14 +++ configure 6 Apr 2006 13:29:25 -0000 1.15 @@ -463,7 +463,7 @@ # include <unistd.h> #endif" -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION_INFO build build_cpu build_vendor build_os host host_cpu host_vendor host_os HARBOUR HB_INC_INSTALL HBFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir HB_FLAGS HB_CFLAGS HB_LIBS HB_GT_LIB XHBCMP XHBLNK HBCMP HBLNK HB_MKSLIB PKG_CONFIG GTK_CFLAGS GTK_LIBS USE_HBCMP_TRUE USE_HBCMP_FALSE LIBOBJS LTLIBOBJS' +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION_INFO build build_cpu build_vendor build_os host host_cpu host_vendor host_os HARBOUR HB_INC_INSTALL HBFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir HB_FLAGS HB_CFLAGS HB_LIBS HB_GT_LIB XHBCMP XHBLNK HBCMP HBLNK HB_MKSLIB PKG_CONFIG GTK_CFLAGS GTK_LIBS USE_HBCMP_TRUE USE_HBCMP_FALSE CC_FOR_BUILD GTK_CFLAGS_FOR_BUILD GTK_LIBS_FOR_BUILD LIBOBJS LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. @@ -1552,7 +1552,7 @@ # Increment any time the source changes; set to [...548 lines suppressed...] s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t +s,@DLLTOOL@,$DLLTOOL,;t t +s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t +s,@AS@,$AS,;t t +s,@ac_ct_AS@,$ac_ct_AS,;t t +s,@OBJDUMP@,$OBJDUMP,;t t +s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t s,@CPP@,$CPP,;t t s,@CXX@,$CXX,;t t s,@CXXFLAGS@,$CXXFLAGS,;t t @@ -20482,6 +20760,9 @@ s,@GTK_LIBS@,$GTK_LIBS,;t t s,@USE_HBCMP_TRUE@,$USE_HBCMP_TRUE,;t t s,@USE_HBCMP_FALSE@,$USE_HBCMP_FALSE,;t t +s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t +s,@GTK_CFLAGS_FOR_BUILD@,$GTK_CFLAGS_FOR_BUILD,;t t +s,@GTK_LIBS_FOR_BUILD@,$GTK_LIBS_FOR_BUILD,;t t s,@LIBOBJS@,$LIBOBJS,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t CEOF Index: configure.in =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/configure.in,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- configure.in 12 Mar 2006 01:51:44 -0000 1.8 +++ configure.in 6 Apr 2006 13:29:25 -0000 1.9 @@ -14,7 +14,7 @@ # Increment any time the source changes; set to # 0 if you increment CURRENT -LT_REVISION=0 +LT_REVISION=1 # Increment if any interfaces have been added; set to 0 # if any interfaces have been removed. removal has @@ -41,6 +41,7 @@ dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL +AC_LIBTOOL_WIN32_DLL AC_PROG_LIBTOOL AM_PATH_PYTHON(2.0) AM_PATH_HARBOUR(, AC_MSG_ERROR(cannot find [x]harbour or [x]hbcmp executable in PATH)) @@ -52,11 +53,6 @@ AC_MSG_ERROR([ *** GTK+ 2.8.0 or better is required. The latest version of *** GTK+ is always available from ftp://ftp.gtk.org/.])) -case $host in - *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) - GTK_CFLAGS="-fnative-struct $GTK_CFLAGS" - ;; -esac dnl Checks for header files. @@ -67,4 +63,19 @@ AM_CONDITIONAL(USE_HBCMP, test x$USE_HBCMP = xyes) +dnl Final adjustments for cross-compiling +if test x$cross_compiling != xno ; then + GTK_CFLAGS_FOR_BUILD="$GTK_CFLAGS" + GTK_LIBS_FOR_BUILD="$GTK_LIBS" + GTK_CFLAGS="-mms-bitfields `echo $GTK_CFLAGS|sed 's/-I\\/usr/-I\\/mnt\\/hda1\\/compiler\\/gtk/g'`" + GTK_LIBS="-L/mnt/hda1/compiler/gtk/lib `echo $GTK_LIBS|sed 's/x11/win32/g;s/-ldl//g'`" +else + CC_FOR_BUILD="$CC" + GTK_CFLAGS_FOR_BUILD="$GTK_CFLAGS" + GTK_LIBS_FOR_BUILD="$GTK_LIBS" +fi +AC_SUBST(CC_FOR_BUILD) +AC_SUBST(GTK_CFLAGS_FOR_BUILD) +AC_SUBST(GTK_LIBS_FOR_BUILD) + AC_OUTPUT(xbgtk.pc codegen/Makefile source/Makefile Makefile examples/Makefile examples/xbgtk_demo/Makefile include/Makefile) |
From: <lik...@us...> - 2006-03-18 11:24:16
|
Update of /cvsroot/xbgtk/xbgtk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14333 Modified Files: ChangeLog README Log Message: 2006-03-18 Phil Krylov <phil a t newstar.rinet.ru> * README Some clarifications and updates. * codegen/argtypes_xb.py * codegen/codegen_xb.py * include/xbgtk.h * source/Makefile.am * source/gdk_xb.override * source/gtk_xb.override * source/pango_xb.override * source/xbadd.c * source/xbgboxed.prg * source/xbgobject.prg Made compilation succeed under Harbour. Fixed lots of memory leaks, at least in xHarbour. There is no simple way to fix them under Harbour because it does not have neither hb_itemPutPtrGC() nor destructor methods... * codegen/docgen.py Some try to get documentation generated. * examples/xbgtk_demo/appwindow.prg * examples/xbgtk_demo/xbgtk_demo.prg You don't need :unref() if you're using xHarbour. Under Harbour, let it leak for now... but also let it compile. Index: ChangeLog =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/ChangeLog,v retrieving revision 1.50 retrieving revision 1.51 diff -u -d -r1.50 -r1.51 --- ChangeLog 12 Mar 2006 01:51:44 -0000 1.50 +++ ChangeLog 18 Mar 2006 11:24:08 -0000 1.51 @@ -1,5 +1,29 @@ /* $Id$ */ +2006-03-18 Phil Krylov <phil a t newstar.rinet.ru> + * README + Some clarifications and updates. + * codegen/argtypes_xb.py + * codegen/codegen_xb.py + * include/xbgtk.h + * source/Makefile.am + * source/gdk_xb.override + * source/gtk_xb.override + * source/pango_xb.override + * source/xbadd.c + * source/xbgboxed.prg + * source/xbgobject.prg + Made compilation succeed under Harbour. + Fixed lots of memory leaks, at least in xHarbour. There is no simple + way to fix them under Harbour because it does not have neither + hb_itemPutPtrGC() nor destructor methods... + * codegen/docgen.py + Some try to get documentation generated. + * examples/xbgtk_demo/appwindow.prg + * examples/xbgtk_demo/xbgtk_demo.prg + You don't need :unref() if you're using xHarbour. Under Harbour, let + it leak for now... but also let it compile. + 2006-03-12 Phil Krylov <phil a t newstar.rinet.ru> * configure.in Increased version number to 0.4. Index: README =================================================================== RCS file: /cvsroot/xbgtk/xbgtk/README,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- README 9 Mar 2006 20:02:33 -0000 1.12 +++ README 18 Mar 2006 11:24:08 -0000 1.13 @@ -2,7 +2,8 @@ ===== xbgtk is a library that allows to use GTK+ in programs written in XBase-like -languages. At present, xbgtk supports only Harbour implementation of XBase. +languages. At present, xbgtk supports only Harbour / xHarbour implementation +of XBase. Authors @@ -120,14 +121,10 @@ If you can't use ./configure: make -f Makefile.simple install - It simply copies source/libxbgtk.* to HB_LIB_INSTALL and include/xbgtk.ch to -HB_INC_INSTALL +HB_INC_INSTALL. -If you want to use the shared library on Linux, -you need to add HB_LIB_INSTALL (/usr/include/harbour) -to /etc/ld.so.conf and run ldconfig as root. BUGS / TODO @@ -146,6 +143,7 @@ in *.override files. *.override are not ready. For many functions overrides are still to be written. Some functions should be ignored. + Troubleshooting =============== |