编译报错合集(持续更新)

1 libtinfo.so.5

1.1 Log

/home/son/opt/tool_chain/android-ndk-r17c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

1.2 Install

sudo apt install libtinfo5

1.3 Confirm

:~/sdk/github/rknpu2/examples/rknn_yolov5_demo$ ldconfig -p | grep libtinfo.so
        libtinfo.so.6 (libc6,x86-64) => /lib/x86_64-linux-gnu/libtinfo.so.6
        libtinfo.so.5 (libc6,x86-64) => /lib/x86_64-linux-gnu/libtinfo.so.5

2 无法找到工具链路径

2.1 Log

CMake Error at /usr/share/cmake-3.16/Modules/CMakeDetermineSystem.cmake:99 (message):
  Could not find toolchain file:

你可能感兴趣的:(linux,android,bash,运维)