如何在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屋!