Re: Gtk2 dmake test hangs
Torsten Schoenfeld <[EMAIL PROTECTED]> writes: > On Sun, 2007-12-30 at 17:58 +, rahed wrote: > >> GtkAction,GtkActionGroup,GtkBin,GtkCellRenderer,GtkMisc tests render for >> instance: >> Something is very broken, couldn't lazy load Gtk2::Action at >> C:/perl5-10/site/lib/Glib.pm line 207. > > These are due to changes in perl's @ISA handling in 5.10. We'll have a > fix for this committed soon. Thank you for investigating. -- Radek ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: GtkImageView
On 05/01/2008, Emmanuele Bassi <[EMAIL PROTECTED]> wrote: > try with: > > GdkRectangle_copy * > > instead of GtkRectangle_ornull *. That works, thanks for the help. Why didn't it work before? Regards Jeff ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: GtkImageView
On Jan 6, 2008, at 1:59 PM, Jeffrey Ratcliffe wrote: > On 05/01/2008, Emmanuele Bassi <[EMAIL PROTECTED]> wrote: >> try with: >> >> GdkRectangle_copy * >> >> instead of GtkRectangle_ornull *. > > That works, thanks for the help. > > Why didn't it work before? Memory lifetime. The object returned to perl was pointing at the spot on the C stack where the rect lived. After the xsub returned, this no longer contained a rectangle, and just gave you randomly-changing garbage. I didn't crash because you didn't try to write to it, and the address was still inside the valid address space of the process. The _copy typemap variant instead creates a copy of the object, so the reference returned to perl points to its own heap copy of the rectangle. If you're morbidly curious, see the "Wrapping Boxed Types" section of the Binding HowTo: http://gtk2-perl.sourceforge.net/doc/binding_howto.pod.html#wrapping%20boxed%20types -- zella (crying): I want... us: What? zella (still crying): I want... something! ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: GtkImageView
On Sun, 2008-01-06 at 19:59 +0100, Jeffrey Ratcliffe wrote: > On 05/01/2008, Emmanuele Bassi <[EMAIL PROTECTED]> wrote: > > try with: > > > > GdkRectangle_copy * > > > > instead of GtkRectangle_ornull *. > > That works, thanks for the help. > > Why didn't it work before? GdkRectangle_ornull will not copy the return value, but will just return a pointer (plus safety check on NULL values); since the GdkRectangle is put on the stack, this means that you'll get garbage as soon as you try to access the pointer from outside the function. GdkRectangle_copy will copy the stack allocated value into the heap, thus giving back valid data (the memory will be deallocated when the scalar gets garbage collected). ciao, Emmanuele. -- Emmanuele Bassi, W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Gtk2 build problems on OS X 10.4
I'm having problems building the Gtk2 perl module (version 1.162) on OS X 10.4. I've tried it on several perl installations including versions 5.8.6 (from OSX disk) and 5.8.8 (from MacPorts). Here is the error that I get when trying to compile: pemap xs/PangoCairo.xs > xs/PangoCairo.xsc && mv xs/PangoCairo.xsc xs/PangoCairo.c Error: 'cairo_font_type_t' not in typemap in PangoCairo.xs, line 89 Error: 'cairo_font_type_t' not in typemap in PangoCairo.xs, line 91 Error: 'cairo_scaled_font_t *' not in typemap in PangoCairo.xs, line 101 Error: 'cairo_t *' not in typemap in PangoCairo.xs, line 115 Error: 'cairo_t *' not in typemap in PangoCairo.xs, line 119 Error: 'cairo_t *' not in typemap in PangoCairo.xs, line 123 Error: 'cairo_t *' not in typemap in PangoCairo.xs, line 127 Error: 'cairo_t *' not in typemap in PangoCairo.xs, line 131 Error: 'cairo_t *' not in typemap in PangoCairo.xs, line 135 Error: 'cairo_t *' not in typemap in PangoCairo.xs, line 139 Error: 'cairo_t *' not in typemap in PangoCairo.xs, line 143 Error: 'cairo_t *' not in typemap in PangoCairo.xs, line 147 Error: 'cairo_t *' not in typemap in PangoCairo.xs, line Error: 'cairo_t *' not in typemap in PangoCairo.xs, line Error: 'const cairo_font_options_t *' not in typemap in PangoCairo.xs, line 170 Error: 'const cairo_font_options_t *' not in typemap in PangoCairo.xs, line 182 make: *** [xs/PangoCairo.c] Error 1 I've searched around the web and cannot find any info on this error. As I'm not familiar with Gtk or pango, I thought someone here might be able to help. Any insight would be appreciated. Thanks! -Jay ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: Gtk2 build problems on OS X 10.4
On Jan 6, 2008, at 4:21 PM, J Greenbaum wrote: > Error: 'cairo_font_type_t' not in typemap in PangoCairo.xs, line 89 > Error: 'cairo_font_type_t' not in typemap in PangoCairo.xs, line 91 > Error: 'cairo_scaled_font_t *' not in typemap in PangoCairo.xs, line > 101 > Error: 'cairo_t *' not in typemap in PangoCairo.xs, line 115 Did you install the Cairo perl extension first? -- zella (crying): I want... us: What? zella (still crying): I want... something! ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: Gtk2 build problems on OS X 10.4
Thanks for your response. However, I just installed the cairo module, and am getting the same error when trying to install Gtk2. Please let me know if you have any more ideas. Thanks! -Jay On Jan 6, 2008 1:30 PM, muppet <[EMAIL PROTECTED]> wrote: > > On Jan 6, 2008, at 4:21 PM, J Greenbaum wrote: > > > Error: 'cairo_font_type_t' not in typemap in PangoCairo.xs, line 89 > > Error: 'cairo_font_type_t' not in typemap in PangoCairo.xs, line 91 > > Error: 'cairo_scaled_font_t *' not in typemap in PangoCairo.xs, line > > 101 > > Error: 'cairo_t *' not in typemap in PangoCairo.xs, line 115 > > Did you install the Cairo perl extension first? > > -- > zella (crying): I want... > us: What? > zella (still crying): I want... something! > > > ___ > gtk-perl-list mailing list > gtk-perl-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-perl-list > ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: Gtk2 build problems on OS X 10.4
On Jan 6, 2008, at 7:51 PM, J Greenbaum wrote: > Thanks for your response. However, I just installed the cairo module, > and am getting the same error when trying to install Gtk2. Please let > me know if you have any more ideas. Thanks! One more sanity check: did you re-run Makefile.PL in Gtk2 after installing Cairo? The error you were seeing indicate that Makefile.PL did not add Cairo's typemaps to the list of typemaps to use when expanding the XS code into C. If you previously tried to build Gtk2 without Cairo installed, and then installed Cairo, you must re-run Makefile.PL in Gtk2 to get the typemaps to be picked up. Failing that, a bit more information will be necessary, namely the output of Makefile.PL in Gtk2, and the full command line of that last failing compile command. -- zella (crying): I want... us: What? zella (still crying): I want... something! ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: Gtk2 build problems on OS X 10.4
Yes, I did a "make clean", then reran perl Makefile.PL. Still I had the same problem. I tried installing a previous version of Gtk2 (1.146) and it worked without a problem. I also tried 1.160, but had the same issues as I did with 1.162. So I guess I'll stick w/ 1.146 for now. Thanks again for your help. On Jan 6, 2008 7:49 PM, J Greenbaum <[EMAIL PROTECTED]> wrote: > Yes, I did a "make clean", then reran perl Makefile.PL. Still I had > the same problem. I tried installing a previous version of Gtk2 > (1.146) and it worked without a problem. I also tried 1.160, but had > the same issues as I did with 1.162. So I guess I'll stick w/ 1.146 > for now. Thanks again for your help. > > -Jay > > > On Jan 6, 2008 7:27 PM, muppet <[EMAIL PROTECTED]> wrote: > > > > On Jan 6, 2008, at 7:51 PM, J Greenbaum wrote: > > > > > Thanks for your response. However, I just installed the cairo module, > > > and am getting the same error when trying to install Gtk2. Please let > > > me know if you have any more ideas. Thanks! > > > > One more sanity check: did you re-run Makefile.PL in Gtk2 after > > installing Cairo? > > > > The error you were seeing indicate that Makefile.PL did not add > > Cairo's typemaps to the list of typemaps to use when expanding the XS > > code into C. If you previously tried to build Gtk2 without Cairo > > installed, and then installed Cairo, you must re-run Makefile.PL in > > Gtk2 to get the typemaps to be picked up. > > > > Failing that, a bit more information will be necessary, namely the > > output of Makefile.PL in Gtk2, and the full command line of that last > > failing compile command. > > > > > > > > -- > > zella (crying): I want... > > us: What? > > zella (still crying): I want... something! > > > > > > ___ > > gtk-perl-list mailing list > > gtk-perl-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-perl-list > > > ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: Gtk2 build problems on OS X 10.4
Here is the output of the command "perl Makefile.PL". Let me know if you want the actual Makefile as well. Including ApiDoc pod... Loaded 273 type definitions from maps-2.0 Loaded 33 type definitions from maps-2.10 Loaded 6 type definitions from maps-2.12 Loaded 4 type definitions from maps-2.2 Loaded 37 type definitions from maps-2.4 Loaded 10 type definitions from maps-2.6 Loaded 3 type definitions from maps-2.8 Loaded 31 type definitions from maps_pango-1.0 Loaded 1 type definitions from maps_pango-1.10 Loaded 2 type definitions from maps_pango-1.16 Loaded 1 type definitions from maps_pango-1.18 Loaded 1 type definitions from maps_pango-1.4 Loaded 2 type definitions from maps_pango-1.6 Loaded 2 type definitions from maps_pango-1.8 37 GBoxed 131 GEnum 6 GError 31 GFlags 13 GInterface 67 GObject 121 GtkObject Found Glib in /Library/Perl/5.8.6/darwin-thread-multi-2level/Glib/Install Writing build/IFiles.pm Checking if your kit is complete... Looks good Writing Makefile for Gtk2 On Jan 6, 2008 8:55 PM, muppet <[EMAIL PROTECTED]> wrote: > > On Jan 6, 2008, at 10:49 PM, J Greenbaum wrote: > > > Yes, I did a "make clean", then reran perl Makefile.PL. Still I had > > the same problem. I tried installing a previous version of Gtk2 > > (1.146) and it worked without a problem. I also tried 1.160, but had > > the same issues as I did with 1.162. So I guess I'll stick w/ 1.146 > > for now. Thanks again for your help. > > Interesting. Can you send me the output of Makefile.PL from 1.162? > > > -- > The stereo, playing the Beastie Boys' "Rhymin' and Stealin'": "I'll > steal your girlie like I stole your bike!" > > Elysse: "You mean, take off the chain and ride away?" > > > ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: Gtk2 build problems on OS X 10.4
On Jan 7, 2008, at 12:12 AM, J Greenbaum wrote: > Here is the output of the command "perl Makefile.PL". ... > 121 GtkObject > Found Glib in /Library/Perl/5.8.6/darwin-thread-multi-2level/Glib/ > Install > Writing build/IFiles.pm > Checking if your kit is complete... ExtUtils::Depends announces only that it found Glib. There should be a line saying "Found Cairo in $PATH", but there is not. This means that the Cairo typemaps do not get picked up. To where did you install the Cairo perl module? Is it installed under the same perl as with which you're building? -- If the monkey could type one keystroke every nanosecond, the expected waiting time until the monkey types out Hamlet is so long that the estimated age of the universe is insignificant by comparison ... this is not a practical method for writing plays. -- Gian-Carlo Rota ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: Gtk2 build problems on OS X 10.4
Yes, Cairo.pm is installed under the system installation of perl 5.8.6 @ /Library/Perl/5.8.6/darwin-thread-multi-2level/Cairo.pm. If I write a dummy script with the only line "use Cairo", I don't get any errors, so it seems to be in my path. On Jan 6, 2008 9:26 PM, muppet <[EMAIL PROTECTED]> wrote: > > On Jan 7, 2008, at 12:12 AM, J Greenbaum wrote: > > > Here is the output of the command "perl Makefile.PL". > > ... > > > 121 GtkObject > > Found Glib in /Library/Perl/5.8.6/darwin-thread-multi-2level/Glib/ > > Install > > Writing build/IFiles.pm > > Checking if your kit is complete... > > > ExtUtils::Depends announces only that it found Glib. There should be > a line saying "Found Cairo in $PATH", but there is not. This means > that the Cairo typemaps do not get picked up. > > To where did you install the Cairo perl module? Is it installed under > the same perl as with which you're building? > > > -- > If the monkey could type one keystroke every nanosecond, the expected > waiting time until the monkey types out Hamlet is so long that the > estimated age of the universe is insignificant by comparison ... this > is not a practical method for writing plays. >-- Gian-Carlo Rota > > > ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list