Torsten Schoenfeld wrote:
Sorry about that.
No excuses ;) You said there could be typos and I was't clever enough to identify them by myself.
Aosd.xs: In function 'perl_aosd_renderer': Aosd.xs:28: warning: passing argument 2 of 'Perl_sv_2mortal' makes pointer from integer without a castUse newSVCairo instead of newSVCairoContext.Aosd.xs: In function 'XS_X11__Aosd_aosd_set_renderer': Aosd.xs:110: error: 'CPerlCallback' undeclared (first use in this function) Aosd.xs:110: error: (Each undeclared identifier is reported only once Aosd.xs:110: error: for each function it appears in.) Aosd.xs:110: error: 'callback' undeclared (first use in this function)Make it GPerlCallback. It's defined in Glib's header gperl.h.
Compiles well with these changes, but the when loading the module, the
symbol
gperl_callback_new
is undefined.
Makefile.PL uses this EU::Depends (as you suggested ;)
my $package = ExtUtils::Depends->new('X11::Aosd', 'Cairo', 'Gtk2');
I tried adding "Glib" which changed nothing (of course, because it's
already there due to Cairo and Gtk2 dependencies).
Makefile lists these LIBS:
LIBS => q[-laosd -lcairo -lXcomposite -lXfixes -lgobject-2.0
-lglib-2.0 -pthread -lgthread-2.0 -lrt -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
-lpangocairo-1.0 -lfontconfig -lXext -lXrender
-lXinerama -lXi -lXrandr -lXcursor -lXdamage
-lpango-1.0 -lX11 -lgmodule-2.0 -ldl -lfreetype -lz]
Regards,
Jörn
--
Think before you code. And while you're doing it probably won't hurt. ;)
Attachment:
pgpLefvHdQxAk.pgp
Description: PGP signature