1. Download google android ndk (native development kit)http://developer.android.com/sdk/ndk/index.html

2. Download busybox sourcehttp://busybox.net/

3. Uncompress the ndk compressed file to android-ndk-r6b automatically

4.change directory to: android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/arm-linux-androideabi/lib

5. $cp ../../../../../../platforms/android-9/arch-arm/usr/lib/* .

6.change directory to: android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/arm-linux-androideabi/include

7. $cp ../../../../../../platforms/android-9/arch-arm/usr/include/* .

step 4 - step 7: to move the files that will be used for building busybox


8. change to busybox source directory: make menuconfig, before that make sure libncurses5-dev packages is installed.

9. Busybox settings >> General Configuration >>




10. Busybox Settings >> Build Options



10.Cross Compiler prefix: <NDK_PATH>/android-ndk-r6/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-


11. Set environment :

$ export ARCH=arm; export CROSS_COMPILE=/home/tied/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-

12. make: there are many problem below while making

>> missing many head files: ln -sf <platform-include-dir> <toolchain-include-dir>

>> missing sys/kd.h: ln -sf include/linux/kd.h to include/sys/kd.h

>> errors on function strchrnul from editors/sed.c

To add the definition of the function for solving this bug.



>>


更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. UI控件之显示文本控件TextView(上)
  2. 研究了有一个月android下手机录制视频做
  3. Android—android与js交互以及相互传参
  4. 登录时旋转等待效果
  5. Android 博客目录整理
  6. 从NDK在非Root手机上的调试原理探讨Andro
  7. Android开发之一些问题的解决办法
  8. android实现进程注入
  9. 适用于 AIDE - Android Java IDE 的幸运
  10. Android向服务器传接和接收数据的方法汇