我尝试使用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。 请帮我! Thandks
答案 0 :(得分:0)
看起来Eclipse正在调用ndk-build.cmd
,但你的shell是一个Cygwin / MinGW shell。您需要调用ndk-build
脚本,而不是ndk-build.cmd