Menu

Pocketsphinx on Android after renamaming

Help
ForceU
2011-12-07
2012-09-22
  • ForceU

    ForceU - 2011-12-07

    Hi,

    I spent hours on figuring out, how I can actually rename the demo package into
    something useful (eg com.myname.foo).

    The problem is, that the project runs fine if I leave the package name and
    works without any problems (apart from random crashes), but when I rename it,
    i get the error

    FATAL EXCEPTION: main
    E/AndroidRuntime(27162): java.lang.UnsatisfiedLinkError: new_Config__SWIG_0
    

    I already tried modifying the Swig command, but it didn't work either.

    Any ideas?

     
  • Nickolay V. Shmyrev

    If you changed something it's recommended to describe the changes more
    precisely. Most likely you just forgot some small thing. For example you can
    pack whole changed code into archive and upload it somewhere.

    If you have link command issue it's most likely you forgot to change the SWIG
    launch properties (.externalToolBuilders/SWIG.launch). Those properties have
    several places to mention edu.cmu.sphinx package.

     
  • Nickolay V. Shmyrev

    The problem is resolved. The problem was that one forgot to add

    static {
        System.loadLibrary("pocketsphinx_jni");
    }
    

    to the Activity class.

     

Log in to post a comment.