20241129解决在Ubuntu20.04下编译中科创达的CM6125的Android10出现找不到库文件libncurses.so.5的问题

news2025/2/25 4:06:00

20241129解决在Ubuntu20.04下编译中科创达的CM6125的Android10出现找不到库文件libncurses.so.5的问题
2024/11/29 21:11


缘起:中科创达的高通CM6125开发板的Android10的编译环境需要。


vendor/qcom/proprietary/commonsys/securemsm/seccamera/service/jni/jni_if.cpp:486:14: warning: unused variable 'ret' [-Wunused-variable]
    jboolean ret = true;
             ^
5 warnings generated.
[  1% 2317/120537] bc: libclcore_debug.bc <= frameworks/rs/driver/runtime/rs_element.c
FAILED: out/target/product/qssi/obj/RENDERSCRIPT_BITCODE/libclcore_debug.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 -DRS_DEBUG_RUNTIME frameworks/rs/driver/runtime/rs_element.c -o out/target/product/qssi/obj/RENDERSCRIPT_BITCODE/libclcore_debug.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
[  1% 2318/120537] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_quaternion.c
FAILED: out/target/product/qssi/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/qssi/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
[  1% 2319/120537] build out/target/product/qssi/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/arch/asimd.bc
FAILED: out/target/product/qssi/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/qssi/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
[  1% 2320/120537] bc: libclcore_debug.bc <= frameworks/rs/driver/runtime/rs_f16_math.c
FAILED: out/target/product/qssi/obj/RENDERSCRIPT_BITCODE/libclcore_debug.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 -DRS_DEBUG_RUNTIME frameworks/rs/driver/runtime/rs_f16_math.c -o out/target/product/qssi/obj/RENDERSCRIPT_BITCODE/libclcore_debug.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
[  1% 2321/120537] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_sampler.c
FAILED: out/target/product/qssi/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/qssi/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
[  1% 2322/120537] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_convert.c
FAILED: out/target/product/qssi/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/qssi/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
[  1% 2323/120537] bc: libclcore_debug.bc <= frameworks/rs/driver/runtime/rs_core.c
FAILED: out/target/product/qssi/obj/RENDERSCRIPT_BITCODE/libclcore_debug.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 -DRS_DEBUG_RUNTIME frameworks/rs/driver/runtime/rs_core.c -o out/target/product/qssi/obj/RENDERSCRIPT_BITCODE/libclcore_debug.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
[  1% 2324/120537] bc: libclcore_debug.bc <= frameworks/rs/driver/runtime/rs_mesh.c
FAILED: out/target/product/qssi/obj/RENDERSCRIPT_BITCODE/libclcore_debug.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 -DRS_DEBUG_RUNTIME frameworks/rs/driver/runtime/rs_mesh.c -o out/target/product/qssi/obj/RENDERSCRIPT_BITCODE/libclcore_debug.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
[  1% 2325/120537] bc: libclcore.bc <= frameworks/rs/driver/runtime/arch/clamp.c
FAILED: out/target/product/qssi/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/qssi/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
[  1% 2326/120537] build out/target/product/qssi/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/ll64/allocation.bc
FAILED: out/target/product/qssi/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/qssi/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
[  1% 2327/120537] build out/target/product/qssi/obj/RENDERSCRIPT_BITCODE/libclcore.bc_intermediates/ll64/math.bc
FAILED: out/target/product/qssi/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/qssi/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
[  1% 2328/120537] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_cl.c
FAILED: out/target/product/qssi/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/qssi/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
[  1% 2329/120537] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_program.c
FAILED: out/target/product/qssi/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/qssi/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
[  1% 2330/120537] bc: libclcore_debug.bc <= frameworks/rs/driver/runtime/rs_cl.c
FAILED: out/target/product/qssi/obj/RENDERSCRIPT_BITCODE/libclcore_debug.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 -DRS_DEBUG_RUNTIME frameworks/rs/driver/runtime/rs_cl.c -o out/target/product/qssi/obj/RENDERSCRIPT_BITCODE/libclcore_debug.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
[  1% 2331/120537] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_allocation.c
FAILED: out/target/product/qssi/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/qssi/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
[  1% 2332/120537] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_core.c
FAILED: out/target/product/qssi/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/qssi/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
[  1% 2333/120537] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_element.c
FAILED: out/target/product/qssi/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/qssi/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
[  1% 2334/120537] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_matrix.c
FAILED: out/target/product/qssi/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/qssi/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
[  1% 2335/120537] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_f16_math.c
FAILED: out/target/product/qssi/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/qssi/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
[  1% 2336/120537] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_mesh.c
FAILED: out/target/product/qssi/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/qssi/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
[  1% 2337/120537] bc: libclcore.bc <= frameworks/rs/driver/runtime/rs_sample.c
FAILED: out/target/product/qssi/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/qssi/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
[  1% 2338/120537] bc: libclcore_debug.bc <= frameworks/rs/driver/runtime/rs_allocation.c
FAILED: out/target/product/qssi/obj/RENDERSCRIPT_BITCODE/libclcore_debug.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 -DRS_DEBUG_RUNTIME frameworks/rs/driver/runtime/rs_allocation.c -o out/target/product/qssi/obj/RENDERSCRIPT_BITCODE/libclcore_debug.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

[  1% 2339/120537] build out/target/product/qssi/obj/ETC/treble_sepolicy_tests_27.0_intermediates/27.0_plat_policy.conf
[  1% 2340/120537] build out/target/product/qssi/obj/ETC/built_plat_sepolicy_intermediates/base_plat_pub_policy.conf
[  1% 2341/120537] build out/target/product/qssi/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_policy.conf
[  1% 2342/120537] build out/target/product/qssi/obj/ETC/sepolicy_neverallows_intermediates/pub_policy.conf
[  1% 2343/120537] build out/target/product/qssi/obj/ETC/treble_sepolicy_tests_28.0_intermediates/28.0_plat_policy.conf
[  1% 2344/120537] build out/target/product/qssi/obj/ETC/treble_sepolicy_tests_26.0_intermediates/26.0_plat_policy.conf
[  1% 2345/120537] build out/target/product/qssi/obj/ETC/built_plat_sepolicy_intermediates/base_plat_policy.conf
[  1% 2346/120537] build out/target/product/qssi/obj/ETC/userdebug_plat_sepolicy.cil_intermediates/userdebug_plat_policy.conf
[  1% 2347/120537] build out/target/product/qssi/obj/ETC/plat_sepolicy.cil_intermediates/plat_policy.conf
[  1% 2348/120537] build out/target/product/qssi/obj/ETC/product_sepolicy.cil_intermediates/product_policy.conf
[  1% 2349/120537] build out/target/product/qssi/obj/ETC/sepolicy_freeze_test_intermediates/sepolicy_freeze_test
[  1% 2350/120537] build out/target/product/qssi/obj/ETC/vendor_sepolicy.cil_intermediates/vendor_policy.conf
[  1% 2351/120537] build out/target/product/qssi/obj/ETC/sepolicy_neverallows_intermediates/policy_2.conf
[  1% 2352/120537] build out/target/product/qssi/obj/ETC/sepolicy_neverallows_intermediates/policy.conf
ninja: build stopped: subcommand failed.
10:21:21 ninja failed with: exit status 1

#### failed to build some targets (02:37 (mm:ss)) ####


real    2m37.591s
user    7m18.650s
sys    1m8.734s
============================================
[build.sh]: FAILED: make -j36 dist ENABLE_AB=true BOARD_DYNAMIC_PARTITION_ENABLE=true SHIPPING_API_LEVEL=29
============================================
20241129_10:21:21 [TURBOX BUILD ERROR]: build_hlos Error****
rootroot@rootroot-X99-Turbo:~/cm6125q$ 
rootroot@rootroot-X99-Turbo:~/cm6125q$ 
rootroot@rootroot-X99-Turbo:~/cm6125q$ 
rootroot@rootroot-X99-Turbo:~/cm6125q$ sudo apt-get install libncurses5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi libgstreamer-plugins-bad1.0-0 libnvidia-cfg1-535 libnvidia-common-535 libnvidia-decode-535 libnvidia-encode-535 libnvidia-extra-535 libnvidia-fbc1-535
  libnvidia-gl-535 libva-wayland2 libx11-xcb1:i386 libxnvctrl0 nvidia-compute-utils-535 nvidia-kernel-source-535 nvidia-settings nvidia-utils-535 screen-resolution-extra xserver-xorg-video-nvidia-535
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  libncurses5
0 upgraded, 1 newly installed, 0 to remove and 64 not upgraded.
Need to get 96.9 kB of archives.
After this operation, 330 kB of additional disk space will be used.
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates/universe amd64 libncurses5 amd64 6.2-0ubuntu2.1 [96.9 kB]
Fetched 96.9 kB in 21s (4,664 B/s)   
Selecting previously unselected package libncurses5:amd64.
(Reading database ... 200111 files and directories currently installed.)
Preparing to unpack .../libncurses5_6.2-0ubuntu2.1_amd64.deb ...
Unpacking libncurses5:amd64 (6.2-0ubuntu2.1) ...
Setting up libncurses5:amd64 (6.2-0ubuntu2.1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.16) ...
rootroot@rootroot-X99-Turbo:~/cm6125q$ 


参考资料:
https://www.cnblogs.com/xuewangkai/p/15819543.html
error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
问题:编译Android 11源码报错:error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

解决:安装 libncurses5,执行命令:
sudo apt-get install libncurses5


已经安装了

还需要额外安装
net-tools
openssh-server
nethogs
pyton2【内置python3.8】
samba


$ sudo apt-get install android-tools-adb
$ sudo apt-get install android-tools-fastboot
$ sudo apt-get install openjdk-8-jdk
【异常了】
sudo apt-get install repo


sudo apt-get install bc
sudo apt-get install bison
sudo apt-get install build-essential
sudo apt-get install ccache
sudo apt-get install curl
sudo apt-get install flex
sudo apt-get install libxml-simple-perl

sudo apt-get install g++-multilib
sudo apt-get install gcc-multilib
sudo apt-get install git
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 libesd0-dev

rootroot@rootroot-X99-Turbo:/etc/apt$ sudo cp sources.list.bak1 sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo echo "" >> sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo echo "" >> sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo echo "deb http://us.archive.ubuntu.com/ubuntu/ xenial main universe" >> sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo echo "deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main universe" >> sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo echo "" >> sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo echo "" >> sources.list

sudo apt-get install liblz4-tool
sudo apt-get install libncurses5-dev
sudo apt-get install libsdl1.2-dev
sudo apt-get install libssl-dev

【异常】
sudo apt-get install libwxgtk3.0-dev
【更新为】
sudo apt install libwxgtk3.0-gtk3-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 squashfs-tools
sudo apt-get install xsltproc
sudo apt-get install zip
sudo apt-get install zlib1g-dev

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2253322.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Matlab搜索路径添加不上

发现无论是右键文件夹添加到路径&#xff0c;还是在“设置路径”中专门添加&#xff0c;我的路径始终添加不上&#xff0c;导致代码运行始终报错&#xff0c;后来将路径中的“”加号去掉后&#xff0c;就添加成功了&#xff0c;经过测试&#xff0c;路径中含有中文也可以添加成…

自由学习记录(28)

C# 中的流&#xff08;Stream&#xff09; 流&#xff08;Stream&#xff09;是用于读取和写入数据的抽象基类。 流表示从数据源读取或向数据源写入数据的矢量过程。 C# 中的流类是从 System.IO.Stream 基类派生的&#xff0c;提供了多种具体实现&#xff0c;每种实现都针对…

Redis3——线程模型与数据结构

Redis3——线程模型与数据结构 本文讲述了redis的单线程模型和IO多线程工作原理&#xff0c;以及几个主要数据结构的实现。 1. Redis的单线程模型 redis6.0之前&#xff0c;一个redis进程只有一个io线程&#xff0c;通过reactor模式可以连接大量客户端&#xff1b;redis6.0为了…

使用playwright自动化测试时,npx playwright test --ui打开图形化界面时报错

使用playwright自动化测试时&#xff0c;npx playwright test --ui打开图形化界面时报错 1、错误描述&#xff1a;2、解决办法3、注意符号的转义 1、错误描述&#xff1a; 在运行playwright的自动化测试项目时&#xff0c;使用npm run test无头模式运行正常&#xff0c;但使用…

深度学习模型:门控循环单元(GRU)详解

本文深入探讨了门控循环单元&#xff08;GRU&#xff09;&#xff0c;它是一种简化版的长短期记忆网络&#xff08;LSTM&#xff09;&#xff0c;在处理序列数据方面表现出色。文章详细介绍了 GRU 的基本原理、与 LSTM 的对比、在不同领域的应用以及相关的代码实现&#xff0c;…

用html+jq实现元素的拖动效果——js基础积累

用htmljq实现元素的拖动效果 效果图如下&#xff1a; 将【item10】拖动到【item1】前面 直接上代码&#xff1a; html部分 <ul id"sortableList"><li id"item1" class"w1" draggable"true">Item 1</li><li …

单片机学习笔记 12. 定时/计数器_定时

更多单片机学习笔记&#xff1a;单片机学习笔记 1. 点亮一个LED灯单片机学习笔记 2. LED灯闪烁单片机学习笔记 3. LED灯流水灯单片机学习笔记 4. 蜂鸣器滴~滴~滴~单片机学习笔记 5. 数码管静态显示单片机学习笔记 6. 数码管动态显示单片机学习笔记 7. 独立键盘单片机学习笔记 8…

【乐企文件生成工程】搭建docker环境,使用docker部署工程

1、自行下载docker 2、自行下载docker-compose 3、编写Dockerfile文件 # 使用官方的 OpenJDK 8 镜像 FROM openjdk:8-jdk-alpine# 设置工作目录 WORKDIR ./app# 复制 JAR 文件到容器 COPY ../lq-invoice/target/lq-invoice.jar app.jar # 暴露应用程序监听的端口 EXPOSE 1001…

React基础知识三 router路由全指南

现在最新版本是Router6和Router5有比较大的变化&#xff0c;Router5和Router4变化不大&#xff0c;本文以Router6的写法为主&#xff0c;也会对比和Router5的不同。比较全面。 安装路由 npm i react-router-dom基本使用 有两种Router&#xff0c;BrowserRouter和HashRouter&…

【C#】书籍信息的添加、修改、查询、删除

文章目录 一、简介二、程序功能2.1 Book类属性&#xff1a;方法&#xff1a; 2.2 Program 类 三、方法&#xff1a;四、用户界面流程&#xff1a;五、程序代码六、运行效果 一、简介 简单的C#控制台应用程序&#xff0c;用于管理书籍信息。这个程序将允许用户添加、编辑、查看…

打造去中心化交易平台:公链交易所开发全解析

公链交易所&#xff08;Public Blockchain Exchange&#xff09;是指基于公有链&#xff08;如以太坊、波场、币安智能链等&#xff09;建立的去中心化交易平台。与传统的中心化交易所&#xff08;CEX&#xff09;不同&#xff0c;公链交易所基于区块链技术实现资产交换的去中心…

CLIP模型也能处理点云信息

✨✨ 欢迎大家来访Srlua的博文&#xff08;づ&#xffe3;3&#xffe3;&#xff09;づ╭❤&#xff5e;✨✨ &#x1f31f;&#x1f31f; 欢迎各位亲爱的读者&#xff0c;感谢你们抽出宝贵的时间来阅读我的文章。 我是Srlua小谢&#xff0c;在这里我会分享我的知识和经验。&am…

关于NXP开源的MCU_boot的项目心得

MCU的启动流程细查 注意MCU上电第一个函数运行的就是Reset_Handler函数&#xff0c;下图是表示了这个函数做了啥事情&#xff0c;注意加强一下对RAM空间的段的印象&#xff0c;从上到下是栈&#xff0c;堆&#xff0c;.bss段&#xff0c;.data段。 bootloader的难点 固件完…

MySQL5.6升级MySQL5.7

升级方式介绍 08 数据库服务版本升级方法 5.6 – 5.7 – 8.0 数据库版本升级方法&#xff1a; Inplace-本地升级 步骤一&#xff1a;在同一台服务器中&#xff0c;需要部署高版本数据库服务实例步骤二&#xff1a;低版本数据库中的数据进行备份迁移&#xff0c;迁移到高版本…

怎么理解BeamSearch?

在大模型推理中&#xff0c;常会用到BeamSearch&#xff0c;本文就BeamSearch原理与应用理解展开讲解。 一、BeamSearch原理 Beam Search 是一种启发式搜索算法&#xff0c;常用于自然语言处理&#xff08;NLP&#xff09;和其他需要生成序列的任务中&#xff0c;比如机器翻译…

shodan2-批量查找CVE-2019-0708漏洞

声明&#xff01; 学习视频来自B站up主 泷羽sec 有兴趣的师傅可以关注一下&#xff0c;如涉及侵权马上删除文章&#xff0c;笔记只是方便各位师傅的学习和探讨&#xff0c;文章所提到的网站以及内容&#xff0c;只做学习交流&#xff0c;其他均与本人以及泷羽sec团队无关&#…

SciPy Optimize和 CVXPY对比

CVXPY和SciPy Optimize模块都是在Python中解决优化问题的强大工具&#xff0c;但它们是为不同类型的问题而设计的&#xff0c;具有不同的优点和局限性。本文对比两者的优缺点&#xff0c;阐述各自的应用场景&#xff0c;同时解释常用求解器&#xff0c;并给出实际示例进行说明。…

DevOps工程技术价值流:GitLab源码管理与提交流水线实践

在当今快速迭代的软件开发环境中&#xff0c;DevOps&#xff08;开发运维一体化&#xff09;已经成为提升软件交付效率和质量的关键。而GitLab&#xff0c;作为一个全面的开源DevOps平台&#xff0c;不仅提供了强大的版本控制功能&#xff0c;还集成了持续集成/持续交付(CI/CD)…

Android Studio 右侧工具栏 Gradle 不显示 Task 列表

问题&#xff1a; android studio 4.2.1版本更新以后AS右侧工具栏Gradle Task列表不显示&#xff0c;这里需要手动去设置 解决办法&#xff1a; android studio 2024.2.1 Patch 2版本以前的版本设置&#xff1a;依次打开 File -> Settings -> Experimental 选项&#x…

Linux详解:文件权限

文章目录 前言Linux文件权限基础文件成员与三组权限字符 权限的修改修改文件所有者总结 前言 在浩瀚的操作系统世界中&#xff0c;Linux以其开源、灵活和强大的特性&#xff0c;成为了服务器、开发环境以及众多个人用户的首选。而在Linux的众多特性中&#xff0c;文件权限机制…