随笔分类 - 青春的印记=源码编译Android
摘要:1、<?xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” />issue “You are attempting to build on a 32-bit system”My ubuntu-9.04 is 32-bits system,and android-gingerbread need 64-bits system to build it,so I modified the build system in build to void this issue, if your syste
阅读全文
摘要:6.5. buildspec.mk默认情况下,buildspec.mk文件是不存在的,表示使用的多少默认选项。Android只提供了buildspec.mk文件的模板文件build/buildspec.mk.default。如果需要使用buildspec.mk文件,请将该文件拷贝到<srcDir>根目录下面,并命名为buildspec.mk。同时,需要将模板文件里面的一些必要的配置项启用或者修改为你所需要的目标选项。buildspec.mk文件主要配置下面的选项:Ø TARGET_PRODUCT:设置编译之后的目标(产品)类型;可以设置的值在:build/target/p
阅读全文
摘要:6.2. makefile文件控制整个android系统编译的make文件。其内容如下:### DO NOT EDIT THIS FILE ###include build/core/main.mk### DO NOT EDIT THIS FILE ###可以看出,实际上控制编译的文件是:build/core/main.mk6.3. Make命令2 make droid:等同于make命令。droid是默认的目标名称。2 make all: make all将make所有make droid会编译的项目。同时,将编译LOCAL_MODULE_TAGS定义的不包括android tag的模块。这
阅读全文
摘要:6. 编译详细分解6.1. build系统简介6.1.1.build系统文件结构./build|– CleanSpec.mk|– buildspec.mk.default|– core| |– Makefile| |– apicheck_msg_current.txt| |– apicheck_msg_last.txt| |– armelf.x| |– armelf.xsc| |– armelflib.x| |– base_rules.mk| |– binary.mk| |– build-system.html| |– build_id.mk| |– checktree| |– cleanbu
阅读全文
摘要:6.1.2.make文件分类2 配置类主要用来配置product、board,以及根据你的Host和Target选择相应的工具以及设定相应的通用编译选项:config文件说明build/core/config.mkConfig文件的概括性配置build/core/envsetup.mkgenerate目录构成等配置build/target/product产品相关的配置build/target/board硬件相关的配置build/core/combo编译选项配置这里解释下这里的board和product。board主要是设计到硬件芯片的配置,比如是否提供硬件的某些功能,比如说GPU等等,或者芯片
阅读全文
摘要:3. 验证编译之后的模块$export ANDROID_PRODUCT_OUT=<SrcDir>/out/target/product/generic$cd ./out/host/linux-x86/bin$./emulator4. 编译完成之后的代码结构Android编译完成后,将在根目录中生成一个out文件夹,所有生成的内容均放置在这个文件夹中。out文件夹如下所示: out/ |– CaseCheck.txt |– casecheck.txt |– host | |– common | `– linux-x86 `– target |– common `– prod...
阅读全文
摘要:1.1. 编译环境准备v 先构建一个Ubuntu 9.10虚拟机v 在虚拟机中确认下面的包是否已经安装:n sudo apt-get install build-essentialn sudo apt-get install maken sudo apt-get install gccn sudo apt-get install g++n sudo apt-get install libc6-devn sudo apt-get install flexn sudo apt-get install bisonn sudo apt-get install patchn sudo apt-get i
阅读全文
摘要:v 执行ls -la /bin/sh命令,如果输出如下:rwxrwxrwx 1 root root 4 2010-02-10 17:14 /bin/sh -> dash请执行$sudo dpkg-reconfigure dash命令修改sh版本,并选择“否”;此处如果不改好的话,编译时会出现错误。v 执行source build/envsetup.sh命令v 执行choosecombo命令,出现选择对话框u Build for the simulator or the device?u 1. Deviceu 2. Simulatoruu Which would you like? [1]
阅读全文
摘要:下了两天的 gingerbread,终于下载下来了。但是不知道是否完整,因为repo sync 的时候, 断了很多次。下面开始编译,按照http://source.android.com/source/building.html输入lunch full-eng 的时候,出现了下面的内容,留下来做个记号。PLATFORM_VERSION_CODENAME=RELPLATFORM_VERSION=2.3.4TARGET_PRODUCT=fullTARGET_BUILD_VARIANT=engTARGET_SIMULATOR=falseTARGET_BUILD_TYPE=releaseTARGET_
阅读全文
摘要:if you have troubles with “repo sync” Android Eclair release (something like “remote end hung up unexpectedly“) – here is a solution!The problem is that during heavy load repo cannot connect to the server and fails. And you have to start sync from the beginning again and again.go to the folder where
阅读全文
摘要:i fellow below page step by stephttp://wiki.cyanogen…enMod_for_Bravoit did very well , until when i input the command:[font=monospace][size="3"]. build/envsetup.sh && brunch bravo[/size][/font]about 1 hour, theTerminalprint outtarget Strip: libsimplejni (out/target/product/bravo/ob
阅读全文
摘要:Android编译生成的三个镜像文件Android源码编译后,在out/target/product/generic下生成的三个镜像文件:ramdisk.img,system.img,userdata.img以及它们对应的目录树root,system,data。ramdisk.img是根文件系统,system.img包括了主要的包、库等文件,userdata.img包括了一些用户数据,android加载这3个映像文件后,会把 system和 userdata分别加载到 ramdisk文件系统中的system和 data目录下。三个镜像文件及其三个目录树之间的生成关系是我们进行ROM制作的基础,
阅读全文
摘要:最近一直在做android方面的学习,包括源码编译和程序开发,看了网上那么多教程,大家都是复制来复制去,很少能有自己写的经验教程,有的时候也是因为机器系统配置方面不同,造成了许多的困惑。所以,决定自己写一个系列,把操作步骤和顺序写下来,给自己留个案底,以备复查。另外:欢迎大家讨论转载,转载请注明出处。http://www.cnblogs.com/lotus_shelly/先说明一下环境:Ubuntu11.10 + JDK6 + IceCream Sandwich1. 安装ubuntu 和jdk. http://www.cnblogs.com/lotus_shelly/archive/2011/
阅读全文
摘要:android2.2源码编译环境:--Ubuntu10.04 (X86) + android2.2 + JDK1.6注意:官方声明,32位系统下JDK必须用1.5—这是因为编译android api docs 需要1.5。要用JDK1.6必须用64位系统—为什么是64目前不得而知。要是想一次成功,最好还是按照官方说的用JDK1.5(当然你用64位linux就更方便了),这样的话基本没什么大问题。1)安装必要的软件环境1$ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-d
阅读全文