GTK# Webkit System.DllNotFoundException missing file webkitgtk-1.0.so.0
I written the following GTK# application which compiles successfully, code as below:
using System;
using Gtk;
using GtkSharp;
using WebKit;
namespace gtk_test
{
class Hello {
static void Main()
{
Application.Init ();
//MainWindow window = new MainWindow ();
Window window = new Window ("TEST");
window.Fullscreen();
Fixed frmtest=new Fixed();
frmtest.SetSizeRequest(1280,1024);
Label test = new Label();
test.Text = "Hello and Welcome to GTK#";
Button btnclose = new Button();
btnclose.SetSizeRequest(100,50);
btnclose.Clicked += btnclose_clicked;
btnclose.Label = "Exit Program";
btnclose.TooltipText = "close program!";
ScrolledWindow scrollWindow = new ScrolledWindow ();;
scrollWindow.SetSizeRequest(1000,900);
WebView webView = new WebView ();
webView.SetSizeRequest(1200,1000);
webView.Open ("www.bbc.co.uk/sport");
scrollWindow.Add (webView);
frmtest.Put(test,10,50);
frmtest.Put(btnclose,10,75);
frmtest.Put(scrollWindow,10,100);
window.Add(frmtest);
window.Show();
window.ShowAll();
Application.Run ();
}
static void btnclose_clicked (object sender, EventArgs e)
{
Application.Quit();
}
}
}
However it crashes with a System.DllNotFoundException error, stating webkitgtk-1.0.so.0 file is missing. I've researched on internet looking for solutions but cannot seem to find any. GTksharp and Webkitsharp has been installed. Does it also need webkitgtk?. I am trying this now! I'm really struggling to find out what I have not installed. Note in /usr/lib64 there is a libwebkit-1.0.so.2 file but not a libwebkit-1.0.so.0 file, should that exist?
Thanks for your help,
Andy