hi,
when for Pocketsphinx (from git) , I try to build the bindings for java with swig command ,
i get an error ==> unable to find 'iterators.i
From swig/java : i do the make and the program try to find <iterators.i> in up folders but none .</iterators.i>
The command : swig -java pocketsphinx .i has the same error!
where is this file <iterators.i> ? must i generate it and how?</iterators.i>
My purpose is to suceed in compiling and executing the class java decoderTest.java in swig/java.
COuld you help me in this ?
hi,
when for Pocketsphinx (from git) , I try to build the bindings for java with swig command ,
i get an error ==> unable to find 'iterators.i
From swig/java : i do the make and the program try to find <iterators.i> in up folders but none .</iterators.i>
The command : swig -java pocketsphinx .i has the same error!
where is this file <iterators.i> ? must i generate it and how?</iterators.i>
My purpose is to suceed in compiling and executing the class java decoderTest.java in swig/java.
COuld you help me in this ?
thanks a lot for your help !!
thierry
It is part of sphinxbase. You'd better use existing makefiles instead of running commands yourself.
I use also the make command in folder swig/java ! and it do what i said !
Please provide the exact output.
here is the output
:~/pocketsphinx/pocketsphinx-master/swig/java$
make
mkdir -p edu/cmu/pocketsphinx
swig -I.. -I../../../sphinxbase/swig -I../include -I../../sphinxbase/include -java -package edu.cmu.pocketsphinx -outdir edu/cmu/pocketsphinx -o pocketsphinx_wrap.c ../pocketsphinx.i
../pocketsphinx.i:64: Error: Unable to find 'iterators.i'
../pocketsphinx.i:65: Error: Unable to find 'sphinxbase.i'
Makefile:14: recipe for target 'pocketsphinx_wrap.c' failed
make: *** [pocketsphinx_wrap.c] Error 1
sphinxbase should be in ../../../sphinxbase, not in ../../../sphinxbase-master
The structure to compile the files should be:
without any -master in folder names.
oh yes i see now , I have renamed in makefile the folder and it finish in creation class JAVA in edu/cmu/pocketsphinx !
thx a lot Nickolay