Re: Announcing: Perl bindings for LibSoup

On Tue, May 24, 2011 at 10:13, Torsten Schoenfeld <kaffeetisch gmx de> wrote:
On 24.05.2011 09:31, Emmanuel Rodriguez wrote:

undefined symbol: gperl_hv_take_sv at /usr/lib/perl/5.10/
line 192.

Looks like you need Glib from git as well.
Thanks, it works with the most recent version that's in git.

Is it possible to mix Introspection bindings with perl module that has
hand made bindings?
For instance if HTTP::Soup would be written with the introspection
framework and Gtk2::WebKit stay the way it is with hand made bindings.
How can Gtk2::WebKit see the typemaps that correspond to Libsoup

    my @extra_dependencies;
    my $extra_cflags = "";
    eval {

        require Glib::Object::Introspection;

        Glib::Object::Introspection->setup (
            basename => 'Soup',
            version => '2.4',
        package => 'HTTP::Soup'

        #push @extra_dependencies, 'Glib::Soup';
        $extra_cflags = " -DGLIB_SOUP_PERL";
    } or do {
        my $error = $@;

    our $webkit = ExtUtils::Depends->new('Gtk2::WebKit', 'Gtk2',

The previous code dies as HTTP::Soup is not installed:

 *** Can't load dependency information for HTTP::Soup:
   Can't locate HTTP/Soup/Install/ in @INC (@INC contains: inc
ext /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10
/usr/share/perl/5.10 /usr/local/lib/site_perl .) at
/usr/share/perl5/ExtUtils/ line 170.

If I remove HTTP::Soup from ExtUtils::Depends then I get this error
during the compilation:
[ XS xs/WebKit.xs ]
Error: 'SoupSession *' not in typemap in WebKit.xs, line 41
make: *** [xs/WebKit.c] Error 1

Is there a way to generate the type map through the introspection
framework or should I declare the libsoup type maps in Gtk2::WebKit
module by hand?
Emmanuel Rodriguez

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