[Gtk-sharp-list] Help on getting Webkit Widget in Monodevelop?

Jacek Rużyczka stacheldraht at interia.pl
Fri Sep 13 21:04:49 UTC 2013


Am Donnerstag, den 12.09.2013, 22:15 +0200 schrieb Stephan Sundermann:
> You might want to give the new gobject-introspection bindings for
> webkitgtk-3.0 a try. There is also a basic browser sample included
> with it.
> 
> 
> Best regards,
> 
> Stephan Sundermann
> 
Thank you for the useful hint, but in the meantime I've managed to apply
a nasty, stinky hack on the webkit-sharp sources to get them compiled.
>         
>         This is, in fact, the problem which now stops me from suing
>         webkit-sharp. On OpenSUSE 12.1 I had already encountered the
>         library
>         name issue, but a simple symlink from webkit-1.0.so.2 to
>         webkitgtk-1.0.so.0 solved the problem, so I didn't even have
>         to compile
>         anything from scratch.
>         
>         After upgrading to OpenSUSE 12.3, the trouble came back.
>         Symlinking
>         didn't help this time. Neither did copying the recent lib to
>         the name
>         expected by webkit-sharp. I also tried out the sourcecode
>         (plus adapting
>         webkit-sharp.dll.config and then webkit-sharp.dll.config.in),
>         but the
>         whole lot keeps on throwing the nasty DllNotFoudException:
>         webkit-1.0.
>         
Editing webkit-sharp.dll.config.in is in fact not enough. You also have
to alter webkit-sharp-sources.xml like this:

<?xml version="1.0"?>
<gapi-parser-input>
  <api filename="webkit-sharp-api.raw">
    <library name="webkit-1.0">
      <namespace name="WebKit">
        <!--<dir>/usr/include/webkit-1.0/webkit</dir>-->
	<!--<dir>webkit-1.0/webkit</dir>-->
        <dir>/usr/include/webkitgtk-1.0/webkit</dir>
      </namespace>
    </library>
  </api>
</gapi-parser-input>

The path to the include files for webkit has changed, too. Of course,
you have to install the appropriate devel package (for openSuSE 12.3 /
64bit, this is libwebkitgtk-devel-1.10.2-3.2.1.x86_64) before
runnnig ./configure. The prefix path shall be /usr. Then everything
compiles fine.

☠ PLEASE NOTE ☠ I still haven't checked whether my app now works fine.
At least I now have a patched (or rather, hacked) webkit-sharp. I will
keep you up to date.

Kind regards
Jacek




More information about the Gtk-sharp-list mailing list