如何在Android项目使用NDK? [英] How to use NDK in android project?
问题描述
我需要使用一些原生的C / C ++在我的项目,所以我需要使用NDK。有没有一种简单的方法来设置它在Eclipse?
I need to use some native c/c++ in my project, so I need to use the NDK. Is there an easy way to set it up in eclipse?
感谢。
推荐答案
好吧,以后我花了一些时间尝试,我可以说,对于一个初学者,开始在Eclipse中使用NDK的最好方法是先过这教程: http://marakana.com/forums/android/examples/49.html 简单地创建了JNI文件夹中必要的文件(但不要做别的事情)。然后,你应该阅读 http://mobilepearls.com/labs/ndk-builder-in -eclipse / 并按照步骤。然后,你准备好了。
Ok, after I spent some time experimenting, I can say that the best way for a beginner to start using NDK in eclipse is first to go over this tutorial: http://marakana.com/forums/android/examples/49.html and simply create the necessary files for the jni folder (but don't do anything else). Then you should read this http://mobilepearls.com/labs/ndk-builder-in-eclipse/ and follow the steps. Then you are ready.
这篇关于如何在Android项目使用NDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!