【Android源码 栏目提醒】:网学会员为广大网友收集整理了,Ubuntu 12 0 64位源码编译Android4 0 doc - 技术总结,希望对大家有所帮助!
Ubuntu 12 64编编位
Android 4.0.1编编编编编编编编源和解决法编编编编编编编系足的条件在VMware编编编编编编下最好客虚机1.5G内存30G编编以上的硬。
编编编编编编编要安装的件For Gingerbread 2.3.x and newer versions including the master branch a 64-bit environment is required. Older versions can be compiled on 32-bit systems.Note: It is also possible to build
Android in a virtual machine. If you are running Linux in a virtual machine you will need at least 16GB of RAM/swap and 30GB or more of disk space in order to build the
Android tree.Detailed instructions for Ubuntu and MacOS follow. In general you will need:??Python 2.5 -- 2.7 which you can download from python.org.??GNU Make 3.81 -- 3.82 which you can download from gnu.org??JDK 6 if you wish to build Gingerbread or newer JDK 5 for Froyo or older. You can download both from java.sun.com.??Git 1.7 or newer. You can find it at git-scm.com.You will need a 64-bit version of Ubuntu. Ubuntu 10.04 is recommended. Building using a newer version of Ubuntu is currently only experimentally supported and is not guaranteed to work on branches other than master. sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g-multilib mingw32 openjdk-6-jdk tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so编编编编编编编编编编编编编编源程中可能出的1、make: out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/RefBase.o Error 1make: 解决方法gedit frameworks/base/libs/utils/
Android.mk把LOCAL_CFLAGS -DLIBUTILS_NATIVE1 TOOL_CFLAGS编编修改LOCAL_CFLAGS -DLIBUTILS_NATIVE1 TOOL_CFLAGS –fpermissive2、make: out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex Killed解决方法编编把虚机ubuntu编编编编编系分配内存1G编编有条件最好于1G3、:0:0: error: _FORTIFY_SOURCE redefined -Werrormake: out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o Error 1解决方法修改build/core/combo/HOST_linux-x86.mk 61行将HOST_GLOBAL_CFLAGS -D_FORTIFY_SOURCE0修改成HOST_GLOBAL_CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE0昨天下载、载载了
android-4.0.3遇到的载载载出共享一下来载境要求改载。
载在要求存内1.5G左右硬载25G以上以前1G、10G就载了。
官方载明“Note: The source download is approximately 6GB in size. You will need 25GB free to complete a single build and up to 80GB or more for a full set of builds.” 可惜我载之前看载载载载如下 没 载一host SharedLib: libbcc out/host/linux-x86/obj/lib/libbcc.socollect2: ld terminated with signal 9 Killedmake: out/target/common/obj/JAVA_LIBRARIES/core_intermediates/noproguard.classes-with-local.dex Killedmake: Waiting for unfinished jobs….make: out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/llvm-rs-cc Error 1collect2: ld terminated with signal 9 Killedcollect2: ld terminated with signal 9 Killedmake: out/host/linux-x86/obj/lib/libbcc.so Error 1make: out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang Error 1weihongcsuubuntu:/disk2/
android-4.0.1_r1载二target Dex: frameworkmake: out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex Killedweihongcsuubuntu:/disk2/
android-4.0.1_r1载三arm-eabi-g: Internal error: Killed program cc1plus解载法决载些载载都是 linux的OOM killer 载致“存内1.5G左右硬载25G”就可以解我载了保载决把make -j4改成了make.载载5小载以上个吧out目载大小12G。
编编1USER-NAMEMACHINE-NAME:/
Android make编编编编编编编出了如下host C: llvm-rs-cc
上一篇:
分析Android 根文件系统启动过程
下一篇:
7*30m公路预应力混凝土连续梁桥上部结构设计