Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1136181
  • 博文数量: 276
  • 博客积分: 8317
  • 博客等级: 少将
  • 技术积分: 2329
  • 用 户 组: 普通用户
  • 注册时间: 2006-09-12 08:17
个人简介

http://ads.buzzcity.net/adpage.php?partnerid=40096

文章分类

全部博文(276)

文章存档

2013年(1)

2012年(38)

2011年(102)

2010年(85)

2009年(45)

2008年(5)

分类: 嵌入式

2011-05-18 13:00:47

These page explains how to use NDK for android-x86
Introduction

As the first step to support android ndk for Android-X86. we have created a prebuilt package for user to test. This wiki page explains how to use this ndk

Details
  1. download the ndk-x86.tgz from the download list.
  2. tar zxfv ndk-x86.tgz
  3. cd ndk
  4. build/host-setup.sh
  5. build something by using command like below:
  6. make TARGET_PRODUCT=eeepc APP=hello-jni
Please send you questions to android-x86 discussion group. ( )


Foryo
For the foryo, you don't need to download the tarball mentioned above. Here is the new steps:

You may just use the NDK shipped with froyo-x86
source tree.

To build the hello example,
$ cd ndk
$ ./ndk-build -C samples/hello-jni

To build more complex examples
like san-angles using OpenGL, you
need to build the required system libs
first since they are not in NDK prebuilt libs.

On top of froyo-x86 tree

$ . build/envsetup.sh
$ lunch vm-eng (or any target you'd like)
$ m libGLESv1_CM

Then you can build the example by

$ cd ndk
$ ./ndk-build -C samples/san-angeles

Then build the x86 apk by Eclipse or Ant as usual. 

阅读(767) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~