zoukankan      html  css  js  c++  java
  • 解决Android NDK: Host 'awk' tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !

    想在windows环境下使用NDK-BUILD,于是安装了cygwin和ndk,编译JNI的时候出了下面的错误:

    $ ./ndk-build -C samples/hello-jni
    D:android_sdk_windowsandroid-ndk-r7prebuiltwindowsinawk.exe: can't open file /cygdrive/d/android_sdk_windows/android-ndk-r7/build/awk/check-awk.awk
     source line number 1 source file /cygdrive/d/android_sdk_windows/android-ndk-r7/build/awk/check-awk.awk
     context is
             >>>  <<<
    Android NDK: Host 'awk' tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !
    make: 进入目录“/cygdrive/d/android_sdk_windows/android-ndk-r7/samples/hello-jni”
    /cygdrive/d/android_sdk_windows/android-ndk-r7/build/core/init.mk:258: *** Android NDK: Aborting.    。 停止。
    make: 离开目录“/cygdrive/d/android_sdk_windows/android-ndk-r7/samples/hello-jni”

    日志提示是awk过期,这是因为NDK自带的awk.exe程序过期,把它删除,使用aygwin的awk工具就好了。

    解决方法:直接删除android-ndk-r7prebuiltwindowsinawk.exe文件

  • 相关阅读:
    delphi try except语句 和 try finally语句用法以及区别
    正向代理与反向代理(转)
    kbmMW功能
    problem 202,263、232、21、231
    leetcode day8
    leetcode day7
    VS2013 opencv2.4.8
    web 前端routine
    leetcode day6
    leetcode day5
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13318683.html
Copyright © 2011-2022 走看看