GTK on OSX - Toolkit could not be loaded

197 views
Skip to first unread message

Josef Nemec

unread,
Apr 2, 2015, 3:47:27 PM4/2/15
to xwt-...@googlegroups.com
I'm having trouble getting GtkTest project to run on OSX (Mavericks), project compiles just fine, but it throws "Toolkit could not be loaded" exception when I try to start it. Any idea what might be wrong?

System.Exception: Toolkit could not be loaded ---> System.Exception: An exception was thrown by the type initializer for Gtk.Application ---> System.Exception: An exception was thrown by the type initializer for GLib.GType ---> System.Exception: libgobject-2.0-0.dll
  at at (wrapper managed-to-native) GLib.GType:g_type_init ()
  at GLib.GType..cctor () [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at Gtk.Application..cctor () [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at Xwt.GtkBackend.GtkEngine.InitializeApplication () [0x00001] in /Volumes/VMware Shared Folders/odkle/xwt/Xwt.Gtk/Xwt.GtkBackend/GtkEngine.cs:43
  at Xwt.Backends.ToolkitEngineBackend.Initialize (Xwt.Toolkit toolkit, Boolean isGuest) [0x00039] in /Volumes/VMware Shared Folders/odkle/xwt/Xwt/Xwt.Backends/ToolkitEngineBackend.cs:58
  at Xwt.Toolkit.Initialize (Boolean isGuest) [0x0001f] in /Volumes/VMware Shared Folders/odkle/xwt/Xwt/Xwt/Toolkit.cs:264
  at Xwt.Toolkit.LoadBackend (System.String type, Boolean isGuest, Boolean throwIfFails) [0x00065] in /Volumes/VMware Shared Folders/odkle/xwt/Xwt/Xwt/Toolkit.cs:246
  --- End of inner exception stack trace ---
  at Xwt.Toolkit.LoadBackend (System.String type, Boolean isGuest, Boolean throwIfFails) [0x00089] in /Volumes/VMware Shared Folders/odkle/xwt/Xwt/Xwt/Toolkit.cs:253
  at Xwt.Toolkit.Load (System.String fullTypeName, Boolean isGuest) [0x0002e] in /Volumes/VMware Shared Folders/odkle/xwt/Xwt/Xwt/Toolkit.cs:164
  at Xwt.Application.Initialize (System.String backendType) [0x00012] in /Volumes/VMware Shared Folders/odkle/xwt/Xwt/Xwt/Application.cs:94
  at Xwt.Application.Initialize (ToolkitType type) [0x00007] in /Volumes/VMware Shared Folders/odkle/xwt/Xwt/Xwt/Application.cs:81
  at Samples.App.Run (ToolkitType type) [0x00000] in <filename unknown>:0
  at GtkTest.MainClass.Main (System.String[] args) [0x00002] in /Volumes/VMware Shared Folders/odkle/xwt/TestApps/GtkTest/Main.cs:36

Pavel Bansky

unread,
Oct 12, 2015, 2:47:57 PM10/12/15
to XWT Widget Toolkit
I'm having the same issue on Linux...
Reply all
Reply to author
Forward
0 new messages