title: Gstreamer-sharp.dll run under linux (mono)
body: <p>I'm coming from here: <a href="https://stackoverflow.com/questions/21577733/how-to-build-gstreamer-sharp-with-monodevelop-xamarin">How to build gstreamer-sharp with monodevelop/xamarin?</a></p>
  
  <p>I managed to build my application with gstreamer under .net. Now I tried the first start with mono, and it crashes with the following stacktrace:</p>
  
  <pre><code>[sven@localhost AudioCuesheetEditor-linux-v1.1.3]$ sh AudioCuesheetEditor
  AudioCuesheetEditor: Zeile 2: $'\r': Kommando nicht gefunden.
  Missing method .ctor in assembly /usr/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll, type GLib.IgnoreClassInitializersAttribute
  Can't find custom attr constructor image: /usr/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll mtoken: 0x0a000131
  [ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: libglib-2.0-0.dll
    at (wrapper managed-to-native) GLib.Marshaller:g_malloc (uintptr)
    at GLib.Marshaller.StringToPtrGStrdup (System.String str) [0x00000] in &lt;filename unknown&gt;:0 
    at GLib.Global.set_ProgramName (System.String value) [0x00000] in &lt;filename unknown&gt;:0 
    at Gtk.Application.SetPrgname () [0x00000] in &lt;filename unknown&gt;:0 
    at Gtk.Application.Init () [0x00000] in &lt;filename unknown&gt;:0 
    at AudioCuesheetEditor.MainClass.Main (System.String[] args) [0x00000] in &lt;filename unknown&gt;:0 
  [sven@localhost AudioCuesheetEditor-linux-v1.1.3]$ sh AudioCuesheetEditor
  AudioCuesheetEditor: Zeile 2: $'\r': Kommando nicht gefunden.
  
  Unhandled Exception: System.TypeLoadException: A type load exception has occurred.
  [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: A type load exception has occurred.
  </code></pre>
  
  <p>I already started a gstreamer-sharp.dll.config with the following input:</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;dllmap os="linux" dll="libgstreamer-1.0-0.dll" target="libgstreamer-1.0.so.0"/&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>But what is missing there? Why doesnt he find glib?</p>
  
  <p>Thanks in advance for your help!</p>
  
  <p>Greeting
  Sven</p>