编译andriod4.2.2 遇到的问题

本文介绍了在编译Android源码过程中遇到的各种问题及其解决方案,包括依赖库安装、解压错误处理及编译完成后系统的检查。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

yum install flex

libc6-dev-i386
libc6-dev-i386 安装不了 改安装
 yum -y install glibc-devel.i686(i386)

make: *** No rule to make target `out/target/product/tiny4412/obj/SHARED_LIBRARIES/libgabi++_intermediates/export_includes', needed by `out/target/product/tiny4412/obj/SHARED_LIBRARIES/libicuuc_intermediates/import_includes'.  Stop.
make: *** Waiting for unfinished jobs....

上面的原因是 android 源码包 解压不正确 时没有处理

解压时 出现 如下问题 没有解决

android-4.2.2_r1/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/libexec/gcc/arm-linux-androideabi/4.6.x-google/cc1plus

gzip: stdin: invalid compressed data--format violated
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
[root@localhost android]#

tar解压出现 invalid compressed data--format violated
原因可能时 android 源码包已经损坏 ,原因可能是在用 u 盘拷贝时 文件损坏
使用 mount 挂载上 笔记本上的 redhat 下的 源码包 重行解压发现 没有任何解压错误,重新编译
android 源码 发现 上面的错误 没有再次出现。

缺少 下面的 库 安装上就可以了

 yum installlibz.so.1


编译完成 出现的界面


    Size: 685768704
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 6976
    Inode size: 256
    Journal blocks: 2616
    Label:
    Blocks: 167424
    Block groups: 6
    Reserved block group size: 47
Created filesystem with 1105/41856 inodes and 52062/167424 blocks
+ '[' 0 -ne 0 ']'
Running:  simg2img out/target/product/tiny4412/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/tiny4412/obj/PACKAGING/systemimage_intermediates/unsparse_system.img
Running:  e2fsck -f -n out/target/product/tiny4412/obj/PACKAGING/systemimage_intermediates/unsparse_system.img
e2fsck 1.41.14 (22-Dec-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
out/target/product/tiny4412/obj/PACKAGING/systemimage_intermediates/unsparse_system.img: 1105/41856 files (0.0% non-contiguous), 52062/167424 blocks
Install system fs image: out/target/product/tiny4412/system.img
out/target/product/tiny4412/system.img+ maxsize=700123776 blocksize=4224 total=203751884 reserve=7075200
[root@localhost android-4.2.2_r1]#






评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值