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

Sergey Litvinov phoenixxua at gmail.com
Sat Dec 3 10:03:54 EST 2011


Seems that g_thread_get_initialized introduced in glib 2.20 and it's still
exists in 2.30 (
http://developer.gnome.org/glib/2.30/glib-Threads.html#g-thread-get-initialized).

However in glib 2.31 they marked it as deprecated thread API because of new
simplified thread API:
http://mail.gnome.org/archives/gtk-devel-list/2011-October/msg00056.html
http://developer.gnome.org/glib/2.31/glib-Deprecated-Thread-APIs.html#g-thread-get-initialized

I've created new bug - http://bugzilla.xamarin.com/show_bug.cgi?id=2329 and
I'll add a pull-request to it.

2011/12/2 Andres G. Aragoneses <knocte at gmail.com>

> 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
>
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20111203/9262d7ce/attachment.html 


More information about the Gtk-sharp-list mailing list