gpt4 book ai didi

android - 关于 PocketSphinxAndroidDemo

转载 作者:行者123 更新时间:2023-11-30 03:54:49 25 4
gpt4 key购买 nike

我关注这个网站:http://cmusphinx.sourceforge.net/2011/05/building-pocketsphinx-on-android/ .起初它工作正常。但是当我在文件/jni/中命令 ndk-build 时。错误显示如下:

Compile thumb  : sphinxutil <= sbthread.c
Compile thumb : sphinxutil <= utf8.c
StaticLibrary : libsphinxutil.a
SharedLibrary : libpocketsphinx_jni.so

/home/tian/develop/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/
prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/tian/桌面/PocketSphinxAndroidDemo/obj/local/armeabi/objs-debug/pocketsphinx_jni/pocketsphinx_wrap.o: in function nbest_s_hyp:/home/tian/桌面/PocketSphinxAndroidDemo/jni/pocketsphinx_wrap.c:793: error: undefined reference to 'new_Hypothesis'

/home/tian/develop/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/tian/桌面/PocketSphinxAndroidDemo/obj/local/armeabi/objs-debug/pocketsphinx_jni/pocketsphinx_wrap.o: in function ps_decoder_s_getHyp:/home/tian/桌面/PocketSphinxAndroidDemo/jni/pocketsphinx_wrap.c:847: error: undefined reference to 'new_Hypothesis'
collect2: ld returned 1 exit status
make: *** [/home/tian/桌面/PocketSphinxAndroidDemo/obj/local/armeabi/libpocketsphinx_jni.so] Error 1

最佳答案

您是否粘贴了 pocketsphinx 父目录的绝对路径?喜欢/home/.../.../.../pocketsphinx代替~/../.../.../pocketsphinx

关于android - 关于 PocketSphinxAndroidDemo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13514793/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com