本文介绍了Android的NDK:主机'的awk'工具已经过时。请确定NDK_HOST_AWK指向呆子或NAWK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下消息时,我尝试建立我的项目,在命令提示符下在Windows 7上使用本地code。与NDK版本r9d:

I am getting following message when I try to build my project which is using native code with NDK r9d version in command prompt on Windows 7:

process_begin: CreateProcess(NULL, "D:/OSAMAS_THINGS/Softwares/Android_NDK_R9D/android-ndk-r9d-windows-x86_64/android-ndk-r9d/prebuilt/windows-x86_64/bin/awk.exe -f D:/OSAMAS_THINGS/Softwares/Android_NDK_R9D/android-ndk-r9d-windows-x86_64/android-ndk-r9d/build/awk/check-awk.awk", ...) failed.
Android NDK: Host 'awk' tool is outdated. Please define NDK_HOST_AWK to point to Gawk or Nawk !
D:/OSAMA'S_THINGS/Softwares/Android_NDK_R9D/android-ndk-r9d-windows-x86_64/android-ndk-r9d/build/core/init.mk:376: *** Android NDK: Aborting.    .  Stop.

当我重新命名 awk.exe awk_.exe ... \\ Android的NDK-r9d \\ prebuilt \\ WINDOWS-x86_64的\\ BIN 文件夹中,我得到以下信息:

When I rename awk.exe to awk_.exe in ...\android-ndk-r9d\prebuilt\windows-x86_64\bin folder, I get the following message:

'awk' is not recognized as an internal or external command,
operable program or batch file.
Android NDK: Host 'awk' tool is outdated. Please define NDK_HOST_AWK to point to Gawk or Nawk !
D:/OSAMA'S_THINGS/Softwares/Android_NDK_R9D/android-ndk-r9d-windows-x86_64/android-ndk-r9d/build/core/init.mk:376: *** Android NDK: Aborting.    .  Stop.

我试着计算器其他答案,但没有解决问题。
在这两种情况下我得到的错误。
请帮我解决这个错误...

I tried other answers on stackoverflow, but that did not solved the problem.In both the cases I am getting error.Please help me solve the error...

推荐答案

我遇到了同样的问题,我还检查计算器评论和改变。
但是,我不能这个问题。
我怀疑64位NDK。
无论如何,我改变了64位NDK为32位和Cygwin也。
然后我解决了问题。
有niceday

I met same issue, I also checked stackoverflow comment and changed.But, I couldn't this issue.I doubted 64bit ndk.Anyway, I changed 64bit ndk to 32bit and cygwin also.and Then I solved issue. Have a niceday

这篇关于Android的NDK:主机'的awk'工具已经过时。请确定NDK_HOST_AWK指向呆子或NAWK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 02:05