GTK#+ +的WebKit的Windows [英] GTK# + WebKit + Windows

查看:415
本文介绍了GTK#+ +的WebKit的Windows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我公司开发的GTK#应用程序,使得使用WebKit的锋利的编辑电子邮件模板。此应用程序在Linux中,但是,当它在Windows中运行它不工作。我利用Linux的Windows中的WebKit的sharp.dll。那我得到的错误是:

I have developed a GTK# application that makes use of webkit-sharp to edit email templates. This application works in Linux but when it is run in Windows it does not work. I am using the webkit-sharp.dll from Linux in Windows. The error that I am getting 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()

我猜测WebKit的sharp.dll仅用于包​​装的WebKit的本地库。我不知道从哪里得到WebKit的1.0。是否有一个WebKit的sharp.dll是特定于Windows的GTK#?

I am guessing that webkit-sharp.dll only wraps the native libraries for WebKit. I do not know where to get "webkit-1.0". Is there a webkit-sharp.dll that is specific to Windows for GTK#?

推荐答案

我确实做到了。我想WebKit的Windows动态链接库不使用GTK作为渲染引擎。
我所做的是安装在SUSE mingw32的港口和所有的依赖所提供的libwebkit DLL。

I did exactly that. I guess the webkit windows dll does not use gtk as rendering engine. What I did was install the libwebkit dll provided by the suse mingw32 port and all of its dependencies.

您可以看到的依赖关系的完整列表的这里

You can see a full list of dependencies here

在做这件事的时候(1年前或多或少)呈现不完美的,但它可具有改善的

At the time of doing it(1 year ago more or less) the rendering was not perfect, but it may have improved.

这篇关于GTK#+ +的WebKit的Windows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆