System.DllNotFoundException: libgdk-win32-2.0-0.dll on macOS (El Captain - 10.11.6)

69 views
Skip to first unread message

behrooz shabani

unread,
May 15, 2017, 11:03:23 AM5/15/17
to XWT Widget Toolkit
Hi all,

I am trying to build the HelloWorld based on the instructions that is available in README so far, I have built Xwt:

⋊> ~/w/d/client on master ⨯ gfind -name 'Xwt.dll' | grep Release
./xwt/Xwt/bin/Release/Xwt.dll
./xwt/Xwt/obj/Release/Xwt.dll
./xwt/Xwt.Gtk/bin/Release/Xwt.dll

and I I have added a reference to the first file in that list (README reads "This is the only library that you need to reference at compile time"). However, I get the following exception:

System.TypeInitializationException: The type initializer for 'Xwt.GtkBackend.GtkWorkarounds' threw an exception. ---> System.DllNotFoundException: libgdk-win32-2.0-0.dll
  at at (wrapper managed-to-native) Xwt.GtkBackend.GtkWorkarounds:gdk_quartz_set_fix_modifiers (bool)
  at Xwt.GtkBackend.GtkWorkarounds..cctor () [0x000e0] in <b23bb4472cbd4245b28dc81a75944289>:0
  --- End of inner exception stack trace ---
  at Xwt.GtkBackend.GtkDesktopBackend.GetScreenVisibleBounds (System.Object backend) [0x00005] in <b23bb4472cbd4245b28dc81a75944289>:0
  at Xwt.Screen.get_VisibleBounds () [0x00000] in /Users/behrooz/work/deskbit/client/xwt/Xwt/Xwt/Screen.cs:58
  at Xwt.Window.AdjustSize () [0x001f7] in /Users/behrooz/work/deskbit/client/xwt/Xwt/Xwt/Window.cs:255
  at Xwt.WindowFrame.Show () [0x00008] in /Users/behrooz/work/deskbit/client/xwt/Xwt/Xwt/WindowFrame.cs:316
  at at (wrapper remoting-invoke-with-check) Xwt.WindowFrame:Show ()
  at client.XwtDemo.Main () [0x0003a] in /Users/behrooz/work/deskbit/client/client/Main.cs:19

The source code:

using System;
using Xwt;

namespace client
{

class XwtDemo
{
[STAThread]
static void Main()
{
Application.Initialize(ToolkitType.Gtk);
var mainWindow = new Window()
{
Title = "Xwt Demo Application",
Width = 500,
Height = 400
};
mainWindow.Show(); // this is line 19
Application.Run();
mainWindow.Dispose();
}
}

}

Any idea what could be the problem and how I can fix it?

P.S. The application that I am trying to make is a webview (https://github.com/mono/xwt/blob/211d0e207fd974962bf69cb68b7214945bc1b4bb/TestApps/Samples/Samples/WebViewSample.cs) with a bunch of methods exposed via JS. So if you have pointers regarding that, I'd appreciate it because I can't find anything related to enabling JS for the webview here: https://github.com/mono/xwt/blob/44b564d92966fbfa789edb3e090609b218fc4529/Xwt/Xwt/WebView.cs.

behrooz shabani

unread,
May 15, 2017, 11:08:46 AM5/15/17
to XWT Widget Toolkit
For the record, I am running mono 5:

Mono JIT compiler version 5.0.0.100 (2017-02/9667aa6 Fri May  5 09:12:57 EDT 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS:           normal
SIGSEGV:       altstack
Notification:  kqueue
Architecture:  x86
Disabled:      none
Misc:          softdebug
LLVM:          yes(3.6.0svn-mono-master/8b1520c)
GC:            sgen (concurrent by default)

and Xamarin Studio (community) 6.3 (build 864). 
Reply all
Reply to author
Forward
0 new messages