Android NDK revision 7 Host 'awk' tool is outdated error

后端 未结 5 1207
小鲜肉
小鲜肉 2020-12-09 08:57

I am getting \"Android NDK: Host \'awk\' tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !\" error on latest android ndk revision 7.

5条回答
  •  借酒劲吻你
    2020-12-09 09:49

    I think the problem is $(HOST_AWK) not defined correctly and local prebuild awk.exe doesn't work. Thus prebuild awk.exe should be deleted or renamed and use gawk if awk is not defined.

    To solve this problem:

    1 - Rename \android-ndk\prebuilt\windows\bin\awk.exe to \android-ndk\prebuilt\windows\bin\awk_.exe.

    2 - Open \android-ndk\build\core\init.mk

    Replace

    HOST_AWK := $(strip $(HOST_AWK))
    ifndef HOST_AWK
        HOST_AWK := awk
    endif
    

    with

    HOST_AWK := $(strip $(HOST_AWK))
    ifndef HOST_AWK
        HOST_AWK := gawk
    endif
    

    Note that awk renamed to gawk.

提交回复
热议问题