2012-07-22 26 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