I was able to generate libpocketsphinx_jni.so via swig, and I'm trying to run
ndk-build in the sample project root to create the Java bindings for
pocketsphinx.
Could someone please help me get this test project up and running? I can't
find any documentation on it anywhere, and I would be happy to post a wiki
page explaining how to install pocketsphinx on Android once someone explains
what's going on.
Thanks,
Zach
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can't find any documentation on it anywhere, and I would be happy to post
a wiki page explaining how to install pocketsphinx on Android once someone
explains what's going on.
Hello Zach
Sorry, this is very experimental and new feature, so not much docs out there.
Any help would be welcome.
That's because path is not set properly. See in Makefile:
# You MUST change this to the absolute path of the directory containing# sphinxbase and pocketsphinx source code.SPHINX_PATH:=$(HOME)/Projects/Sphinx/trunk
Also, the layout of sources must be fixed. Same folder should contain both
sphinxbase, pocketsphinx and demo without versions in folder name.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I encountered this error, I had set my SPHINX_PATH to a directory
containing pocketsphinx and sphinxbase. I noticed that sphinxbase/err.h is
present in /usr/include. Is there anything I should add to the SPHINX_PATH?
Thanks,
Zach
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
SPHINX_ROOT should point to root folder with subfolder like pocketsphinx,
sphinxbase, demo. If you have latest sphinxbase, there must be a file
sphinxbase/include/sphinxbase/err.h
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a sphinxbase/include/err.h, but not a
sphinxbase/include/sphinxbase/err.h. The only directories I have in
sphinxbase/include are s60, win32, and wince. I downloaded Sphinxbase 0.6.1
from the downloads page. Should I check the head revision out from SVN?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I ignore the demo directory, I was able to successfully create an .so file.
However, when I try to run the application, I encounter the following error:
Do you know what could we wrong with the builder? Has anyone ever gotten past
this issue in the past?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks, Nickolay. This may be a dumb question, but where did that property
snippet come from? I tried using Eclipse's refactoring tools to rename the
project to PocketSphinxDemo, but I'm still getting the same errors.
Thanks,
Zach
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, they are not mandatory if you can do same actions from console. I think
they will work though, probably you need to adjust few other filenames in
order to make it work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Gotcha, thanks. We're finally getting somewhere! I was able to run the
application, but now I'm running into a runtime error. Here's the Logcat
output:
Has anyone had any luck installing pocketsphinx on Android via the NDK? I've
found the Android project at http://cmusphinx.svn.sourceforge.net/viewvc/cmus
phinx/trunk/PocketSphinxAndroidDemo/, but the project doesn't have
access to any cmu classes, and I don't think the NDK is in there.
I was able to generate libpocketsphinx_jni.so via swig, and I'm trying to run
ndk-build in the sample project root to create the Java bindings for
pocketsphinx.
When I run ndk-build, I get this error:
Could someone please help me get this test project up and running? I can't
find any documentation on it anywhere, and I would be happy to post a wiki
page explaining how to install pocketsphinx on Android once someone explains
what's going on.
Thanks,
Zach
Hello Zach
Sorry, this is very experimental and new feature, so not much docs out there.
Any help would be welcome.
That's because path is not set properly. See in Makefile:
Also, the layout of sources must be fixed. Same folder should contain both
sphinxbase, pocketsphinx and demo without versions in folder name.
When I encountered this error, I had set my SPHINX_PATH to a directory
containing pocketsphinx and sphinxbase. I noticed that sphinxbase/err.h is
present in /usr/include. Is there anything I should add to the SPHINX_PATH?
Thanks,
Zach
SPHINX_ROOT should point to root folder with subfolder like pocketsphinx,
sphinxbase, demo. If you have latest sphinxbase, there must be a file
sphinxbase/include/sphinxbase/err.h
I have a sphinxbase/include/err.h, but not a
sphinxbase/include/sphinxbase/err.h. The only directories I have in
sphinxbase/include are s60, win32, and wince. I downloaded Sphinxbase 0.6.1
from the downloads page. Should I check the head revision out from SVN?
yes
Ok, thanks. And where does the demo directory come from?
If I ignore the demo directory, I was able to successfully create an .so file.
However, when I try to run the application, I encounter the following error:
Do you know what could we wrong with the builder? Has anyone ever gotten past
this issue in the past?
According to properties, the project must be named PocketSphinxDemo and
builder has appropriate location configured:
I think you just need to rename the project and builder will work smoothly.
Otherwise it's always easy to find the issue.
Thanks, Nickolay. This may be a dumb question, but where did that property
snippet come from? I tried using Eclipse's refactoring tools to rename the
project to PocketSphinxDemo, but I'm still getting the same errors.
Thanks,
Zach
There is hidden folder PocketSphinxAndroidDemo/.externalToolBuilders
with files
NDK build.launch SWIG.launch
They must be set in launcher properly. Probably you want to start with clean
checkout. In any case you can just disable builder.
Which builders are mandatory? I tried disabling SWIG and NDK Build and that
reduced the number of errors, but I still have some.
Well, they are not mandatory if you can do same actions from console. I think
they will work though, probably you need to adjust few other filenames in
order to make it work.
Gotcha, thanks. We're finally getting somewhere! I was able to run the
application, but now I'm running into a runtime error. Here's the Logcat
output:
Do you know what JNI_OnLoad should be doing, and why can't it be found?
Thanks,
Zach
I think you should better ask this quesiton on android developers group. Or
search in google, there seems to be many hits on this issue.
Thanks, I'll try that.