相关疑难解决方法(0)

在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
查看次数

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
查看次数

标签 统计

macos ×2

mkbundle ×2

mono ×2

.net ×1

c# ×1