编译Android donut
2010-07-13 21:46:00 来源:WEB开发网Type the following command to install it:
$ tar -xvzf Android_PlatformRel_Linux_MHLV_2010WW05.tgz -C [installed_directory]
Building Android
Download android donut release into [Android_directory]
$ repo init -u git://android.git.kernel.org/platform/manifest -b donut
$ repo sync
Notes: please refer manifest file of [installed_directory]/pxa_donut/src/donut/manifest.xml
Apply PXA patches by following command
$ cp [installed_directory]/pxa_donut/src/donut/donut_patches/* [Android_directory]/ -rf
$ cd [Android_directory]/
$ ./apply_donut_patches.sh
$ tar zxvf [installed_directory]/pxa_donut/src/donut/vendor.tgz -C [Android_directory]/
如果之前装了 java6 sdk ,但编译 Android 需要 jdk5 ,所以先把 Java6 屏蔽掉。
lua@ubuntu:~$ ls /usr/bin/j*
/usr/bin/java /usr/bin/javaws /usr/bin/jexec /usr/bin/jockey-text
/usr/bin/java_vm /usr/bin/jcontrol /usr/bin/jockey-gtk /usr/bin/join
lua@ubuntu:~$ sudo mv /usr/bin/java /usr/bin/java.bak
lua@ubuntu:~$ sudo mv /usr/bin/javaws /usr/bin/javaws.bak
lua@ubuntu:~$ sudo mv /usr/bin/java_vm /usr/bin/java_vm.bak
lua@ubuntu:~$ ls /usr/bin/j*
/usr/bin/java.bak /usr/bin/jcontrol /usr/bin/jockey-text
/usr/bin/java_vm.bak /usr/bin/jexec /usr/bin/join
/usr/bin/javaws.bak /usr/bin/jockey-gtk
比如 jdk-1_5_0_21-linux-i586.bin 放到如下目录
/home/lua/Downloads
在 shell 窗口执行 sh jdk-1_5_0_21-linux-i586.bin
jdk5 将安装到 /home/lua/Downloads/jdk1.5.0_21
将 /home/lua/Downloads/jdk1.5.0_21/bin 添加到 PATH
lua@ubuntu:~$ echo $PATH
/home/lua/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/lua/arm-marvell-linux-gnueabi/bin:/home/lua/bin:/home/lua/work/android-sdk-linux_86/tools:/home/lua/work/eclipse:/home/lua/Downloads/jdk1.5.0_21/bin
- ››Android 当修改一些代码时,使用什么编译命令可以最...
- ››Android 如何添加一个apk使模拟器和真机都编译进去...
- ››Android 修改Camera拍照的默认保存路径
- ››Android 如何修改默认输入法
- ››android开发中finish()和System.exit(0)的区别
- ››Android手势识别简单封装类
- ››android中查看项目数字证书的两种方法
- ››Android中获取IMEI码的办法
- ››android 相机报错 setParameters failed
- ››Android重启运用程序的代码
- ››Android为ListView的Item设置不同的布局
- ››android bitmap与base64字符串的互相转换
更多精彩
赞助商链接