按C与Android NDK [英] Use C with Android ndk
问题描述
我想开发一个Android项目,使从Java code简单的调用本地C code。 我指的这个链接,我的指导:<一href="http://mobile.tutsplus.com/tutorials/android/ndk-tutorial/">http://mobile.tutsplus.com/tutorials/android/ndk-tutorial/
I am trying to develop a Android project that makes a simple call from Java code to native C code. I refer this link for my guidance: http://mobile.tutsplus.com/tutorials/android/ndk-tutorial/
当我编译native.c 使用
when I am compiling the native.c using
:ndk-build
它表明:
ndk-build command not found
谁能给出原因?
Could anyone give the reason for this?
感谢
推荐答案
从你的问题的描述,我认为你的路径没有设置。您需要设置你的NDK的路径在您的环境变量。
From your question description, i assume that your path is not set. You need to set your NDK path in your environment variable.
有关详细信息,您可以访问以下网站。
for more information you can visit following site.
- http://marakana.com/forums/android/examples/49.html
- HTTP://$c$c.google.com/ P / awesomeguy /维基/ JNITutorial#Unpack_Android_NDK
- 如何安装和构建NDK与Eclipse?
- http://marakana.com/forums/android/examples/49.html
- http://code.google.com/p/awesomeguy/wiki/JNITutorial#Unpack_Android_NDK
- How to install and Build NDK with eclipse?
这篇关于按C与Android NDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!