如何在Android项目使用NDK?项目、如何在、Android、NDK

2023-09-05 07:02:47 作者:上帝不该造就孤单的人

我需要使用一些原生的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.