0
  • 最佳答案

    libtinfo.so.5


    一搜这个,不就有了么?


    1153952789488054272  评论     打赏       拉大锯
    • A lonely cat  回复 @拉大锯
      后面还报了另外的错误 不过已经解决了(但是忘了咋解决的了,没注意) 顺便说一句,康师傅 NB!
      A lonely cat 2021-09-15 19:30   回复 1204736502274318336
  • [  0% 2/79106] host C++: aapt <= frameworks/base/tools/aapt/Main.cpp
    FAILED: out/hostnux-x86/obj/EXECUTABLES/aapt_intermediates/Main.o 
    


    这个,你可以理解为Main.cpp编译为Main.o失败了。


    为什么呢?


    往下看呀:


    /bin/bash -c "PWD=/proclf/cwd  prebuilts/clang/hostnux-x86/clang-4691093/bin/clang++ 
     -I frameworks/base/tools/aapt
     -I out/hostnux-x86/obj/EXECUTABLES/aapt_intermediates 
     -I out/hostnux-x86/gen/EXECUTABLES/aapt_intermediates 
     -I libnativehelper/include_jni \$(cat out/hostnux-x86/obj/EXECUTABLES/aapt_intermediates/import_includes) 
     -I system/core/include 
     -I system/media/audio/include 
     -I hardwarebhardware/include 
     -I hardwarebhardware_legacy/include 
     -I hardware/ril/include -
     I libnativehelper/include 
     -I frameworks/native/include 
     -I frameworks/native/opengl/include 
     -I frameworks/av/include  -
     c  -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector 
     -D__STDC_FORMAT_MACROS 
     -D__STDC_CONSTANT_MACROS 
     --gcc-toolchain=prebuilts/gccnux-x86/host/x86_64-linux-glibc2.15-4.8 
     --sysroot prebuilts/gccnux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot 
     -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall 
     -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions 
     -Wno-multichar -O2 -g -fno-strict-aliasing -fdebug-prefix-map=/proclf/cwd= 
     -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro 
     -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics 
     -Wno-expansion-to-defined -Wno-zero-as-null-pointer-constant -fdebug-prefix-map=\$PWD/=   -target x86_64-linux-gnu 
     -Bprebuilts/gccnux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin  -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference 
     -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -Wno-gnu-include-next  
     -isystem prebuilts/gccnux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8
     -isystem prebuilts/gccnux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward 
     -isystem prebuilts/gccnux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux 
     -std=gnu++14  -DAAPT_VERSION=\\\"\$(cat outild_number.txt)\\\" -Wall -Werror -fPIE -D_USING_LIBCXX -DANDROID_STRICT -nostdinc++ 
     -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type 
     -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch   
     -MD -MF out/hostnux-x86/obj/EXECUTABLES/aapt_intermediates/Main.d -o out/hostnux-x86/obj/EXECUTABLES/aapt_intermediates/Main.o frameworks/base/tools/aapt/Main.cpp"
    


    这是啥?这是编译指令呀,编译谁,参数是啥,输出是啥,都有了。


    为什么会失败呢?


    prebuilts/clang/hostnux-x86/clang-4691093/bin/clang++.real: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
    


    libtinfo.so.5: cannot open shared object file: No such file or directory


    你这个共享库没有呀!!!!


    说明你的环境有问题呀,是不是安装的时候漏掉啥了呀。


    怎么办呢?


    装这个库:libtinfo.so,怎么装,是什么模块的?


    搜索一下就知道了。



    1153952789488054272  评论     打赏       拉大锯
    相关问题
    2023-11-21 15:11 12 2
    陈钱罐16 · 领券联盟
    2023-11-11 18:09 20 8
    哈哈android · AOSP
    2023-11-10 15:52 12 12
    2023-11-10 00:26 20 10
    zhanghengze · Android
    2023-10-26 21:52 20 8
    Cstri · gradle
    2023-10-01 14:47 24 8