您的位置:首页 > 移动开发 > Android开发

Android4.1.2系统编译全过程

2013-10-22 20:58 393 查看
使用Ubuntu12编译android4.1.2系统源码。
准备条件:
1 、安装sun jdk1.6,使用java -v 查看
2、安装gcc ,使用gcc -v查看。
3、安装g++,使用g++ -v查看。
4、确保系统安装了git软件,如果没有安装使用sudo apt-get install git进行安装。

其它可能需要的配置(建议执行下)

1、/bin/bash: bison: command not found
make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp] Error 127
解决方法:sudo apt-get install bison

2、make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp] Error 127
解决方法: sudo apt-get install flex

3、make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/css/CSSPropertyNames.h] Error 25
解决方法:sudo apt-get install gperf

4、make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] 错误 1

解决:
  sudo apt-get install libc6-dev-i386

注意:如果提示 /work/android/Android4.1.2/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/http://www.cnblogs.com/http://www.cnblogs.com/i686-linux/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory.

command: sudo apt-get install apt-file

command: sudo apt-file update

错误:
5、make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp] error 1

解决:
  sudo apt-get install g++-multilib

参考:
android4.1.1系统编译全过程
常见错误分析

http://blog.csdn.net/jeff_dong/article/details/7896029

http://www.cnblogs.com/jvlstudio/archive/2011/05/14/2046562.html

/article/5952328.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: