从源代码(不是git)构建Mono失败,mcs:未找到命令



在Android设备上从下载的源代码构建mono。运行make - get-monolite-latest,仍然得到以下错误

make[2]: Entering directory `/bld/mono/mono-4.0.0/runtime'
if test -w /bld/mono/mono-4.0.0/mcs; then :; else chmod -R +w /bld/mono/mono-4.0.0/mcs; fi
cd /bld/mono/mono-4.0.0/mcs && make --no-print-directory -s NO_DIR_CHECK=1 PROFILES='binary_reference_assemblies net_4_5 xbuild_12 xbuild_14 monodroid  ' CC='gcc --sysroot=/usr/gcc-4.9.2/sysroot' all-profiles
make[6]: mcs: Command not found
make[6]: *** [build/deps/basic-profile-check.exe] Error 127
*** The compiler 'mcs' doesn't appear to be usable.
*** Trying the 'monolite' directory.
Illegal instruction
make[8]: *** [build/deps/basic-profile-check.exe] Error 132
*** The contents of your 'monolite' directory may be out-of-date
*** You may want to try 'make get-monolite-latest'

我已经找到了我认为是运行时/_tmpdir/bin中的mcs可执行文件,但将其复制到构建似乎正在寻找它的地方并没有帮助。

如何解决这个问题?

如错误消息所示:您可能想尝试命令'make get-monolite-latest'

你需要一个特定的mono版本来构建mono 4,我认为它是>= 3.8左右。在这种情况下,单体岩应该会有所帮助。

最新更新