Android之rk3588 开发环境准备及问题解决方法

 更新时间:2022年11月15日 14:55:29   作者:leezs0614  
这篇文章主要介绍了Android中的rk3588 开发环境准备,本文给大家分享遇到的问题及解决方法,本文给大家讲解的非常详细对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下

rk3588编译开发环境准备:

sudo apt-get install repo git ssh make gcc libssl-dev liblz4-tool \
expect g++ patchelf chrpath gawk texinfo chrpath diffstat binfmt-support \
qemu-user-static live-build bison flex fakeroot cmake gcc-multilib g++-multilib
unzip \
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

到此这篇关于Android中的rk3588 开发环境准备的文章就介绍到这了,更多相关android rk3588开发内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!

相关文章

最新评论