prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries:

本文讲述了在Ubuntu20.04环境下编译Android源码时遇到的问题,特别关注了如何通过`sudoaptinstalllibncurses5`来解决编译过程中依赖库缺失的情况。

ubuntu 20.04编译android源码时遇到问题,解决

sudo apt install libncurses5

[ 0% 664/150558] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_core.c FAILED: out/target/product/emulator_car_x86_64/obj/RENDERSCRIPT_BITCODE/libclcor e.bc_intermediates/rs_core.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_core.c -o out/target/product/emulator_car_x86_64/obj/RENDE RSCRIPT_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% 665/150558] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_cl.c FAILED: out/target/product/emulator_car_x86_64/obj/RENDERSCRIPT_BITCODE/libclcor e.bc_intermediates/rs_cl.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_cl.c -o out/target/product/emulator_car_x86_64/obj/RENDERS CRIPT_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% 666/150558] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_allocation FAILED: out/target/product/emulator_car_x86_64/obj/RENDERSCRIPT_BITCODE/libclcor e.bc_intermediates/rs_allocation.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_allocation.c -o out/target/product/emulator_car_x86_64/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% 667/150558] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_element.c FAILED: out/target/product/emulator_car_x86_64/obj/RENDERSCRIPT_BITCODE/libclcor e.bc_intermediates/rs_element.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_element.c -o out/target/product/emulator_car_x86_64/obj/RE NDERSCRIPT_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% 668/150558] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_f16_math.c FAILED: out/target/product/emulator_car_x86_64/obj/RENDERSCRIPT_BITCODE/libclcor e.bc_intermediates/rs_f16_math.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_f16_math.c -o out/target/product/emulator_car_x86_64/obj/R ENDERSCRIPT_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% 669/150558] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_mesh.c FAILED: out/target/product/emulator_car_x86_64/obj/RENDERSCRIPT_BITCODE/libclcor e.bc_intermediates/rs_mesh.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_mesh.c -o out/target/product/emulator_car_x86_64/obj/RENDE RSCRIPT_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% 670/150558] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_matrix.c FAILED: out/target/product/emulator_car_x86_64/obj/RENDERSCRIPT_BITCODE/libclcor e.bc_intermediates/rs_matrix.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_matrix.c -o out/target/product/emulator_car_x86_64/obj/REN DERSCRIPT_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 23:03:47 ninja failed with: exit status 1
最新发布
10-02
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值