Replies: 14 comments
-
Beta Was this translation helpful? Give feedback.
-
>>> a8945267 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
>>> a8945267 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
>>> Oymate |
Beta Was this translation helpful? Give feedback.
-
>>> a8945267 |
Beta Was this translation helpful? Give feedback.
-
>>> othiele |
Beta Was this translation helpful? Give feedback.
-
>>> Oymate |
Beta Was this translation helpful? Give feedback.
-
>>> Oymate |
Beta Was this translation helpful? Give feedback.
-
>>> othiele |
Beta Was this translation helpful? Give feedback.
-
>>> Oymate |
Beta Was this translation helpful? Give feedback.
-
>>> othiele |
Beta Was this translation helpful? Give feedback.
-
>>> lissyx |
Beta Was this translation helpful? Give feedback.
-
>>> a8945267
[September 12, 2019, 3:41am]
I got some error, while using 'make apk' instruction.
How can I fix it? slash
thanks a lot.
(deepspeech-venv)
wmlab slash wmlab-317server: slash ~/deepvoice/DeepSpeech/native_client/java slash $ make
apk slash
./gradlew clean
> Configure project :libdeepspeech slash
> arm64-v8a armeabi-v7a x86_64 slash
> Task :libdeepspeech:externalNativeBuildCleanDebug slash
> Clean deepspeech-jni armeabi-v7a,deepspeech-lib armeabi-v7a slash
> Cleaning... 0 files. slash
> Clean deepspeech-lib arm64-v8a,deepspeech-jni arm64-v8a slash
> Cleaning... 0 files. slash
> Clean deepspeech-jni x86_64,deepspeech-lib x86_64 slash
> Cleaning... 0 files.
BUILD SUCCESSFUL in 0s slash
5 actionable tasks: 2 executed, 3 up-to-date slash
rm -rf slash *.java jni/deepspeech_wrap.cpp slash
swig -c++ -java -package org.mozilla.deepspeech.libdeepspeech -outdir
libdeepspeech/src/main/java/org/mozilla/deepspeech/libdeepspeech/ -o
jni/deepspeech_wrap.cpp jni/deepspeech.i slash
./gradlew build
> Configure project :libdeepspeech slash
> arm64-v8a armeabi-v7a x86_64 slash
> Task :libdeepspeech:externalNativeBuildDebug FAILED slash
> Build deepspeech-jni x86_64 slash
> slash [1/2 slash ] Building CXX object
> CMakeFiles/deepspeech-jni.dir/home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp.o slash
> slash [2/2 slash ] Linking CXX shared library
> .../.../.../.../build/intermediates/cmake/debug/obj/x86_64/libdeepspeech-jni.so slash
> FAILED: : &&
> /home/wmlab/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
> slash --target=x86_64-none-linux-android21
> slash --gcc-toolchain=/home/wmlab/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64
> slash --sysroot=/home/wmlab/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/sysroot
> -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables
> -fstack-protector-strong -no-canonical-prefixes -fno-addrsig
> -Wa,--noexecstack -Wformat -Werror=format-security -O0
> -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a
> -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id
> -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined
> -Qunused-arguments -Wl,-z,noexecstack -shared
> -Wl,-soname,libdeepspeech-jni.so -o
> .../.../.../.../build/intermediates/cmake/debug/obj/x86_64/libdeepspeech-jni.so
> CMakeFiles/deepspeech-jni.dir/home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp.o
> .../.../.../.../libs/x86_64/libdeepspeech.so
> /home/wmlab/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/x86_64-linux-android/21/liblog.so
> -latomic -lm && cd
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/libdeepspeech/.externalNativeBuild/cmake/debug/x86_64
> && /home/wmlab/Android/Sdk/cmake/3.6.4111459/bin/cmake -E copy
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/libdeepspeech/libs/x86_64/libdeepspeech.so
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/libdeepspeech/build/intermediates/cmake/debug/obj/x86_64/libdeepspeech.so slash
> /home/wmlab/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/lib/gcc/x86_64-linux-android/4.9.x/.../.../.../.../x86_64-linux-android/bin/ld:
> error: .../.../.../.../libs/x86_64/libdeepspeech.so: incompatible
> target slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:919:
> error: undefined reference to 'DS_FreeMetadata' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1517:
> error: undefined reference to 'DS_CreateModel' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1531:
> error: undefined reference to 'DS_DestroyModel' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1565:
> error: undefined reference to 'DS_EnableDecoderWithLM' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1589:
> error: undefined reference to 'DS_SpeechToText' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1593:
> error: undefined reference to 'DS_FreeString' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1613:
> error: undefined reference to 'DS_SpeechToTextWithMetadata' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1633:
> error: undefined reference to 'DS_SetupStream' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1650:
> error: undefined reference to 'DS_FeedAudioContent' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1664:
> error: undefined reference to 'DS_IntermediateDecode' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1666:
> error: undefined reference to 'DS_FreeString' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1679:
> error: undefined reference to 'DS_FinishStream' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1681:
> error: undefined reference to 'DS_FreeString' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1694:
> error: undefined reference to 'DS_FinishStreamWithMetadata' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1706:
> error: undefined reference to 'DS_DiscardStream' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1717:
> error: undefined reference to 'DS_FreeMetadata' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1731:
> error: undefined reference to 'DS_FreeString' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1739:
> error: undefined reference to 'DS_PrintVersions' slash
> clang++: error: linker command failed with exit code 1 (use -v to see
> invocation) slash
> ninja: build stopped: subcommand failed.
FAILURE: Build failed with an exception.
Execution failed for task ':libdeepspeech:externalNativeBuildDebug'.
> Build command failed. slash
> Error while executing process
> /home/wmlab/Android/Sdk/cmake/3.6.4111459/bin/cmake with arguments
> {--build
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/libdeepspeech/.externalNativeBuild/cmake/debug/x86_64
> slash --target deepspeech-jni} slash
> slash [1/2 slash ] Building CXX object
> CMakeFiles/deepspeech-jni.dir/home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp.o slash
> slash [2/2 slash ] Linking CXX shared library
> .../.../.../.../build/intermediates/cmake/debug/obj/x86_64/libdeepspeech-jni.so slash
> FAILED: : &&
> /home/wmlab/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
> slash --target=x86_64-none-linux-android21
> slash --gcc-toolchain=/home/wmlab/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64
> slash --sysroot=/home/wmlab/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/sysroot
> -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables
> -fstack-protector-strong -no-canonical-prefixes -fno-addrsig
> -Wa,--noexecstack -Wformat -Werror=format-security -O0
> -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a
> -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id
> -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined
> -Qunused-arguments -Wl,-z,noexecstack -shared
> -Wl,-soname,libdeepspeech-jni.so -o
> .../.../.../.../build/intermediates/cmake/debug/obj/x86_64/libdeepspeech-jni.so
> CMakeFiles/deepspeech-jni.dir/home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp.o
> .../.../.../.../libs/x86_64/libdeepspeech.so
> /home/wmlab/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/x86_64-linux-android/21/liblog.so
> -latomic -lm && cd
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/libdeepspeech/.externalNativeBuild/cmake/debug/x86_64
> && /home/wmlab/Android/Sdk/cmake/3.6.4111459/bin/cmake -E copy
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/libdeepspeech/libs/x86_64/libdeepspeech.so
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/libdeepspeech/build/intermediates/cmake/debug/obj/x86_64/libdeepspeech.so slash
> /home/wmlab/Android/Sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/linux-x86_64/lib/gcc/x86_64-linux-android/4.9.x/.../.../.../.../x86_64-linux-android/bin/ld:
> error: .../.../.../.../libs/x86_64/libdeepspeech.so: incompatible
> target slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:919:
> error: undefined reference to 'DS_FreeMetadata' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1517:
> error: undefined reference to 'DS_CreateModel' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1531:
> error: undefined reference to 'DS_DestroyModel' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1565:
> error: undefined reference to 'DS_EnableDecoderWithLM' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1589:
> error: undefined reference to 'DS_SpeechToText' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1593:
> error: undefined reference to 'DS_FreeString' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1613:
> error: undefined reference to 'DS_SpeechToTextWithMetadata' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1633:
> error: undefined reference to 'DS_SetupStream' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1650:
> error: undefined reference to 'DS_FeedAudioContent' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1664:
> error: undefined reference to 'DS_IntermediateDecode' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1666:
> error: undefined reference to 'DS_FreeString' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1679:
> error: undefined reference to 'DS_FinishStream' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1681:
> error: undefined reference to 'DS_FreeString' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1694:
> error: undefined reference to 'DS_FinishStreamWithMetadata' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1706:
> error: undefined reference to 'DS_DiscardStream' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1717:
> error: undefined reference to 'DS_FreeMetadata' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1731:
> error: undefined reference to 'DS_FreeString' slash
> /home/wmlab/deepvoice/DeepSpeech/native_client/java/jni/deepspeech_wrap.cpp:1739:
> error: undefined reference to 'DS_PrintVersions' slash
> clang++: error: linker command failed with exit code 1 (use -v to see
> invocation) slash
> ninja: build stopped: subcommand failed.
Run with slash --stacktrace option to get the stack trace. Run with
slash --info or slash --debug option to get more log output. Run with slash --scan
to get full insights.
BUILD FAILED in 2s slash
38 actionable tasks: 35 executed, 3 up-to-date slash
Makefile:23: recipe for target 'apk' failed slash
make: slash DEEPSPEECH.cdx deepspeech.commands DEEPSPEECH.pages DEEPSPEECH.warc.gz discourse.mozilla.org html-to-markdown.sh shell-conver-html-to-split-posts.sh sorted-deepspeech-posts slash DEEPSPEECH.cdx deepspeech.commands DEEPSPEECH.pages DEEPSPEECH.warc.gz discourse.mozilla.org html-to-markdown.sh shell-conver-html-to-split-posts.sh sorted-deepspeech-posts slash DEEPSPEECH.cdx deepspeech.commands DEEPSPEECH.pages DEEPSPEECH.warc.gz discourse.mozilla.org html-to-markdown.sh shell-conver-html-to-split-posts.sh sorted-deepspeech-posts slash [apk slash ] Error 1
[This is an archived TTS discussion thread from discourse.mozilla.org/t/how-to-use-the-android-demo]
Beta Was this translation helpful? Give feedback.
All reactions