[Mono-osx] Re: Gtk# on MacOSX using the native (quartz) Gtk+?

Ludovic Rousseau ludovic.rousseau at gmail.com
Mon Jun 5 02:32:20 EDT 2006


Hello,

I think I found the problem. Mono was compiled with an "old" version
of glib. Since I need GTK+ with quartz support I had to recompile a
CVS version of GTK+ with a very recent version of glib and other libs.

I just recompiled Mono 1.1.15 from source and it now works.

GTK# is slow and has bugs in this configuration but that is another problem.

On 29/05/06, Ludovic Rousseau <ludovic.rousseau at gmail.com> wrote:
> I am trying to use Gtk# on Tiger using the native Gtk+ (using quartz
> and not X11). I have Gtk+ working (version 2.9.0 recompiled from CVS)
> and recompiled gtk-sharp-2.8.2.
>
> I modified /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/gac/gtk-sharp/2.8.0.0__35e10195dab3c99f/gtk-sharp.dll.config
> to replace "libgtk-x11-2.0.0.dylib" by "libgtk-quartz-2.0.0.dylib".
>
> But it crashes. I have:
> $ mono button.exe
>
> =================================================================
> Got a SIGSEGV while executing native code. This usually indicates
> a fatal error in the mono runtime or one of the native libraries
> used by your application.
> =================================================================
>
> Stacktrace:
>
> in (wrapper managed-to-native) Gtk.Application:gtk_init (int&,intptr&)
> <0xffffffff>
> in (wrapper managed-to-native) Gtk.Application:gtk_init (int&,intptr&) <0x90>
> in Gtk.Application:Init () <0x44>
> in GtkSamples.ButtonApp:Main (string[]) <0x2c>
> in (wrapper runtime-invoke) System.Object:runtime_invoke_int_string[]
> (object,intptr,intptr,intptr) <0x68>
> Abort trap
>
> I have the exact same problem if I use "libgtk-x11-2.0.0.dylib" and
> X11 so it should not be related to my Gtk+ recompiled for quartz.
>
> Has anybody tried this before?
>
> Thanks,

-- 
  Dr. Ludovic Rousseau


More information about the Mono-osx mailing list