在linux(mono)下运行Gstreamer-sharp.dll

本文关键字:运行 Gstreamer-sharp dll linux mono | 更新日期: 2023-09-27 17:58:43

我来自这里:如何使用monodevelope/xamarin构建gstreamer sharp?

我设法在.net下用gstreamer构建了我的应用程序

[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.dl.config:

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

但是那里缺少什么呢?为什么他不觉得油嘴滑舌?

提前感谢您的帮助!

问候Sven

在linux(mono)下运行Gstreamer-sharp.dll

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链接,你会没事的。