日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 編程語言 正文

Android之rk3588?開發環境準備及問題解決方法_Android

作者:leezs0614 ? 更新時間: 2022-12-13 編程語言

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

原文鏈接:https://blog.csdn.net/liu_xinglfz/article/details/127849470

欄目分類
最近更新