[Gtk-sharp-list] GTK3 and EntryPointNotFoundException in gtksharp

Andres G. Aragoneses knocte at gmail.com
Thu Dec 1 19:16:42 EST 2011


On 12/01/2011 06:43 PM, Sergey Litvinov wrote:
> Hello everyone,
>
> I am developing some program, and I am trying to use gtksharp with gtk3.
> As I saw from previous emails – source code from master should support
> gtk3. And I am trying to build and use it with gtk 3. But I’ve found a
> problem.
>
> I use gtk 3.2 libraries under Ubuntu\Windows 7. For Windows 7 I’ve
> downloaded gtk3.2 from OpenSUSE build server and latest version of
> gtk-sharp from master branch.
>
> I found one strange thing in
> https://github.com/mono/gtk-sharp/blob/master/glib/Thread.cs . For
> g_thread_get_initialized it use external call to libgthread-2.0-0
> library. But in that library there is no such method and when I try to
> call Gtk.Application.Init() - it fails with EntryPointNotFoundException.
> It fails with the same error on both Windows and Ubuntu. I investigated
> glib source and gtk-sharp/glib history and found that such method exist
> in libglib-2.0-0.
>
>
> The library name in Thread.cs file was changed at Jan 7 2011 in this
> commit -
> https://github.com/mono/gtk-sharp/commit/ea7c52bbf9aabdd7f8103ea032afe43084f137b7#glib/Thread.cs
> <https://github.com/mono/gtk-sharp/commit/ea7c52bbf9aabdd7f8103ea032afe43084f137b7#glib/Thread.cs>
>
> I’ve locally updated library name in Thread.cs to libglib-2.0-0.dll,
> built it again, and tried to call Gtk.Application.Init(). And seems it
> was successful. I am newbie there and my question is – was it a mistake?
> If yes, I can do a pull request to gtk-sharp git repo.

Seems that the change is correct, however you would need to investigate 
if version 2.28.0 of libglib also has that function too and, in case it 
doesn't, change the value of GLIB_REQUIRED_VERSION in the file 
configure.ac as well, to the first version of GLib that included it.

Anyway, can you first thing open a bug in 
http://bugzilla.xamarin.com/enter_bug.cgi?product=Gtk%23 so this doesn't 
get forgotten? You can later announce your pull-request URL in the bug.

Thanks!

   Andres

-- 





the first version of GLib 2.x that included that function, in order to 
update the dependencies check in



More information about the Gtk-sharp-list mailing list