获取android 4.0代码部分请参考其官方文档
1
2
1 make
fedora 16默认的make版本号是3.82,而android 4.0可编译的make版本号最高为3.81,现将make降到3.81,rpm包下载地址 ,yum remove make,然后再rpm -i make-3.81-19.fc13.i686.rpm,另外一种方法是更换f13的密钥文件,稍显复杂些。为了防止以后的系统更新致使make也随之更新,vi /etc/yum.conf,添加exlude=make。不过make降级后有些软件也会被remove掉,如google-chrome,需要再yum install下。
2 gperf
yum install gperf.i686
3 perl switch
4 libX11.so
vi development/tools/emulator/opengl/host/renderer/Android.mk,添加语句
LOCAL_LDLIBS += -lX11
5 slang
vi frameworks/compile/slang/Android.mk
将local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter -Werror改为local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter
6 external/oprofile
vi external/oprofile/pp/Android.mk
将LOCAL_CFLAGS := $(common_host_cflags)改为LOCAL_CFLAGS := $(common_host_cflags) -fpermissive
vi external/oprofile/libpp/Android.mk
将LOCAL_CFLAGS := $(common_host_cflags)改为LOCAL_CFLAGS := $(common_host_cflags) -fpermissive
7 external/gtest
vi external/gtest/include/gtest/internal/gtest-param-util.h,添加语句
#include
8 启动模拟器
out/host/linux-x86/bin/emulator -system out/target/product/generic/system.img -data out/target/product/generic/userdata.img -ramdisk out/target/product/generic/ramdisk.img
9 执行android命令报错
export ANDROID_SWT=/root/bin/out/host/linux-x86/framework
阅读(2885) | 评论(0) | 转发(0) |