- 在demo的jni 下运行ndk-build得到的部分错误信息:
```/home/nkumtl/workspace/ndk32/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /home/nkumtl/sphinx/demo/obj/local/armeabi/objs-debug/pocketsphinx_jni/pocketsphinx_wrap.o: in function ps_decoder_s_getHyp:/home/nkumtl/sphinx/demo/jni/pocketsphinx_wrap.c:874: error: undefined reference to 'new_Hypothesis'
collect2: ld returned 1 exit status
make: *** [/home/nkumtl/sphinx/demo/obj/local/armeabi/libpocketsphinx_jni.so] Error 1
本来在没有安装adt jdk之前(只有命令行安装的eclipse的时候)是没有报错的,安了以后就错了。error1到底是什么的错呢。
路径什么的都应该是没有错的,在Android.mk中需要改的两处也都改了。
2. 看有的大神说 这个问题
undefined reference to 'new_Hypothesis'
是swig版本的问题,我已经换了swig1.3.40,但还是没有用。
求帮助。。。
3. 还有想问一下打印出来的类似的
```[armeabi] Compile thumb : pocketsphinx <= acmod.c
[armeabi] Compile thumb : pocketsphinx <= bin_mdef.c
[armeabi] Compile thumb : pocketsphinx <= blkarray_list.c
[armeabi] Compile thumb : pocketsphinx <= dict.c
[armeabi] Compile thumb : pocketsphinx <= dict2pid.c
[armeabi] Compile thumb : pocketsphinx <= fsg_history.c
[armeabi] Compile thumb : pocketsphinx <= fsg_lextree.c
[armeabi] Compile thumb : pocketsphinx <= fsg_search.c
[armeabi] Compile arm : pocketsphinx <= hmm.c
[armeabi] Compile thumb : pocketsphinx <= mdef.c
[armeabi] Compile arm : pocketsphinx <= ms_gauden.c
[armeabi] Compile arm : pocketsphinx <= ms_mgau.c
这些是错误吗?我有点迷惑这些是什么。