2012-07-22 48 views
1

我工作过我的我:驱动麻烦从源通过Cygwin在Windows编译单

我已经下载了以下单源文件单2.11.2.tar.bz2 我已经安装Windows版本的单v2.11.2来“I:\单-2.11.2”

我安装了Cygwin按照以下网页http://shana.worldofcoding.com/en/mono_cygwin_tutorial.html

我换成发现下面的说明“make.exe”与来自mono网站的指令一致。我必须得到一个文件“cygintl-2.dll”,它位于cygwin包中libintl2/libintl2-0.12.1-3

我添加了以下我的.bashrc文件。我不得不改变“C /单声道-2.11.2/bin中”“I /单-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目录/单声道/

所以我迪尔斯样子:

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目录/单/单并运行” ./autogen.sh - -prefix =/usr/local“来自cygwin终端

然而这并不奏效。从运行上述命令/ 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 

回答

2

./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 ouptut的结束:

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 
+0

这是从输出 检查是否建立静态库的最后几行.. 。是 检查如何运行C++预处理器.../lib/cpp configure:error:in'/ usr/src目录/单声道“: 配置:错误:C++预处理程序‘/ lib目录/ CPP’失败完整性检查 见'的config.log”了解详情 我会下载CPP包,让你知道如何去 – Eminem 2012-07-22 15:01:59

+0

我需要安装gnu C++编译器(g ++) 我给你建议autogenfails和检查日志 – Eminem 2012-07-22 15:33:08