2012-07-26 137 views
4

我有一個本地部分的android項目。現在,我想使Eclipse編譯所有的東西,但在本地編譯期間,它給了我這個錯誤:構建ndk庫時出錯

sh ndk-build all 
ERROR: You are using a non-Cygwin compatible Make program. 
Currently using: C:/cygwin/bin/make 

To solve the issue, follow these steps: 

1. Ensure that the Cygwin 'make' package is installed. 
    NOTE: You will need GNU Make 3.81 or later! 

2. Define the GNUMAKE environment variable to point to it, as in: 

    export GNUMAKE=/usr/bin/make 

3. Call 'ndk-build' again. 

現在我可以從Cygwin的編譯它和它的作品。它也可以在我的另一臺電腦上使用完全相同路徑的eclipse。

我發現,如果我從cygwin啓動ndk-build它是好的,但如果我啓動「sh ndk-build」它會給我日蝕的錯誤。

我認爲這是問題,但我不知道爲什麼在sh前面加上命令不起作用(也是用bash預先給出了錯誤)。

有人可以幫忙嗎?

預先感謝您。

+0

您正在使用哪個NDK版本? – Phonon 2012-07-26 17:30:22

+0

我正在使用NDK r8 – emax79 2012-07-26 19:53:48

回答

13

已解決問題, ndk路徑在eclipse偏好設置中沒有正確設置。 (在eclipse窗口 - >首選項 - > Android-> NDK-> NDK_Location)