获取cygwin的认识到我的awk更新为Android NDK? [英] Getting cygwin to recognise my updated awk for the android ndk?

查看:312
本文介绍了获取cygwin的认识到我的awk更新为Android NDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这开始了作为一个Android的问题,但我想成为一个Linux / Cygwin的问题。

This starts off as an Android question but I think becomes a linux/cygwin question.

而Android NDK附带的awk不适当的版本 - 的这里权威报告 - 所以我试图让Cygwin来接受我不想使用NDK AWK,而是利用NAWK或呆子,而不是

The Android ndk is shipped with an unsuitable version of awk - definitive report here - so I'm trying to get cygwin to accept that I don't want to use the ndk awk, but to use nawk or gawk instead.

铭记我一无所知的Linux / Cygwin的,这是我的发现:

Bearing in mind I know nothing about linux/cygwin, these are my discoveries:

问题的第一部分已经回答了<一个href=\"http://stackoverflow.com/questions/8384213/android-ndk-revision-7-host-awk-tool-is-outdated-error\">here所以我知道我需要重新命名现有AWK作为awk_所以它不是拿起(完成)。我需要设置Cygwin环境变量HOST_AWk看呆(或NAWK - 这两者与cygwin的供给)。最简单的方法来做到这一点(对我来说)是设置环境变量在Windows中 - 然后cygwin的运行时,它导入所有的东西,环境从Windows

The first part of the question has already been answered here so I know I need to rename the existing awk as awk_ so it isn't picked up (done). And I need to set the cygwin environment variable HOST_AWk to gawk (or nawk - both of which are supplied with cygwin). The easy way to do this (for me) is to set that environment variable in Windows - then when cygwin runs it imports all the environment stuff from Windows.

所以,我想我知道该怎么做,但似乎HOST_AWK的价值并没有被拾起,当我尝试在Eclipse中进行构建直接(编译所有)或从bash的Cygwin的:

So I think I know what to do, but the value of HOST_AWK doesn't seem to be picked up when I try to do a build either directly in eclipse (build all) or in cygwin from bash:

Barry@BARRY /cygdrive/c/data/eclipse/camfeeda/jni
$ ndk-build
make: awk: Command not found
Android NDK: Host 'awk' tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !
/cygdrive/c/DATA/eclipse/android/android-ndk-r7/build/core/init.mk:258: *** Android NDK: Aborting.    .  Stop.

Barry@BARRY /cygdrive/c/data/eclipse/camfeeda/jni
$ printenv HOST_AWK
c:\cygwin\bin\gawk.exe

正如你看到我已经设置HOST_AWK在正确的位置,以gawk.exe,但我已经试过:

As you see I have set HOST_AWK to gawk.exe in the correct location, but I've tried:

HOST_AWK=c:\cygwin\bin\gawk.exe
HOST_AWK=c:\cygwin\bin\gawk
HOST_AWK=c:\cygwin\bin\nawk.exe
HOST_AWK=c:\cygwin\bin\nawk

和我一直在使用着的,这是问题的情况下斜线试过,但我仍然得到同样的错误:(

And I've tried using forward slashes in case that was the problem, but I still get the same error :(

我觉得,如果我那么近,但我不能做的最后一步。为什么不NDK的构建读取环境变量HOST_AWK并做dratted工作?任何人都可以把我从我的痛苦?

I feel as if I am so close, but I can't make the last step. Why won't ndk-build read the environment variable HOST_AWK and do the dratted job?! Can anyone put me out of my misery?

非常感谢

巴里

编辑:我也试过:

HOST_AWK=/cygdrive/c/cygwin/bin/gawk.exe

等,但没有喜悦。

etc, but no joy.

乙。

推荐答案

对于我来说,只是删除/重命名awk.exe附带NDK-R7。他们一切正常。无需设置HOST_AWK环境变量。

For me it's just deleting/renaming awk.exe that is shipped with ndk-r7. And they everything works. No need for setting HOST_AWK env variable.

这篇关于获取cygwin的认识到我的awk更新为Android NDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆