关于PocketSphinxAndroidDemo

时间:2012-11-22 14:28:55

标签: android ubuntu cmusphinx

我关注此网站:http://cmusphinx.sourceforge.net/2011/05/building-pocketsphinx-on-android/。一开始它工作正常。但是当我在文件/ jni /下cmd 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

1 个答案:

答案 0 :(得分:1)

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