解决ubuntu编译aosp报错问题:error while loading shared libraries: libncurses.so.5

报错代码:

 or directory
[  0% 1036/154449] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_quaternio
FAILED: out/target/product/emulator_x86_64/obj/RENDERSCRIPT_BITCODE/libclcore.bc
_intermediates/rs_quaternion.bc
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3289846/bi
n/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 -D__x86_64__ -Wno-deprecated -Werror  -Werror -Wall -Wext
ra -Iframeworks/rs/cpu_ref -DRS_DECLARE_EXPIRED_APIS  -x renderscript frameworks
/rs/driver/runtime/rs_quaternion.c -o out/target/product/emulator_x86_64/obj/REN
DERSCRIPT_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
11:45:10 ninja failed with: exit status 1

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

解决方案:安装libncurses5解决,命令如下

sudo apt install libncurses5

你可能感兴趣的:(Android逆向,ubuntu,linux,android)