1

我尝试使用 NDK 编译 ProtoBuf 2.5。但是当我在 Eclipse 中构建 ProtoBuf 2.5 时,我在控制台中收到如下错误信息

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-build.cmd。请帮我!谢谢

4

1 回答 1

0

看起来 Eclipse 正在调用ndk-build.cmd,但您的 shell 是 Cygwin/MinGW shell。您需要调用ndk-build脚本,而不是ndk-build.cmd

于 2015-12-02T16:15:58.083 回答