Re: GtkImageView



On 23/11/2007, Emmanuele Bassi <ebassi gmail com> wrote:
you can ask here if it's something relevant with the glib-perl API or
the build environment.

I seem to be making good progress, but am stuck trying to bind the
following enum:

typedef enum
{
    GTK_IMAGE_TRANSP_COLOR = 0,
    GTK_IMAGE_TRANSP_BACKGROUND,
    GTK_IMAGE_TRANSP_GRID
} GtkImageTransp;

In muppet's how_to, he talking about using glib-mkenums, so I added a
call to the Makefile.PL, producing:

#define GTKIMAGEVIEWPERL_TYPE_IMAGE_TRANSP
gtkimageviewperl_gtk_image_transp_get_type()
GType gtkimageviewperl_gtk_image_transp_get_type (void);

which seems to be included properly. I also defined:

#define SvGtkImageTransp(sv)   (gperl_convert_enum
(GTKIMAGEVIEWPERL_TYPE_IMAGE_TRANSP, (sv))
#define newSVGtkImageTransp(e)   (gperl_convert_back_enum
(GTKIMAGEVIEWPERL_TYPE_IMAGE_TRANSP, (e))

and added the following to the typemap:

GtkImageTransp  T_GPERL_GENERIC_WRAPPER

Although it compiles without error and I can use the widget in Perl, I
get the following error in a test suite:

t/01....NOK 1#     Failed test (t/01.t at line 11)
#     Tried to use 'Gtk2::ImageView'.
#     Error:  Can't load
'/home/jeff/perl/Gtk2-ImageView/blib/arch/auto/Gtk2/ImageView/ImageView.so'
for module Gtk2::ImageView:
/home/jeff/perl/Gtk2-ImageView/blib/arch/auto/Gtk2/ImageView/ImageView.so:
undefined symbol: SvGtkImageTransp at
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.

Any idea why the test suite doesn't even load the module properly?

Regards

Jeff



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