GTK # + WebKit + Windows

I developed a GTK # application that uses webkit-sharp to edit letter templates. This application works on Linux, but when it runs on Windows, it does not work. I am using webkit-sharp.dll from Linux on Windows. The error I get is:

System.TypeInitializationException: The type initializer for 'WebKit.WebView' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'webkit-1.0': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at WebKit.Download.webkit_download_get_type() at GtkSharp.WebkitSharp.ObjectManager.Initialize() at WebKit.WebView..cctor() --- End of inner exception stack trace --- at WebKit.WebView..ctor() at MainWindow..ctor() 

I assume that webkit-sharp.dll only wraps its own libraries for WebKit. I do not know where to get "webkit-1.0". Is there a webkit-sharp.dll file specific to Windows for GTK #?

+6
c # windows mono webkit gtk #
source share
3 answers

I did just that. I think the dll webkit windows does not use gtk as a rendering mechanism. I installed libllbkit dll provided by suse mingw32 port and all its dependencies.

You can see the full list of dependencies here.

At runtime (1 year ago more or less), the rendering was not ideal, but it may have improved.

+1
source share

I also have this problem ...

Did not try this, but at http://www.webkit.org/building/checkout.html

The site offers:

  • Download website support libraries
  • Run update-webkit script
  • Build a website from source

I think cygwin needs to be installed for this.

I’m just paraphrasing the site - I haven’t tried it yet.

0
source share

Have you tried to run the Hello World application to make sure everything is set up correctly in a Windows environment?

http://mono-project.com/Mono_Basics

You can also try some other sample programs to make sure they work without errors.

http://www.mono-project.com/GtkSharpBeginnersGuide

It seems that for a common installation problem, you need to add an environment variable to the windows to load the assemblies correctly:

http://www.mono-project.com/FAQ:_General#Installation_Problems

0
source share

All Articles