Firefly开源社区

打印 上一主题 下一主题

[技术讨论] Android编译报错mkuserimg_mke2fs.py.srcszip: zip: not a valid zip file

23

积分

0

威望

0

贡献

技术小白

积分
23

Android编译报错mkuserimg_mke2fs.py.srcszip: zip: not a valid zip file

发表于 2022-11-30 11:58:18      浏览:5753 | 回复:2        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 自行编译的固件
  • SDK包名称: Firefly-RK356X_Android11.0_git_20210824.7z
  • SDK更新到哪个COMMIT: 0000-00-00 00:00:00
  • SDK修改内容: 未做任何修改
  • Log日志: Build.zip
问题描述及复现步骤:
RT.  编译主机 Ubuntu 18.04.5 LTS,32G-DDR3;环境确认过。
SDK版本:
commit a4116da2323c5b661801925e0b4049f14fbb2b56 (HEAD -> firefly)
Author: Firefly <service@t-firefly.com>
Date:   Thu Sep 29 09:34:39 2022 +0800

    support ROC-RK3568-PC SE and FireflyApi2 Demo


进行第一次公版编译,采用的MIPI屏编译指令:
./FFTools/make.sh -d rk3566-roc-pc-mipi101_M101014_BE45_A1 -j8 -l rk3566_roc_pc_mipi-userdebug
./FFTools/mkupdate/mkupdate.sh -l rk3566_roc_pc_mipi-userdebug


在编译Android11的过程中报如下错误, 请问怎么解决呢?

[ 20% 10844/52645] //system/extras/ext4_utils:mkuserimg_mke2fs embedded python archive [linux_glibc]
FAILED: out/soong/.intermediates/system/extras/ext4_utils/mkuserimg_mke2fs/linux_glibc_x86_64_PY2/mkuserimg_mke2fs
rm -f out/soong/.intermediates/system/extras/ext4_utils/mkuserimg_mke2fs/linux_glibc_x86_64_PY2/mkuserimg_mke2fs.main && sed 's/ENTRY_POINT/mkuserimg_mke2fs/' build/soong/python/scripts/main.py >out/soong/.intermediates/system/extras/ext4_utils/mkuserimg_mke2fs/linux_glibc_x86_64_PY2/mkuserimg_mke2fs.main &&out/soong/host/linux-x86/bin/merge_zips -p -pm out/soong/.intermediates/system/extras/ext4_utils/mkuserimg_mke2fs/linux_glibc_x86_64_PY2/mkuserimg_mke2fs.main --prefix out/soong/.intermediates/external/python/cpython2/py2-launcher-autorun/linux_glibc_x86_64/py2-launcher-autorun64 out/soong/.intermediates/system/extras/ext4_utils/mkuserimg_mke2fs/linux_glibc_x86_64_PY2/mkuserimg_mke2fs out/soong/.intermediates/system/extras/ext4_utils/mkuserimg_mke2fs/linux_glibc_x86_64_PY2/mkuserimg_mke2fs.py.srcszip out/soong/.intermediates/external/python/cpython2/Lib/py2-stdlib/linux_glibc_x86_64_PY2/py2-stdlib.py.srcszip && chmod +x out/soong/.intermediates/system/extras/ext4_utils/mkuserimg_mke2fs/linux_glibc_x86_64_PY2/mkuserimg_mke2fs && rm -rf out/soong/.intermediates/system/extras/ext4_utils/mkuserimg_mke2fs/linux_glibc_x86_64_PY2/mkuserimg_mke2fs.main
merge_zips.go:752: out/soong/.intermediates/system/extras/ext4_utils/mkuserimg_mke2fs/linux_glibc_x86_64_PY2/mkuserimg_mke2fs.py.srcszip: zip: not a valid zip file
11:31:25 ninja failed with: exit status 1



Build.zip

666 Bytes, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

3750

积分

17

威望

18

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
3750
发表于 2022-11-30 14:43:26        只看该作者  沙发
编译的环境问题,参考wiki 环境搭建
回复

使用道具 举报

23

积分

0

威望

0

贡献

技术小白

积分
23
发表于 2022-12-1 10:27:47        只看该作者  板凳
本帖最后由 tianxialongfei 于 2022-12-1 15:40 编辑

已解决,编译Android过程中中断过,之后重新编译出的这个错。删除out目录重新编译就可以了!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表