2013-07-26 106 views
1

我嘗試編譯protobuf的2.5與NDK.But當我建立的Protobuf 2.5在Eclipse中,我得到錯誤信息,如下面的控制檯的Android NDK編譯的Protobuf錯誤

bash "E:\\Android\\android-ndk-r8e\\ndk-build.cmd" all 
E:\Android\android-ndk-r8e\ndk-build.cmd: line 1: @echo: command not found 
E:\Android\android-ndk-r8e\ndk-build.cmd: line 2: rem: command not found 
E:\Android\android-ndk-r8e\ndk-build.cmd: line 6: rem: command not found 
E:\Android\android-ndk-r8e\ndk-build.cmd: line 7: goto: command not found 
E:\Android\android-ndk-r8e\ndk-build.cmd: line 8: :FOO: command not found 
E:\Android\android-ndk-r8e\ndk-build.cmd: line 27: syntax error: unexpected end of file 

我沒有編輯NDK建造。 CMD。 請幫幫我! Thandks

回答

0

它看起來像Eclipse叫ndk-build.cmd,但你的shell是一個Cygwin/MinGW外殼。您需要撥打ndk-build腳本,而不是ndk-build.cmd