【问题标题】:Trouble compiling mono from source via cygwin on windows在 Windows 上通过 cygwin 从源代码编译单声道时遇到问题
【发布时间】:2012-07-20 23:54:48
【问题描述】:

我在 i: 开车

工作

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

我按照以下网页http://shana.worldofcoding.com/en/mono_cygwin_tutorial.html上的以下说明安装了cygwin

我按照说明将 "make.exe" 替换为来自 mono 网站的那个。我必须再获得一个位于 cygwin 包 libintl2/libintl2-0.12.1-3

中的文件“cygintl-2.dll”

我添加了以下我的 .bashrc 文件。我不得不将 "c/Mono-2.11.2/bin" 更改为 "i/Mono-2.11.2/bin"

PATH=.:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/i/Mono-2.11.2/bin
PKG_CONFIG_PATH=.:/lib/pkgconfig:/cygdrive/i/Mono-2.11.2/lib/pkgconfig
LD_LIBRARY_PATH=.:/usr/local/lib:/usr/lib:/lib:/cygdrive/i/Mono-2.11.2/lib
export PATH PKG_CONFIG_PATH LD_LIBRARY_PATH 

我将单声道源放在指定的文件夹下:/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

现在说明说我必须将目录更改为 /usr/src/mono/mono 并从 cygwin 终端运行 "./autogen.sh --prefix=/usr/local" p>

但是这不起作用。从 /usr/src/mono/ 运行上述命令可以正常工作。

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

$ make
make: *** No targets specified and no makefile found.  Stop.

我什至尝试从 /usr/src/mono/mono 目录运行它。仍然没有运气。 有人可以建议我应该怎么做才能在 Windows 7 上构建单声道源吗?

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

【问题讨论】:

    标签: compilation mono cygwin


    【解决方案1】:

    ./autogen.sh --prefix=/usr/local 输出的最后几行应该 看起来像下面带有Now type make to compile 的结尾。而且它 在同一目录中生成Makefile

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

    ./autogen.sh --prefix=/usr/local 2>&1 | tee autogen.log
    

    更多信息:http://en.wikipedia.org/wiki/GNU_build_system

    ./autogen.sh 输出结束:

    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
    

    【讨论】:

    • 这是检查是否构建静态库的输出的最后几行...是的,检查如何运行 C++ 预处理器... /lib/cpp configure: error: in /usr/src/mono': configure: error: C++ preprocessor "/lib/cpp" fails sanity check See config .log' 以获取更多详细信息,我将下载 cpp 包并让您知道它是如何进行的
    • 我需要安装 gnu c++ 编译器 (g++) 我给你建议 autogenfails 和检查日志的要点
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-09-23
    • 1970-01-01
    • 2018-12-23
    • 1970-01-01
    • 2016-11-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多