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
准备条件:
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
相关文章推荐
- 天天记录 - Ubuntu系统再次编译android 4.1.2遇到问题
- Android编译系统环境初始化过程分析
- Android编译系统之环境初始化过程分析
- Android编译过程总结及android中各种img文件的作用以及系统启动过程
- Android之编译系统初始化过程
- Android编译系统环境初始化过程分析
- Android编译系统环境初始化过程分析
- Android系统源代码的下载与编译过程总结
- android4.1.1系统编译全过程
- Android系统编译过程分析
- Android系统编译过程分析
- Android编译过程总结及android中各种img文件的作用以及系统启动过程
- Android编译系统环境初始化过程分析
- android4.1.1系统编译全过程
- Android 4.4.2 SELinux 与系统关系详解一: mac_permissions.xml 生成、编译过程分析
- Android系统编译过程分析
- Android系统源码编译全过程——下载Android源文件并编译
- Android编译系统环境初始化过程分析
- Android编译系统环境初始化过程分析
- Android系统编译过程中常见问题汇总(1)