(NotDoneYet)Build busybox for android
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.
>>
更多相关文章
- 代码中设置drawableleft
- android 3.0 隐藏 系统标题栏
- Android开发中activity切换动画的实现
- Android(安卓)学习 笔记_05. 文件下载
- Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
- 技术博客汇总
- android 2.3 wifi (一)
- AndRoid Notification的清空和修改
- Android中的Chronometer