我遵循本教程:http ://www.mono-project.com/docs/compiling-mono/windows/
我已经从 GitHub 下载了 Mono 源代码(截至今天)。
我的自动生成命令行如下:
sh autogen.sh --host=i686-pc-mingw32
我有两个自动生成警告,没有错误(见下文)。然后我运行make
,我收到错误:
Makefile:2463: recipe for target 'libmonoruntime_la-threadpool.lo' failed
make[3]: *** [libmonoruntime_la-threadpool.lo] Error 1
make[3]: Leaving directory '/cygdrive/c/projects/mono/mono/mono/metadata'
Makefile:436: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/cygdrive/c/projects/mono/mono/mono'
Makefile:520: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/cygdrive/c/projects/mono/mono'
Makefile:447: recipe for target 'all' failed
make: *** [all] Error 2
我不知道如何解决这个错误。libmonoruntime_la-threadpool.lo
包含:
# libmonoruntime_la-assembly.lo - a libtool object file
# Generated by doltcompile, not libtool
pic_object='.libs/libmonoruntime_la-assembly.o'
non_pic_object='libmonoruntime_la-assembly.o'
我已经检查过,提到的两个文件libmonoruntime_la-assembly.o
都存在。
完整make
的输出可以在这里找到:http: //pastebin.com/WyytVHXq
我也不知道这些错误是否取决于 autogen 警告。为了完整起见,警告是:
mono/unit-tests/Makefile.am:7: warning: variable 'TEST_LDFLAGS' is defined but no program or
mono/unit-tests/Makefile.am:7: library has 'TEST' as canonical name (possible typo)
/cygdrive/c/projects/mono/mono/libgc/missing: Unknown `--is-lightweight' option
Try `/cygdrive/c/projects/mono/mono/libgc/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
至于第二个警告,我一直在寻找更新的 libgcmissing
脚本,但找不到。