Gstreamer-sharp.dll在linux下运行(单声道)

时间:2014-04-17 15:11:34

标签: c# linux dll mono gstreamer

我来自这里:How to build gstreamer-sharp with monodevelop/xamarin?

我设法用.net下的gstreamer构建我的应用程序。现在我尝试使用mono进行第一次启动,并使用以下stacktrace崩溃:

[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 <filename unknown>:0 
  at GLib.Global.set_ProgramName (System.String value) [0x00000] in <filename unknown>:0 
  at Gtk.Application.SetPrgname () [0x00000] in <filename unknown>:0 
  at Gtk.Application.Init () [0x00000] in <filename unknown>:0 
  at AudioCuesheetEditor.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>: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.

我已经使用以下输入启动了gstreamer-sharp.dll.config:

<configuration>
  <dllmap os="linux" dll="libgstreamer-1.0-0.dll" target="libgstreamer-1.0.so.0"/>
</configuration>

但那里缺少什么?为什么他找不到油嘴滑舌油?

提前感谢您的帮助!

问候语 斯文

1 个答案:

答案 0 :(得分:0)

GStreamerSharp 0.99.x只与gtk-sharp-3兼容,而不是gtk-sharp-2。

您试图强制它使用gtk-sharp2运行,并且在运行时它会抛出此错误:

Missing method .ctor in assembly /usr/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll, type GLib.IgnoreClassInitializersAttribute

将它与gtk-sharp3链接,你就可以了。