20250204在Ubuntu22.04下配置荣品的RK3566开发板的Android13的编译环境
20250204在Ubuntu22.04下配置荣品的RK3566开发板的Android13的编译环境
2025/2/4 12:38
缘起:公司本来要采用荣品RK3588S核心板的,但是最终因为价格的原因使用了RK3566核心板。
https://doc.rpdzkj.cn/#/navbar/%E7%BD%91%E7%9B%98%E9%93%BE%E6%8E%A5?id=rk3566-rk3568
瑞芯微系列
SDK下载:
RK3566-RK3568
PRO-rk3566-rk3568 链接:https://pan.baidu.com/s/1D-E478YtUf3oYq3Bs3VJ2g 提取码:2345
https://doc.rpdzkj.cn/#/zh_cn/%E7%91%9E%E8%8A%AF%E5%BE%AE%E7%B3%BB%E5%88%97/rk3566-rk3568/6.Android13%E5%BC%80%E5%8F%91
SDK编译环境配置
参考百度网盘:02-软件文档/荣品文档/编译问题/SDK编译环境搭建.pdf
https://doc.rpdzkj.cn/#/zh_cn/%E7%91%9E%E8%8A%AF%E5%BE%AE%E7%B3%BB%E5%88%97/rk3566-rk3568/5.Android11%E5%BC%80%E5%8F%91
Android11开发
编译环境要求
编译 SDK 有两个要求必须要满足:64 位 CPU、64 位 linux(Ubuntu18.04)发行版。
可以使用虚拟机编译 android,建议分配大于等于 8G 的内存,小于 8G 内存可能导致编译出错。
本文档操作不需要使用 root 用户,配置编译环境安装软件使用 sudo 即可。使用普通用户登录 ,将 android 源码拷贝、下载到当前用户目录下,拷贝、下载、解压、编译源码均在普通用户下执行。请忽使用 root 用户或者 sudo 命令来贝、下载、解压、编译源码,可能会导致编译出错。
磁盘空间尽可能大,Android源码以及构建编译都会占用大量存储空间
编译环境搭建
推荐编译系统版本:Ubuntu18.04以上(低版本需要更新Python版本)
sudo apt-get install git bc bison build-essential curl flex g++-multilib gcc-multilib \
gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev \
libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool \
squashfs-tools xsltproc yasm zip zlib1g-dev python device-tree-compiler python-pip
复制Error已复制
sudo pip install pyelftools
sudo apt-get install git
sudo apt-get install bc
sudo apt-get install bison
sudo apt-get install build-essential
sudo apt-get install curl
sudo apt-get install flex
sudo apt-get install g++-multilib
sudo apt-get install gcc-multilib
sudo apt-get install
sudo apt-get install
sudo apt-get install gnupg
sudo apt-get install gperf
sudo apt-get install imagemagick
sudo apt-get install lib32ncurses5-dev
sudo apt-get install lib32readline-dev
sudo apt-get install lib32z1-dev
sudo apt-get install liblz4-tool
sudo apt-get install libncurses5-dev
sudo apt-get install
sudo apt-get install
sudo apt-get install libsdl1.2-dev
sudo apt-get install libssl-dev
sudo apt-get install libwxgtk3.0-dev
sudo apt-get install libxml2
sudo apt-get install libxml2-utils
sudo apt-get install lzop
sudo apt-get install pngcrush
sudo apt-get install rsync
sudo apt-get install schedtool
sudo apt-get install
sudo apt-get install
sudo apt-get install squashfs-tools
sudo apt-get install xsltproc
sudo apt-get install yasm
sudo apt-get install zip
sudo apt-get install zlib1g-dev
sudo apt-get install python
sudo apt-get install device-tree-compiler
sudo apt-get install python-pip
sudo apt-get install
sudo apt-get install
sudo apt-get install libwxgtk3.0-dev
sudo apt install libwxgtk3.0-gtk3-dev
补充:
sudo apt-get install libncurses5
sudo apt-get install samba
sudo apt-get install nethogs
sudo apt-get install terminator
sudo apt-get install openssh-server
sudo apt-get install python2
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:/usr/bin$ sudo ln -s python2.7 python
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$ python
Command 'python' not found, did you mean:
command 'python3' from deb python3
command 'python' from deb python-is-python3
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$ python3
Python 3.10.12 (main, Jan 17 2025, 14:35:34) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$ sudo apt-get install python
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
2to3 python2-minimal:i386 python2:i386 python2-minimal python2 dh-python python-is-python3
E: Package 'python' has no installation candidate
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$ sudo apt-get install python
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
2to3 python2-minimal:i386 python2:i386 python2-minimal python2 dh-python python-is-python3
E: Package 'python' has no installation candidate
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$ python2
Command 'python2' not found, but can be installed with:
sudo apt install python2
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$ sudo apt-get install python2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib python2-minimal python2.7 python2.7-minimal
Suggested packages:
python2-doc python-tk python2.7-doc binfmt-support
The following NEW packages will be installed:
libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib python2 python2-minimal python2.7 python2.7-minimal
0 upgraded, 7 newly installed, 0 to remove and 516 not upgraded.
Need to get 4,012 kB of archives.
After this operation, 16.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe amd64 libpython2.7-minimal amd64 2.7.18-13ubuntu1.5 [347 kB]
Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe amd64 python2.7-minimal amd64 2.7.18-13ubuntu1.5 [1,400 kB]
Get:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 python2-minimal amd64 2.7.18-3 [20.8 kB]
Get:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe amd64 libpython2.7-stdlib amd64 2.7.18-13ubuntu1.5 [1,977 kB]
Get:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe amd64 python2.7 amd64 2.7.18-13ubuntu1.5 [250 kB]
Get:6 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 libpython2-stdlib amd64 2.7.18-3 [7,432 B]
Get:7 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 python2 amd64 2.7.18-3 [9,098 B]
Fetched 4,012 kB in 1s (2,810 kB/s)
Selecting previously unselected package libpython2.7-minimal:amd64.
(Reading database ... 179431 files and directories currently installed.)
Preparing to unpack .../0-libpython2.7-minimal_2.7.18-13ubuntu1.5_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.18-13ubuntu1.5) ...
Selecting previously unselected package python2.7-minimal.
Preparing to unpack .../1-python2.7-minimal_2.7.18-13ubuntu1.5_amd64.deb ...
Unpacking python2.7-minimal (2.7.18-13ubuntu1.5) ...
Selecting previously unselected package python2-minimal.
Preparing to unpack .../2-python2-minimal_2.7.18-3_amd64.deb ...
Unpacking python2-minimal (2.7.18-3) ...
Selecting previously unselected package libpython2.7-stdlib:amd64.
Preparing to unpack .../3-libpython2.7-stdlib_2.7.18-13ubuntu1.5_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.18-13ubuntu1.5) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../4-python2.7_2.7.18-13ubuntu1.5_amd64.deb ...
Unpacking python2.7 (2.7.18-13ubuntu1.5) ...
Selecting previously unselected package libpython2-stdlib:amd64.
Preparing to unpack .../5-libpython2-stdlib_2.7.18-3_amd64.deb ...
Unpacking libpython2-stdlib:amd64 (2.7.18-3) ...
Setting up libpython2.7-minimal:amd64 (2.7.18-13ubuntu1.5) ...
Setting up python2.7-minimal (2.7.18-13ubuntu1.5) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up python2-minimal (2.7.18-3) ...
Selecting previously unselected package python2.
(Reading database ... 180174 files and directories currently installed.)
Preparing to unpack .../python2_2.7.18-3_amd64.deb ...
Unpacking python2 (2.7.18-3) ...
Setting up libpython2.7-stdlib:amd64 (2.7.18-13ubuntu1.5) ...
Setting up python2.7 (2.7.18-13ubuntu1.5) ...
Setting up libpython2-stdlib:amd64 (2.7.18-3) ...
Setting up python2 (2.7.18-3) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$ python
Command 'python' not found, did you mean:
command 'python3' from deb python3
command 'python' from deb python-is-python3
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~$ cd /usr/bin/
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:/usr/bin$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:/usr/bin$ ll py*
-rwxr-xr-x 1 root root 7815 8月 8 20:28 py3clean*
-rwxr-xr-x 1 root root 13193 8月 8 20:28 py3compile*
lrwxrwxrwx 1 root root 31 8月 8 20:28 py3versions -> ../share/python3/py3versions.py*
-rwxr-xr-x 1 root root 4124 7月 28 2021 pyclean*
-rwxr-xr-x 1 root root 11867 7月 28 2021 pycompile*
lrwxrwxrwx 1 root root 8 7月 28 2021 pydoc2 -> pydoc2.7*
-rwxr-xr-x 1 root root 79 12月 10 02:47 pydoc2.7*
lrwxrwxrwx 1 root root 9 8月 8 20:28 pydoc3 -> pydoc3.10*
-rwxr-xr-x 1 root root 79 1月 17 22:35 pydoc3.10*
lrwxrwxrwx 1 root root 12 7月 28 2021 pygettext2 -> pygettext2.7*
-rwxr-xr-x 1 root root 22082 12月 10 02:47 pygettext2.7*
lrwxrwxrwx 1 root root 13 8月 8 20:28 pygettext3 -> pygettext3.10*
-rwxr-xr-x 1 root root 24235 6月 7 2023 pygettext3.10*
-rwxr-xr-x 1 root root 970 11月 22 21:44 pygmentize*
lrwxrwxrwx 1 root root 9 7月 28 2021 python2 -> python2.7*
-rwxr-xr-x 1 root root 3592536 12月 10 02:47 python2.7*
lrwxrwxrwx 1 root root 10 8月 8 20:28 python3 -> python3.10*
-rwxr-xr-x 1 root root 5937800 1月 17 22:35 python3.10*
-rwxr-xr-x 1 root root 960 12月 23 2020 python3-futurize*
-rwxr-xr-x 1 root root 964 12月 23 2020 python3-pasteurize*
lrwxrwxrwx 1 root root 29 7月 28 2021 pyversions -> ../share/python/pyversions.py*
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:/usr/bin$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:/usr/bin$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:/usr/bin$ sudo ln -s python2.7 python
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:/usr/bin$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:/usr/bin$ ll py*
-rwxr-xr-x 1 root root 7815 8月 8 20:28 py3clean*
-rwxr-xr-x 1 root root 13193 8月 8 20:28 py3compile*
lrwxrwxrwx 1 root root 31 8月 8 20:28 py3versions -> ../share/python3/py3versions.py*
-rwxr-xr-x 1 root root 4124 7月 28 2021 pyclean*
-rwxr-xr-x 1 root root 11867 7月 28 2021 pycompile*
lrwxrwxrwx 1 root root 8 7月 28 2021 pydoc2 -> pydoc2.7*
-rwxr-xr-x 1 root root 79 12月 10 02:47 pydoc2.7*
lrwxrwxrwx 1 root root 9 8月 8 20:28 pydoc3 -> pydoc3.10*
-rwxr-xr-x 1 root root 79 1月 17 22:35 pydoc3.10*
lrwxrwxrwx 1 root root 12 7月 28 2021 pygettext2 -> pygettext2.7*
-rwxr-xr-x 1 root root 22082 12月 10 02:47 pygettext2.7*
lrwxrwxrwx 1 root root 13 8月 8 20:28 pygettext3 -> pygettext3.10*
-rwxr-xr-x 1 root root 24235 6月 7 2023 pygettext3.10*
-rwxr-xr-x 1 root root 970 11月 22 21:44 pygmentize*
lrwxrwxrwx 1 root root 9 2月 3 12:31 python -> python2.7*
lrwxrwxrwx 1 root root 9 7月 28 2021 python2 -> python2.7*
-rwxr-xr-x 1 root root 3592536 12月 10 02:47 python2.7*
lrwxrwxrwx 1 root root 10 8月 8 20:28 python3 -> python3.10*
-rwxr-xr-x 1 root root 5937800 1月 17 22:35 python3.10*
-rwxr-xr-x 1 root root 960 12月 23 2020 python3-futurize*
-rwxr-xr-x 1 root root 964 12月 23 2020 python3-pasteurize*
lrwxrwxrwx 1 root root 29 7月 28 2021 pyversions -> ../share/python/pyversions.py*
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:/usr/bin$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:/usr/bin$ python
Python 2.7.18 (default, Dec 9 2024, 18:47:23)
[GCC 11.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> exit()
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:/usr/bin$
28 -DRKAIQ_HAVE_AF_V20=1
cflags size: 29
>>>>>>>>>>>>>>>>>>>>> rk356x
libeptz enabled on RK356X
libeptz enabled on RK356X
libeptz enabled on RK356X
[] 33
librockx enabled on RK356X
librockx enabled on RK356X
librockx enabled on RK356X
rk356x WILL NOT COMPILE rkaiq_tool_server binary
[100% 418/418] initializing build system ...
device/rockchip/common/prebuild.mk:2: warning: Generating manifest snapshot at out/commit_id.xml...
device/rockchip/common/prebuild.mk:3: warning: You can disable this by removing this and setting BOARD_RECORD_COMMIT_ID := false in BoardConfig.mk
[ 61% 424/688] including build/make/target/board/Android.mk ...
build fstab file with device/rockchip/common/scripts/fstab_tools/fstab.in....
rebuilding dtbo image with device/rockchip/rk356x/rk3566_t/dt-overlay.in....
build parameter.txt with device/rockchip/common/scripts/parameter_tools/parameter.in....
[ 70% 483/688] including external/rk_tee_user/v2/Android.mk ...
'building rk_tee_user v2'
[ 79% 548/688] including hardware/rockchip/audio/Android.mk ...
"BUILD_BISTREAM_TEST"
[ 79% 550/688] including hardware/rockchip/camera_engine_rkisp/Android.mk ...
TARGET_BOARD_PLATFORM=rk356x
[ 87% 602/688] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:57: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.
system/sepolicy/Android.mk:62: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
[100% 688/688] writing build rules ...
build/make/core/Makefile:72: warning: overriding commands for target `out/target/product/rk3566_t/vendor/lib64/libril.so'
build/make/core/base_rules.mk:533: warning: ignoring old commands for target `out/target/product/rk3566_t/vendor/lib64/libril.so'
[ 0% 811/149457] build out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/ll64/allocation.bc
FAILED: out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/ll64/allocation.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/llvm-as frameworks/rs/driver/runtime/ll64/allocation.ll -o out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/ll64/allocation.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/llvm-as: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 0% 812/149457] build out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/ll64/math.bc
FAILED: out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/ll64/math.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/llvm-as frameworks/rs/driver/runtime/ll64/math.ll -o out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/ll64/math.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/llvm-as: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 0% 813/149457] build out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/arch/asimd.bc
FAILED: out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/arch/asimd.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/llvm-as frameworks/rs/driver/runtime/arch/asimd.ll -o out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/arch/asimd.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/llvm-as: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 0% 814/149457] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_f16_math.c
FAILED: out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_f16_math.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript64-linux-android -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -DARCH_ARM64_HAVE_NEON -x renderscript frameworks/rs/driver/runtime/rs_f16_math.c -o out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_f16_math.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 0% 815/149457] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_matrix.c
FAILED: out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_matrix.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript64-linux-android -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -DARCH_ARM64_HAVE_NEON -x renderscript frameworks/rs/driver/runtime/rs_matrix.c -o out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_matrix.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 0% 816/149457] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_allocation.c
FAILED: out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_allocation.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript64-linux-android -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -DARCH_ARM64_HAVE_NEON -x renderscript frameworks/rs/driver/runtime/rs_allocation.c -o out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_allocation.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 0% 817/149457] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_cl.c
FAILED: out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_cl.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript64-linux-android -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -DARCH_ARM64_HAVE_NEON -x renderscript frameworks/rs/driver/runtime/rs_cl.c -o out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_cl.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 0% 818/149457] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_sample.c
FAILED: out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_sample.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript64-linux-android -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -DARCH_ARM64_HAVE_NEON -x renderscript frameworks/rs/driver/runtime/rs_sample.c -o out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_sample.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 0% 819/149457] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_program.c
FAILED: out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_program.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript64-linux-android -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -DARCH_ARM64_HAVE_NEON -x renderscript frameworks/rs/driver/runtime/rs_program.c -o out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_program.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 0% 820/149457] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_mesh.c
FAILED: out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_mesh.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript64-linux-android -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -DARCH_ARM64_HAVE_NEON -x renderscript frameworks/rs/driver/runtime/rs_mesh.c -o out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_mesh.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 0% 821/149457] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_quaternion.c
FAILED: out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_quaternion.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript64-linux-android -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -DARCH_ARM64_HAVE_NEON -x renderscript frameworks/rs/driver/runtime/rs_quaternion.c -o out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_quaternion.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 0% 822/149457] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_core.c
FAILED: out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_core.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript64-linux-android -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -DARCH_ARM64_HAVE_NEON -x renderscript frameworks/rs/driver/runtime/rs_core.c -o out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_core.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 0% 823/149457] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_sampler.c
FAILED: out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_sampler.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript64-linux-android -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -DARCH_ARM64_HAVE_NEON -x renderscript frameworks/rs/driver/runtime/rs_sampler.c -o out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_sampler.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 0% 824/149457] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_element.c
FAILED: out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_element.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript64-linux-android -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -DARCH_ARM64_HAVE_NEON -x renderscript frameworks/rs/driver/runtime/rs_element.c -o out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_element.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 0% 825/149457] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_convert.c
FAILED: out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_convert.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript64-linux-android -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -DARCH_ARM64_HAVE_NEON -x renderscript frameworks/rs/driver/runtime/rs_convert.c -o out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/rs_convert.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 0% 826/149457] bc: libclcore.bc <= frameworks/rs/driver/runtime/arch/clamp.c
FAILED: out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/arch/clamp.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bin/clang -Iframeworks/rs/script_api/include -Iexternal/clang/lib/Headers -MD -DRS_VERSION=24 -std=c99 -c -O3 -fno-builtin -emit-llvm -target renderscript64-linux-android -fsigned-char -Wno-deprecated -Werror -Werror -Wall -Wextra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS -DARCH_ARM64_HAVE_NEON -x renderscript frameworks/rs/driver/runtime/arch/clamp.c -o out/target/product/rk3566_t/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/arch/clamp.bc"
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
12:56:48 ninja failed with: exit status 1
#### failed to build some targets (02:49 (mm:ss)) ####
Build android failed!
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/Android13.0$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/Android13.0$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/Android13.0$
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/Android13.0$ sudo apt-get install libncurses5
[sudo] password for rootroot:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libtinfo5
The following NEW packages will be installed:
libncurses5 libtinfo5
0 upgraded, 2 newly installed, 0 to remove and 516 not upgraded.
Need to get 207 kB of archives.
After this operation, 883 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe amd64 libtinfo5 amd64 6.3-2ubuntu0.1 [100 kB]
Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe amd64 libncurses5 amd64 6.3-2ubuntu0.1 [107 kB]
Fetched 207 kB in 2s (135 kB/s)
Selecting previously unselected package libtinfo5:amd64.
(Reading database ... 180849 files and directories currently installed.)
Preparing to unpack .../libtinfo5_6.3-2ubuntu0.1_amd64.deb ...
Unpacking libtinfo5:amd64 (6.3-2ubuntu0.1) ...
Selecting previously unselected package libncurses5:amd64.
Preparing to unpack .../libncurses5_6.3-2ubuntu0.1_amd64.deb ...
Unpacking libncurses5:amd64 (6.3-2ubuntu0.1) ...
Setting up libtinfo5:amd64 (6.3-2ubuntu0.1) ...
Setting up libncurses5:amd64 (6.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.35-0ubuntu3) ...
rootroot@rootroot-HP-245-14-inch-G10-Notebook-PC:~/Android13.0$