When running the example Android app on a phone everything works well when using the snpe-release.aar from SNPE 1.2.2. However, the same file in 1.4.0 is 3 times smaller in size and results in an immediate crash with the message that libgnustl_shared.so cannot be found. I guess it was forgotten to be bundled in the .aar file.
Android AAR issue with 1.4.0
Posted: Fri, 2017-09-08 02:50
Hi CN,
it appears you have not run SNPE SDK setup script ($SNPE_ROOT/bin/envsetup.sh), which patches snpe-release.aar with libgnustl_shared.so.
Thanks
Yes, my bad, forgot to re-run the setup script after installing the new SDK. You can consider this issue solved.
this commond: source ./bin/envsetup.sh -t ~/tensorflow # optional for this guide
there is a crash :con't crash /snpe-1.19.2/lib/aarch64-android-gcc4.9/libgnustl_shared.so" 的文件状态(stat): 没有那个文件或目录
Facing the same issue of libgnustl_shared.so not found, while trying to set environmental variables for caffe/tensorflow using in snpe-sdk folder. SNPE version is 1.21.0.
The libgnustl_shared.so is not found is happening because of the uses of wrong Android-NDK version. In the documentation of Setup, The version for NDK was mentioned in given URL. Android NDK version should be android-ndk-r11-linux-x86(R11).
libgnustl_shared.so is not present in current NDK version r18.