标签: mkbundle

在Mac OS X雪豹上运行mono 2.10.2 mkbundle时出现的问题

此页面包含有关Bundles的信息mkbundle,但是当我尝试在Mac上使用它时,我收到此错误消息.

delegate> mkbundle delegate.exe -o delegate
OS is: Darwin
Sources: 1 Auto-dependencies: False
   embedding: /Users/smcho/Desktop/csharp/delegate/delegate.exe
Compiling:
as -o temp.o temp.s 
temp.s:2:unknown section type: symbol_stubs
temp.s:2:Rest of line ignored. 1st junk character valued 112 (p).
[Fail]
Run Code Online (Sandbox Code Playgroud)

这个网站,我可以跑来export AS="as -arch i386"得到另一个错误.

Compiling:
as -arch i386 -o temp.o temp.s 
cc -g -o a.out -Wall temp.c `pkg-config --cflags --libs mono-2`  temp.o
ld: warning: ignoring file /Library/Frameworks/Mono.framework/Versions/2.10.2/lib/libmono-2.0.dylib, file was built for unsupported file format which is not the …
Run Code Online (Sandbox Code Playgroud)

.net macos mono mkbundle

4
推荐指数
1
解决办法
1989
查看次数

使用mkbundle从C#源代码创建Linux可执行文件时出现问题

在本提到的线程,以及在这里我使用mkbundle -o newfile oldfile.exe --static(OS:Ubuntu的11.10 64位,单声道:2.10.5)来创建其应在Apache Web服务器的可执行文件(OS:的Debian GNU/Linux的32位).这里oldfile.exe是使用C#-Hello-World-Code编译的结果mcs oldfile.cs.在原始系统(使用Ubuntu)上,该文件是可执行的.但是,当我newfile在Apache Web服务器上调用时,我收到错误:

不能执行二进制文件

此外,在做的file newfile时候说

ELF 64位LSB可执行文件,x86-64,版本1(SYSV),动态链接(使用共享库),不剥离

我怀疑如果mkbundle按照预期工作,那么它应该已经读过了

......静态联系......

不应该吗?任何人都知道为什么文件在服务器上不可执行?这是因为32位/ 64位的问题吗?

c# linux mono debian mkbundle

4
推荐指数
1
解决办法
1033
查看次数

c#cywgwin mono mkbundle windows 7 - 无法编译文件

我正在尝试按照以下帖子使用cygwin构建带嵌入式单声道的ac#app.

我在这里遵循指南:如何使用Mono和mkbundle将简单的.Net控制台项目转换为便携式exe?

我收到的错误是:

"gcc:-mno-cygwin标志已被删除;使用一个以mingw为目标的交叉编译器."

我不确定如何解决这个问题 - 任何人都可以提出建议吗?

我正在使用:Windows 7 x64,Mono 2.4.3,cygwin 7.1 beta(支持Windows 7).

谢谢,

坦率

c# mono cygwin mkbundle

3
推荐指数
1
解决办法
2541
查看次数

Mono mkbundle工具无法创建二进制文件,抱怨输出文件不可用

根据这个线程关于运行C#apps sans .NET的建议我已经使用mono编译了我的应用程序.我使用最新的Visual C#.NET Express Edition构建了原始应用程序.它在Windows上的.NET上运行良好.然后我打开了Cygwin并导航到我的源码,我再次使用以下命令在mono下编译项目:

$ mcs <myProjectHere>.cs
Run Code Online (Sandbox Code Playgroud)

这会生成MyProject.exe,它可以在Cygwin中成功运行,并且可以从Window命令行成功运行.使用的命令是:

$ mono MyProject.exe
C:\...>mono MyProject.exe
Run Code Online (Sandbox Code Playgroud)

只是为了踢,简单地说:

C:\...>MyProject.exe
Run Code Online (Sandbox Code Playgroud)

一切按预期工作.然后,我尝试使用mkbundle命令将单声道编译的可执行文件构建为静态链接的二进制文件,如下所示:

$ mkbundle -o MyProject MyProject.exe --deps
Run Code Online (Sandbox Code Playgroud)

这是事情开始走下坡路的地方.它启动得很好,然后抱怨输出文件(可能是MyProject.exe)因为忙而无法打开.它的全部输出都在这里:

    $ mkbundle -o Program Program.exe --deps
    OS is: Windows
    Sources: 1 Auto-dependencies: True
       embedding: c:\Documents and Settings\bsweeney\My Documents\Visual Studio 2008
    \Projects\TestConsole\TestConsole\Program.exe
       embedding: C:\PROGRA~1\Mono-2.2\lib\mono\2.0\mscorlib.dll
    Compiling:
    as -o temp.o temp.s
    gcc -mno-cygwin -g -o Program -Wall temp.c `pkg-config --cflags --libs mono|dos2
    unix`  temp.o
    /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/bin/ld: cannot op
    en output file Program.exe: Device or resource busy
    collect2: …

c# compiler-construction mono linker mkbundle

2
推荐指数
1
解决办法
1984
查看次数

Mac OS X下的Mono 3.4.0 mkbundle失败

我试图在MAC OS X 10.9(Mavericks)下制作静态二进制文件,这不需要单声道运行时.这几乎是干净的机器,带有最新的更新和最新的XCode.

如果我没有设置构建体系结构,我有以下内容:

mkbundle client-patcher.exe -o client-patcher
OS is: Darwin
Sources: 1 Auto-dependencies: False
   embedding: /Users/radubalan/tmp/client-patcher.exe
Compiling:
as -o temp.o temp.s
cc -g -o client-patcher -Wall temp.c `pkg-config --cflags --libs mono-2`  temp.o
ld: warning: ignoring file /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/libmono-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64): /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/libmono-2.0.dylib
Undefined symbols for architecture x86_64:
  "_mono_main", referenced from:
      _main in temp-b1f73b.o
  "_mono_register_bundled_assemblies", referenced from:
      _mono_mkbundle_init in temp-b1f73b.o
  "_mono_set_dirs", referenced from:
      _main in temp-b1f73b.o
ld: symbol(s) not found …
Run Code Online (Sandbox Code Playgroud)

c# macos mono mkbundle

2
推荐指数
1
解决办法
1663
查看次数

试图运行单声道捆绑程序,但缺少libgdiplus异常

我目前正在尝试让我的C#程序在Linux上运行.在我的Linux机器上使用mono,程序运行正常.所以我使用了mkbundle,所有这些都是正确编译的.但是当我尝试在任何其他Linux机器上运行捆绑的程序时,我收到此错误:

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the 
type initializer for System.Windows.Forms.XplatUI ---> 
System.TypeInitializationException: An exception was thrown by the type initializer for 
System.Drawing.GDIPlus ---> System.DllNotFoundException: libgdiplus.so.0
Run Code Online (Sandbox Code Playgroud)

这是我使用的mkbundle命令:

mkbundle --static program.exe --deps -o a.out
Run Code Online (Sandbox Code Playgroud)

我也尝试过使用mkbundle2而没有运气.

我想也许有一种方法可以专门包含mkbundle的库(比如告诉在哪里找到libgdiplus).它应该在我使用mkbundle时链接,但我想这不是因为当我在任何其他Linux机器上运行我的程序(不运行单声道)时,我收到此错误.

两台机器都运行Ubuntu 10.10 AMD64.

mono gdi+ mkbundle

1
推荐指数
1
解决办法
1887
查看次数

Mkbundle无法在OS X上编译C#应用程序

我已经在这几天了,虽然我很快就设法让Mono的mkbundle在Windows和Linux上创建了一个本机可执行文件但我还是无法为OS X做同样的事情.

我正在使用Mono 3.4.0,因为我需要.NET 4.5支持,并且能够在OS X上编译x86_64也不错.

我目前使用以下简单的bash脚本来尝试mkbundle构建:

#!/bin/bash
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig:/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/pkgconfig
#PKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/pkgconfig

mkbundle bin/Release/Launcher.exe --static --deps -o bin/Release/OSXNative/Launcher.exe
Run Code Online (Sandbox Code Playgroud)

我得到以下输出:

$ ./OSXNativeBuild.sh 
OS is: Darwin
Note that statically linking the LGPL Mono runtime has more licensing restrictions than dynamically linking.
See http://www.mono-project.com/Licensing for details on licensing.
Sources: 1 Auto-dependencies: True
   embedding: /Volumes/app/Launcher/Launcher/bin/Release/Launcher.exe
   embedding: /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
   embedding: /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/4.5/mscorlib.dll
   embedding: /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll
   embedding: /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
   embedding: /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll
   embedding: /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/gac/System.Security/4.0.0.0__b03f5f7f11d50a3a/System.Security.dll
   embedding: /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/gac/System.Windows.Forms/4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
   embedding: /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
   embedding: /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/Mono.WebBrowser.dll
   embedding: /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/Mono.Posix.dll
   embedding: /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/gac/System.Runtime.Serialization.Formatters.Soap/4.0.0.0__b03f5f7f11d50a3a/System.Runtime.Serialization.Formatters.Soap.dll
   embedding: /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/gac/Accessibility/4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
   embedding: /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/gac/System.Data/4.0.0.0__b77a5c561934e089/System.Data.dll
   embedding: /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/gac/Mono.Data.Tds/4.0.0.0__0738eb9f132ed756/Mono.Data.Tds.dll
   embedding: /Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/gac/System.Transactions/4.0.0.0__b77a5c561934e089/System.Transactions.dll …
Run Code Online (Sandbox Code Playgroud)

.net c# macos mono mkbundle

1
推荐指数
1
解决办法
922
查看次数

C#程序在Linux下的mono下不起作用.

我试图使用Visual C#2010编写的程序在Linux上运行.为此,我使用了mkbundle功能,以便潜在客户端不必安装mono.不幸的是我对Linux或Mono不了解,所以我刚刚遵循这个:c#cywgwin mono mkbundle windows 7 - 无法编译文件

但由于某些原因,mkbundle最后写了[FAIL],说了"没有这样的文件或目录".我已粘贴下面的全文.有人知道如何解决这个问题吗?

$ mkbundle -o MyProgram MyProgram.exe --deps
OS is: Windows
Sources: 1 Auto-dependencies: True
   embedding: C:\cygwin\home\Synaps\MyProgram.exe
   embedding: C:\Mono-2.10.8\lib\mono\4.0\mscorlib.dll
   embedding: C:\Mono-2.10.8\lib\mono\4.0\System.Drawing.dll
   embedding: C:\Mono-2.10.8\lib\mono\4.0\System.dll
   embedding: C:\Mono-2.10.8\lib\mono\4.0\Mono.Security.dll
   embedding: C:\Mono-2.10.8\lib\mono\4.0\System.Configuration.dll
   embedding: C:\Mono-2.10.8\lib\mono\4.0\System.Xml.dll
   embedding: C:\Mono-2.10.8\lib\mono\4.0\System.Security.dll
   embedding: C:\Mono-2.10.8\lib\mono\4.0\System.Windows.Forms.dll
   embedding: C:\Mono-2.10.8\lib\mono\4.0\Accessibility.dll
   embedding: C:\Mono-2.10.8\lib\mono\4.0\Mono.WebBrowser.dll
   embedding: C:\Mono-2.10.8\lib\mono\4.0\Mono.Posix.dll
   embedding: C:\Mono-2.10.8\lib\mono\4.0\System.Data.dll
   embedding: C:\Mono-2.10.8\lib\mono\4.0\Mono.Data.Tds.dll
   embedding: C:\Mono-2.10.8\lib\mono\4.0\System.Transactions.dll
   embedding: C:\Mono-2.10.8\lib\mono\4.0\System.EnterpriseServices.dll
   embedding: C:\Mono-2.10.8\lib\mono\4.0\AForge.Imaging.dll
   embedding: C:\Mono-2.10.8\lib\mono\4.0\AForge.dll
   embedding: C:\Mono-2.10.8\lib\mono\4.0\AForge.Math.dll
Compiling:
as -o temp.o temp.s
gcc -mno-cygwin -g -o MyProgram -Wall temp.c `pkg-config --cflags --libs mono-2|d
os2unix`  temp.o
: …
Run Code Online (Sandbox Code Playgroud)

.net linux mono visual-studio-2010 mkbundle

0
推荐指数
1
解决办法
2220
查看次数