Ubuntu16/CentOS7: System.DllNotFoundException: gtksharpglue-2
GTK # Xamarin.Forms GTK Linux. , . https://docs.microsoft.com/en-us/xamarin/xamarin-forms/platform/other/gtk?tabs=windows
GTK VS-2017 Win, GTK Project Win . GTK, Linux-Ubuntu16, .
spsuser @ubuntusrv: ~/ /Boxview/ $ sudo mono BasicBoxView.GTK.exe
: System.TypeInitializationException: 'Gtk.Container' . ---> System.DllNotFoundException: gtksharpglue-2 at ( ) Gtk.Container.gtksharp_gtk_container_get_focus_child_offset() Gtk.Container..cctor() [0x00000] <94f79862491ff0b0b5b0: --- Gtk.Bin..ctor(System.IntPtr raw) [0x00000] <94f79862491c46b0bf711bc40f7608a5>: 0 Gtk.Window..ctor ( Gtk.WindowType) [0x00000] <94f798640f7b6b8b8646b6647b660 0 Xamarin.Forms.Platform.GTK.FormsWindow..ctor() [0x00000] <4bad12fcff0f409181b1aa48e034f579>: 0 BasicBoxView.GTK.Program.Main(System.String [] args) [0x00014a0a0a9aa0a0a] 0a0a0aa0aa0a0a0eaaaaaaaaaaaaaaaaaaaaaaaaaaa_aa.aa0a0a0a0e0a0e0a0a0a0a0a0a0a0a0b0d0d0b0d0b0b0b0b0b0b5d2d0b2c5c0b2b2c5c5c0b1b2c0b1dc0b0b1d1d0b0d1d0b1c. 0d. 0x2.a0. 0a. 0a. 0. [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: 'Gtk.Container' . ---> System.DllNotFoundException: gtksharpglue-2 at ( ) Gtk.Container.gtksharp_gtk_container_get_focus_child_offset() Gtk.Container..cctor() [0x00000] <94f79862491ff0b0b5b0: --- Gtk.Bin..ctor(System.IntPtr raw) [0x00000] <94f79862491c46b0bf711bc40f7608a5>: 0 Gtk.Window..ctor ( Gtk.WindowType) [0x00000] <94f798640f7b6b8b8646b6647b660 0 Xamarin.Forms.Platform.GTK.FormsWindow..ctor() [0x00000] <4bad12fcff0f409181b1aa48e034f579>: 0 BasicBoxView.GTK.Program.Main(System.String [] args) [0x00014a0a0a9aa0a0a] 0a0a0aa0aa0a0a0eaaaaaaaaaaaaaaaaaaaaaaaaaaa_aa.aa0a0a0a0e0a0e0a0a0a0a0a0a0a0a0b0d0d0b0d0b0b0b0b0b0b5d2d0b2c5c0b2b2c5c5c0b1b2c0b1dc0b0b1d1d0b0d1d0b1c. 0d. 0x2.a0. 0a. 0a. 0. spsuser @ubuntusrv: ~/Desktop/Boxview/Debug $
$ sudo find /usr/ -name libgtksharpglue-2*
[sudo] password for spsuser:
/usr/lib/cli/gtk-sharp-2.0/libgtksharpglue-2.so
/usr/lib/x86_64-linux-gnu/libgtksharpglue-2.so
/usr/bin/lib/libgtksharpglue-2.so
/usr/bin/lib/libgtksharpglue-2.la
/usr/bin/lib/libgtksharpglue-2.a
DLL /etc/mono/config.
PATH gtk-sharp-2.0.
spsuser @ubuntusrv: ~/ /Boxview/ $ echo $ PATH/home/spsuser/bin: /home/spsuser/.local/bin: /usr/local/sbin: /usr/local/bin: /usr/sbin : /USR/: /SBIN:/: /USR/: /USR//://: /usr/lib/cli/gtk-sharp-2.0/: /USR/ /Lib
, . , . Win. Ubuntu, .
https://github.com/jsuarezruiz/xamarin-forms-gtk-samples - Xamarin.Forms, Win, Linux. , , , .
source
share