System.DllNotFoundException:> GTK \ BIN \ libgobject-2.0-0.dll

时间:2017-01-23 17:19:27

标签: c# linux mono

我在Github上构建了一个GUI。

启动我已经构建的解决方案后:

  

{System.TypeInitializationException:类型初始值设定项   'Gtk.Application'抛出异常。 --->   System.TypeInitializationException:类型初始值设定项   'GLib.GType'引发了一个例外。 ---> System.DllNotFoundException:   gtk \ bin \ libgobject-2.0-0.dll at(包装器托管到原生)   GLib.GType:GLI.GType..cctor()[0x00192]中的g_type_init()   < 3683aafe72b14a2db70c1aa8c87dbafa>:0 ---内部异常结束   堆栈跟踪---在Gtk.Application..cctor()[0x00000]中   < 97df079e817c4064808c8a386b3beb10>:0 ---内部异常结束   堆栈跟踪---在PublicanCreators.GladeApp..ctor(System.String []   args)[0x00007] in   /home/sascha/RiderProjects/PublicanCreators/src/PublicanCreators/Program.cs:66   在PublicanCreators.GladeApp.Main(System.String [] args)[0x00002]中   /home/sascha/RiderProjects/PublicanCreators/src/PublicanCreators/Program.cs:60   }

它在那里可用:

  • /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
  • /usr/lib/i386-linux-gnu/libgobject-2.0.so.0.5000.2
  • /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2

gnome-sharp.dll.config说:

<configuration>
  <dllmap dll="libglib-2.0-0.dll" target="libglib-2.0.so.0"/>
  <dllmap dll="libgobject-2.0-0.dll" target="libgobject-2.0.so.0"/>
  <dllmap dll="libgthread-2.0-0.dll" target="libgthread-2.0.so.0"/>
  <dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.so.0"/>
  <dllmap dll="gnome-2" target="libgnome-2.so.0"/>
  <dllmap dll="gnomecanvas-2" target="libgnomecanvas-2.so.0"/>
  <dllmap dll="gnomeui-2" target="libgnomeui-2.so.0"/>
  <dllmap dll="gnomesharpglue-2" target="/usr/lib/cli/gnome-sharp-2.24/libgnomesharpglue-2.so"/>
</configuration>

ldconfig说:

ldconfig -p | grep libgobject libgobject-2.0.so.0(libc6,x86-64)=&gt; /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 libgobject-2.0.so.0(libc6)=&gt; /usr/lib/i386-linux-gnu/libgobject-2.0.so.0 libgobject-2.0.so(libc6,x86-64)=&gt; /usr/lib/x86_64-linux-gnu/libgobject-2.0.so

也许有人有想法?

0 个答案:

没有答案