铛:加载共享库时出错:libtinfo.so.5:无法打开共享库文件:没有这样的文件或目录

Anu*_*Das 4 android clang android-ndk android-sdk-manager

我正在从https://github.com/substratum/template建立一个底层主题

我在运行时遇到以下错误:

Build command failed.
Error while executing process /home/anubhav/Android/Sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/home/anubhav/AndroidStudioProjects/template/app/src/main/jni/Android.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-24 NDK_OUT=/home/anubhav/AndroidStudioProjects/template/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/home/anubhav/AndroidStudioProjects/template/app/build/intermediates/ndkBuild/debug/lib /home/anubhav/AndroidStudioProjects/template/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libLoadingProcess.so}
[armeabi-v7a] Compile thumb  : LoadingProcess <= LoadingProcess.c
/home/anubhav/Android/Sdk/ndk-bundle/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
make: *** [/home/anubhav/AndroidStudioProjects/template/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs-debug/LoadingProcess/LoadingProcess.o] Error 127 
Run Code Online (Sandbox Code Playgroud)

我正在Manjaro上运行Android Studio 3.0.1。我真的不知道还能提供什么信息,因此请说明是否需要任何信息。

小智 10

ln -s /usr/lib/libncursesw.so.6 /usr/lib/libtinfo.so.5

  • 在我的例子中,`ln -s /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /usr/lib/libtinfo.so.5` ,但是,这对我来说有效并修复了 pytorch 。通常我不喜欢这种类型的答案,但我能说什么......投赞成票。 (2认同)

chk*_*kas 7

我在Debian Buster上遇到了同样的问题。安装Debian软件包'libncurses5'对我来说解决了。


Dan*_*ert 1

libtinfo 不是 Android API。您需要为 Android 构建该库并将其包含在您的 APK 中。