1

我试过使用mkbundle --deps f.exe -o d.exe 但是抛出异常

我收到以下错误

embedding: I:\f.exe
   embedding: C:\PROGRA~2\MONO-2~1.8\lib\mono\4.0\System.dll
   embedding: C:\PROGRA~2\MONO-2~1.8\lib\mono\4.0\mscorlib.dll
   embedding: C:\PROGRA~2\MONO-2~1.8\lib\mono\4.0\Mono.Security.dll
   embedding: C:\PROGRA~2\MONO-2~1.8\lib\mono\4.0\System.Configuration.dll
   embedding: C:\PROGRA~2\MONO-2~1.8\lib\mono\4.0\System.Xml.dll
   embedding: C:\PROGRA~2\MONO-2~1.8\lib\mono\4.0\System.Security.dll
   embedding: C:\PROGRA~2\MONO-2~1.8\lib\mono\4.0\System.Windows.Forms.dll
   embedding: C:\PROGRA~2\MONO-2~1.8\lib\mono\4.0\System.Drawing.dll
   embedding: C:\PROGRA~2\MONO-2~1.8\lib\mono\4.0\Accessibility.dll
   embedding: C:\PROGRA~2\MONO-2~1.8\lib\mono\4.0\Mono.WebBrowser.dll
   embedding: C:\PROGRA~2\MONO-2~1.8\lib\mono\4.0\Mono.Posix.dll
   embedding: C:\PROGRA~2\MONO-2~1.8\lib\mono\4.0\System.Data.dll
   embedding: C:\PROGRA~2\MONO-2~1.8\lib\mono\4.0\Mono.Data.Tds.dll
   embedding: C:\PROGRA~2\MONO-2~1.8\lib\mono\4.0\System.Transactions.dll
   embedding: C:\PROGRA~2\MONO-2~1.8\lib\mono\4.0\System.EnterpriseServices.dll
Compiling:
as -o temp.o temp.s

Unhandled Exception: System.ComponentModel.Win32Exception: ApplicationName='sh',
 CommandLine='-c "as -o temp.o temp.s "', CurrentDirectory=''
  at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartIn
fo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown
>:0
  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInf
o startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>
:0
  at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo start
Info) [0x00000] in <filename unknown>:0
  at MakeBundle.Execute (System.String cmdLine) [0x00000] in <filename unknown>:
0
  at MakeBundle.GenerateBundles (System.Collections.ArrayList files) [0x00000] i
n <filename unknown>:0
  at MakeBundle.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ComponentModel.Win32Exception: Applica
tionName='sh', CommandLine='-c "as -o temp.o temp.s "', CurrentDirectory=''
  at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartIn
fo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown
>:0
  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInf
o startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>
:0
  at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo start
Info) [0x00000] in <filename unknown>:0
  at MakeBundle.Execute (System.String cmdLine) [0x00000] in <filename unknown>:
0
  at MakeBundle.GenerateBundles (System.Collections.ArrayList files) [0x00000] i
n <filename unknown>:0
  at MakeBundle.Main (System.String[] args) [0x00000] in <filename unknown>:0

有人能帮我吗。

EDIT:

当我从 Cygwin 直接从 Windows 使用 mkbundle 时发生上述错误,我收到以下错误

'as' command not found

从网上我了解到'as'是一个编译器,我在哪里可以得到它,请帮助我,我不是 Linux 爱好者

4

1 回答 1

1

您需要使用来自类 Unix 工具链(例如 Cygwin)的 mkbundle。

您必须在 Cygwin中安装gcc,gcc-mingw和包。as

这是来自 mkbundle 的手册页

于 2012-05-18T21:09:59.927 回答