NDK构建失败 [英] NDK Build failing
问题描述
是新来使用NDK工作。看到一些帖子和周围的Googling我发现使用NDK编译我的家乡文件的方式。我安装NDK R7C。然而,当我使用的命令NDK的构建我得到了以下错误:
Am new to working with ndk. Seeing some posts and googling around i found the way to compile my native files using NDK. I installed ndk r7c. However when i used the command ndk-build i got the following error:
/cygdrive/d/android-ndk-r7c-windows/android-ndk-r7c/ndk-build
/cygdrive/d/android-ndk-r7c-windows/android-ndk-r7c/ndk-build: line 40: dirname: command not found
/cygdrive/d/android-ndk-r7c-windows/android-ndk-r7c/ndk-build: line 78: uname: command not found
ERROR: Unknown host operating system:
我对项目目录是:
My directory for the project was:
Haris Riaz@HarisRiaz-PC /cygdrive/d/reader-2/android/jni
,我无法知道问题的性质。请帮我什么是这个错误的,以及如何解决它。谢谢!
Am unable to know the nature of the problem. Please help me whats this error about and how to solve it. Thank You!
推荐答案
从哈里斯里亚兹@ HarisRiaz-PC
我可以扣除,你是在Linux上运行。但根据 Android的NDK-R7C窗口
,您要运行一个Windows版本的流NDK。和错误:未知的主机操作系统:
证实了这一点。从 rel=\"nofollow\">,你应该罚款。
From Haris Riaz@HarisRiaz-PC
I can deduct that you are running on Linux. But according to android-ndk-r7c-windows
, you are trying to run a windows version ow the NDK. And ERROR: Unknown host operating system:
confirms this. Download Linux version of the NDK from here and you should be fine.
这篇关于NDK构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!