AICamera
AICamera copied to clipboard
Expected NDK STL shared object file libgnustl_shared.so
I googled around & wasn't able to find a solution for this error when I build this in Android Studio (v3.1.4):
Expected NDK STL shared object file at /Users/username/Library/Android/sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_shared.so
same here: Expected NDK STL shared object file at /home/antonio/Android/Sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_shared.so
Have you manage to solve the issue?
After I downgrade the NDK version, the probelm solved for me
If you installed NDK from Android Studio and you encountered the aforementioned issue, it means you have an higher version of it currently not compatible with the project. The simplest thing to do is to downgrade manually to NDK r17c. In order to do that you have to remove the ndk-bundle
from your Android SDK home directory, download the bundle manually and substitute it. Here are the commands in Linux:
mv ~/Android/Sdk/ndk-bundle ~/Android/Sdk/ndk-bundle-backup
wget https://dl.google.com/android/repository/android-ndk-r17c-linux-x86_64.zip
unzip android-ndk-r17c-linux-x86_64.zip
mv android-ndk-r17c ~/Android/Sdk/ndk-bundle
Is there a better solution to this?
In particular, if one has installed NDK via the Android Studio gui, it's completely non obvious how to downgrade. Also one might not be using Linux.
i have installed NDK from the Android Studio ,i don't konw how to downgrade.
I updated my previous comment with a bit more info, hope it helps!
Is this project ever going to be made compatible with current tooling? e.g. current NDK?
Without (re)moving your existing NDK for other projects, you can download and extract NDK 17c (https://dl.google.com/android/repository/android-ndk-r17c-linux-x86_64.zip), and place it anywhere on your computer. Open the local.properties
file in your project folder, and change the ndk.dir
to the location that you just extracted the NDK17.c to.
https://github.com/caffe2/AICamera 9 months since last commit