Compilation 在windows上通过cygwin从源代码编译mono时出现问题

Compilation 在windows上通过cygwin从源代码编译mono时出现问题,compilation,mono,cygwin,Compilation,Mono,Cygwin,我用我的I:驱动器工作 我已经下载了以下mono源文件mono-2.11.2.tar.bz2 我已将windows版本的mono v2.11.2安装到“I:\mono-2.11.2” 我按照以下网页上的说明安装了cygwin 按照说明,我将“make.exe”替换为mono网站上的。我必须再获得一个文件“cygintl-2.dll”,它驻留在cygwin包libintl2/libintl2-0.12.1-3 我添加了以下.bashrc文件。我不得不将“c/Mono-2.11.2/bin”更改为“

我用我的I:驱动器工作

我已经下载了以下mono源文件mono-2.11.2.tar.bz2 我已将windows版本的mono v2.11.2安装到“I:\mono-2.11.2”

我按照以下网页上的说明安装了cygwin

按照说明,我将“make.exe”替换为mono网站上的。我必须再获得一个文件“cygintl-2.dll”,它驻留在cygwin包libintl2/libintl2-0.12.1-3

我添加了以下.bashrc文件。我不得不将“c/Mono-2.11.2/bin”更改为“I/Mono-2.11.2/bin”

我将我的mono源放在指定的文件夹下:/usr/src/mono/

所以我的目录看起来像:

i:
i:\cygwin\
i:\cygwin\usr\src\mono
i:\cygwin\usr\src\mono\mono
i:\cygwin\usr\src\mono\mcs  etc   etc
i:\Mono-2.11.2\bin etc
现在,说明说我必须将dirs改为/usr/src/mono/mono,并从cygwin终端运行“/autogen.sh--prefix=/usr/local”

然而,这是行不通的。从/usr/src/mono/运行上述命令可以正常工作

现在问题来了。下一条指令是运行“make”。然而,这带来了:

$ make
make: *** No targets specified and no makefile found.  Stop.
我甚至试着从/usr/src/mono/mono目录运行它。还是不走运。 有人能建议我应该怎么做才能在Windows7上构建mono源代码吗

Update:  
I needed to install the **gnu c++ compiler (g++)**. I just ran the cygwin setup again, searched for g++ and installed that. The autogen.sh ran to completion

/autogen.sh--prefix=/usr/local
输出的最后几行应该是 如下图所示,最后键入make to compile。而且 在同一目录中生成
Makefile

我认为在你的情况下,
/autogen.sh
失败了。你可以保留一个日志文件 检查它在抱怨什么。

更多信息:

/autogen.sh
输出的结尾:


这是检查是否构建静态库的输出的最后几行。。。是的,检查如何运行C++预处理器…LIb/CPP配置:错误:在 CONFIG.log。更多细节,我将下载CPP包,并让您知道它是如何安装GNU C++编译器(G++)的。我给您指出了AutoGoogleWordNo.log和检查日志的要点。
Update:  
I needed to install the **gnu c++ compiler (g++)**. I just ran the cygwin setup again, searched for g++ and installed that. The autogen.sh ran to completion
./autogen.sh --prefix=/usr/local 2>&1 | tee autogen.log
config.status: executing quiet-libtool commands
config.status: executing default commands

        mcs source:    mcs
        olive source:  

   Engine:
    GC:        sgen and bundled Boehm GC with typed GC and parallel mark
    TLS:           __thread
    SIGALTSTACK:   yes
    Engine:        Building and using the JIT
    oprofile:      no
    BigArrays:     no
    DTrace:        no
    LLVM Back End: no (dynamically loaded: no)

    Libraries:
    Moon Profile:  no (boehm)
    MonoDroid:     no
    MonoTouch:     no
    Mobile:        no
    JNI support:   IKVM Native
    libgdiplus:    assumed to be installed
    zlib:          system zlib


Now type `make' to compile