Re: Big trouble on little Powerbook




On Feb 6, 2005, at 10:33 PM, Daniel Kasak wrote:

I think I'm a little closer to getting Perl-Gtk2 set up on OS X.

I've been developing the bindings on my powerbook for the last year and a half. It works. :-)

I use Apple's X11 and Fink stable on Panther. Fink's stable gtk+-2.0 binary is 2.2.4. Default theme, default everything, because i'm lazy.


I can run the gtk-demo that comes with Gtk2 ( the C one ), and it runs pretty well.

Unfortunately, I can't run main.pl in the gtk-demo folder in Gtk2-1.062. I get:

---

ayahuasca:~/dev/Gtk2-1.062/gtk-demo dan$ /opt/local/bin/perl main.pl > log.txt Gtk-WARNING **: `theme_init': dlcompat: unable to find symbol "theme_init" at main.pl line 602.
...
Pango-WARNING **: `script_engine_init': dlcompat: unable to find symbol "script_engine_init" at main.pl line 525. Failed to load Pango module for id: 'BasicScriptEngineFc'Pango-WARNING **: `script_engine_init': dlcompat: unable to find symbol "script_engine_init" at main.pl line 525.
...
Failed to load Pango module for id: 'BasicScriptEngineFc'GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed at main.pl line 525.Pango-CRITICAL **: _pango_engine_sh
ape_shape: assertion `PANGO_IS_FONT (font)' failed at main.pl line 525.
Pango-ERROR **: file shape.c: line 75 (pango_shape): assertion failed: (glyphs->num_glyphs > 0) at main.pl line 525.
ayahuasca:~/dev/Gtk2-1.062/gtk-demo dan$

As you might imagine, i don't see this.

It's odd that you see different behavior between C and Perl... my only guess is something to the effect of gtk+ either linking or initializing incorrectly with perl.


ayahuasca:~/dev dan$ sales/sales.pl 161
Can't make loaded symbols global on this platform while loading /opt/local/lib/perl5/site_perl/5.8.5/darwin-2level/auto/Gnome2/VFS/ VFS.bundle at /opt/local/lib/perl5/5.8.5/darwin-2level/DynaLoader.pm line 230.

This one is not really harmful, just annoying. Easily fixed by copying the implementation of dl_load_flags() from Gtk2.pm into VFS.pm.


Image-loading module /opt/local/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-jpeg.so does not export the proper interface; perhaps it's from a different GTK version? at sales/sales.pl line 111.
...
That bit above about libpixbufloader-jpeg.so being from a different GTK version ... I'm pretty sure that's not the case.

Did you compile this gtk+ yourself or get the binaries from someplace? It sounds like there's a linkage problem.


--
elysse (pregnant): are your hands cold?
me: uh, i suppose so.
elysse: will you put them on me?




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]