当前位置:   article > 正文

Android:rk3588 开发环境准备_rk3588 android13

rk3588 android13

rk3588编译开发环境准备:

  1. sudo apt-get install repo git ssh make gcc libssl-dev liblz4-tool \
  2. expect g++ patchelf chrpath gawk texinfo chrpath diffstat binfmt-support \
  3. qemu-user-static live-build bison flex fakeroot cmake gcc-multilib g++-multilib
  4. unzip \
  5. device-tree-compiler ncurses-dev \

1、常见编译错误

Platform RK3588 is build OK, with new .config(make rk3588-ab_defconfig -j16)
/home//leezs/rk3588s/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
Mon May 30 11:11:26 HKT 2022
/home//leezs/rk3588s
Build uboot ok!
Start build kernel
/bin/sh: 1: ./scripts/gcc-wrapper.py: not found
/bin/sh: 1: ./scripts/gcc-wrapper.py: not found

[0;32m#### build completed successfully (42 seconds) ####[00m

  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
/bin/sh: 1: flex: not found
make[3]: *** [scripts/kconfig/lexer.lex.c] Error 127
make[2]: *** [rockchip_defconfig] Error 2
make[1]: *** [__build_one_by_one] Error 2
make: *** [__sub-make] Error 2

[0;31m#### failed to build some targets (5 seconds) ####[00m

Build kernel failed!

解决办法:

sudo apt-get install flex

2、常见编译错误

  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
/bin/sh: 1: bison: not found
make[3]: *** [scripts/kconfig/parser.tab.h] Error 127
make[2]: *** [rockchip_defconfig] Error 2
make[1]: *** [__build_one_by_one] Error 2
make: *** [__sub-make] Error 2

#### failed to build some targets (3 seconds) ####

Build kernel failed!

解决办法:

sudo apt-get install bison -y

3、常见编译错误

FAILED: out/soong/.intermediates/external/guice/guice_munge_srcjar/gen/guice_munge.srcjar
rm -rf out/soong/.intermediates/external/guice/guice_munge_srcjar/gen && out/soong/host/linux-x86/bin/sbox --sandbox-path out/soongemp --manifest out/soong/.intermediates/external/guice/guice_munge_srcjar/genrule.sbox.textproto
The failing command was run inside an sbox sandbox in temporary directory
out/soong/.temp/sbox/6c6df8b68c4e18f58c1366ddca3a64bf009d9659
The failing command line was:
zip -q --temp-path ${TMPDIR:-/tmp} external/guice/lib/build/munge.jar -O out/soong/.temp/sbox/6c6df8b68c4e18f58c1366ddca3a64bf009d9/out/guice_munge.srcjar -d MungeTask.java *.class
bash: zip: command not found

 解决办法:

sudo apt-get install zip

4、常见编译错误

/bin/bash: make_ext4fs: command not found
解决办法:

sudo apt-get install android-tools-fsutils

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/311687
推荐阅读
相关标签
  

闽ICP备14008679号