All the steps reffered in https://github.com/mozilla/DeepSpeech/blob/v0.6.1/native_client/README.rst is successfully done before android device tag.
i want to use deepspeech in android device. so I am further following steps to do so. but during bazel build for arm64, it is failing with following error.
output error:-
WARNING: The following configs were expanded more than once: [android]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.
WARNING: option ‘–crosstool_top’ was expanded to from both option ‘–config=download_clang’ (source /home/udaram/Desktop/TCS_Internship/DeepspeechModel/tensorflow/.tf_configure.bazelrc) and option ‘–config=android’ (source command line options)
INFO: Analysed target //native_client:libdeepspeech.so (0 packages loaded, 0 targets configured).
INFO: Found 1 target…
ERROR: /home/udaram/Desktop/TCS_Internship/DeepspeechModel/tensorflow/native_client/BUILD:63:1: C++ compilation of rule ‘//native_client:decoder’ failed (Exit 127)
external/androidndk/ndk/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
Target //native_client:libdeepspeech.so failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 9.142s, Critical Path: 0.74s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
If I am doing wrong, please guide me toward right way to generate apk file for Android device.
Thanks in advance @lissyx please guide
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
2
I have no idea what that is, sorry. You’ll have to debug it on our own.
Besides, why do you need to rebuild the APK ? We already have libdeepspeech AAR packaged and published on JCenter …
1 Like
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
3
Anyway, given the command line it’s more of a clang / Android NDK issue than a deepspeech one. On debian there’s a libtinfo5 package, maybe try?
on running DeepSpeech/native_client/java$ ./gradlew libdeepspeech:build
getting output like this…
Configure project :libdeepspeech
arm64-v8a armeabi-v7a x86_64WARNING: Support for ANDROID_NDK_HOME is deprecated and will be removed in the future. Use android.ndkVersion in build.gradle instead.
Support for ANDROID_NDK_HOME is deprecated and will be removed in the future. Use android.ndkVersion in build.gradle instead.
i am not able to follow the exact steps on above given link @lissyx could you eloborate those steps in simple way…
i will be thank full to you.
my goal is to generate deepspeech apk file for android
lissyx
((slow to reply) [NOT PROVIDING SUPPORT])
5
You are linking against wrong version …
no, I can’t make it more simple unless you point what is unclear to you
why do you need to rebuild it, we already have libdeepspeech AAR dependency available on JCenter …