[Mono-devel-list] Re: GObject Binding issues

Mike Kestner mkestner at novell.com
Fri Apr 29 10:03:09 EDT 2005


On Fri, 2005-04-29 at 08:47 -0400, PAUL BETTS wrote:
> So using Glib != being GObject based then? What then would be a good
> way to generate C# wrappers for this library? Before I saw the GAPI
> article I was attempting to use Swig to generate the wrappers, but
> it'd be much better to leverage the existing Glib wrappers than to say
> compile everything statically and reinvent the wheel (like Adium does
> for its libgaim binding) 

GAPI can be used for non-GObject libraries.  We do so with libart_lgpl
in Gtk#.  

It looks like the problem you are hitting is that the assembly-name
isn't being properly defaulted.  Try providing a --assembly-name
argument to your gapi2-codegen command.  It's possible you may need to
provide a --customdir option too.  

I've opened a bug to provide default values for missing arguments:

http://bugzilla.ximian.com/show_bug.cgi?id=74769

-- 
Mike Kestner <mkestner at novell.com>




More information about the Mono-devel-list mailing list