如何使用NDK?与“世界你好”启动应用程序如何使用、应用程序、你好、世界

2023-09-05 06:23:24 作者:浪久己孤

我想看看用C / C ++中的'Hello World程序,但取得了在Android上运行。

I would like to see a 'Hello world' program written in C/C++ but made to run on Android.

我知道这是可能通过使用NDK和JNI调用。但不能使它发挥作用。没有导游网上是有帮助的。

I know this is possible by using NDK and JNI calls. But not able to make it work. No guides online are helpful.

需要知道上手。

我开发的Windows 7计算机,并使用Eclipse放心。

I am developing on Windows 7 machine and also using Eclipse for ease.

Android的安装路径:C:\ Program Files文件\机器人\ Android的SDK-窗口 和NDK我已提取到C:\ Program Files文件\机器人\的Andr​​oid NDK-R5

Android installation path: C:\Program Files\Android\android-sdk-windows and NDK I have extracted to: C:\Program Files\Android\android-ndk-r5

如何导入NDK偏食? 如何使用C / C ++中的Andr​​oid?

如果我能得到运行一个简单的世界你好我可以设计我的大部分敏感的code与C ++的帮助

If I could get help running a simple 'hello world' I can design most of my sensitive code with C++.

推荐答案

有在android-NDK-R5文件夹样品+有一个很好的一步一步的教程:

There are samples in the android-ndk-r5 folder + there is a nice step-by-step tutorial:

http://developer.android.com/sdk/ndk/overview.html#samples

没有借口,纨绔子弟。你只需要阅读(看看的的探索HELLO-JNI样品的部分)。

No excuses, dude. You just have to read (take a look at the Exploring the hello-jni Sample section).

 
精彩推荐