cmusphinx - Exception loading pocketsphinx_jni while running PocketSphinxDemo on Android device -


i've been trying pocketsphinx demo android running on device couple days now. whenever try run demo, however, error in logcat:

fatal exception: main java.lang.exceptionininitializererror     @ java.lang.class.newinstanceimpl(native method) 

then bunch of more errors, important last 1 is

    @ edu.cmu.pocketsphinx.demo.pocketsphinxdemo.<clinit>(pocketsphinxdemo.java.18) 

line 18 in pocketsphinxdemo.java is

system.loadlibrary("pocketsphinx_jni"); 

when go pocketsphinx_jni folder, located in /pocketsphinxandroiddemo/obj/local/armeabi/objs-debug, appears empty. running ubuntu, if @ relevant. there should in folder? causing error? sort of answer appreciated.

when go pocketsphinx_jni folder, located in /pocketsphinxandroiddemo/obj/local/armeabi/objs-debug, appears empty.

system.loadlibrary doesn't load folder, loads library. libpocketsphinx_jni.so library built ndk-build during build process. objs-debug/pocketsphinx_jni temporary folder used build library, supposed contain temporary files. library must located in demo/libs/armeabi/ libpocketsphinx_jni.so

is there should in folder?

in particular folder should have files pocketsphinx_wrap.o.d. files created ndk-build.

what causing error?

you didn't run ndk-build or there errors during ndk-build , ignored them.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -