Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

GTK# support on Linux

$
0
0

Hi,

first of all, great to see GTK# support (preview) for Xamarin Forms.

I followed the docs: "GTK# Platform Setup" on https://docs.microsoft.com/en-us/xamarin/xamarin-forms/platform/gtk?tabs=vswin
using the GameOfLife example (as suggested).

It works as expected on Windows.

Now I just copied the source to my Linux machine and was expecting that it also compiles and runs on that machine.
I opened the solution in MonoDevelop. It compiled and started but crashes with the exception:

System.DllNotFoundException: libglib-2.0-0.dll
at at (wrapper managed-to-native) GLib.Marshaller.g_utf16_to_utf8(char*,intptr,intptr,intptr,intptr&)
at GLib.Marshaller.StringToPtrGStrdup (System.String str) [0x00034] in :0
at GLib.Global.set_ProgramName (System.String value) [0x00001] in :0
at Gtk.Application.SetPrgname () [0x0000d] in <35293b6aa2744433b0e2f41f34e699d5>:0
at Gtk.Application.Init () [0x00001] in <35293b6aa2744433b0e2f41f34e699d5>:0
at GameOfLife.Gtk.Program.Main (System.String[] args) [0x00001] in :0

What am I missing? Or is this just not supported yet?

Thanks

Best regards
Alex


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>