【问题标题】:Run bundled executable file Ubuntu server运行捆绑的可执行文件 Ubuntu 服务器
【发布时间】:2013-01-22 12:55:08
【问题描述】:

我正在尝试在 Ubuntu 上运行 gtk“Hello World”应用程序。 我使用以下命令创建了 .exe 包。(参考:How to create bundle for Mono develop

mkbundle --static hello.exe -o hello

现在,我正在尝试使用以下命令在新的 ubuntu 服务器上运行这个捆绑的应用程序:

anand@anand-Fresh-Ubuntu:~Desktop$ ./你好

它抛出以下错误:

未处理的异常:System.TypeInitializationException:异常 被 Gtk.Application 的类型初始化器抛出 ---> System.EntryPointNotFoundException:glibsharp_g_thread_supported at (包装器托管到本机)GLib.Thread:glibsharp_g_thread_supported () 在 GLib.Thread.get_Supported () [0x00000] in :0 在 Gtk.Application..cctor () [0x00000] in :0 --- 内部异常堆栈跟踪结束 --- 在 Test.MainClass.Main (System.String[] args) [0x00000] in :0 [错误] 致命的未处理异常:System.TypeInitializationException:一个 Gtk.Application 的类型初始化程序抛出异常---> System.EntryPointNotFoundException:glibsharp_g_thread_supported at (包装器托管到本机)GLib.Thread:glibsharp_g_thread_supported () 在 GLib.Thread.get_Supported () [0x00000] in :0 在 Gtk.Application..cctor () [0x00000] in :0 --- 内部异常堆栈跟踪结束 --- 在 Test.MainClass.Main (System.String[] args) [0x00000] in :0

mono-complete 已经安装在这台机器上。

提前致谢。

【问题讨论】:

  • 是的,使用单声道框架。

标签: ubuntu mono monodevelop


【解决方案1】:

问题在于,尽管 mkbundle 包含托管程序集,但它不包含它们 P/Invoke 到的本机库,在本例中为 libglibsharpglue。

【讨论】:

  • 那么,捆绑运行单声道开发的最佳方式应该是什么?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-01-26
相关资源
最近更新 更多