Menu

Pocketsphinx unable to swig error unable to find 'iterators.i

Help
2019-10-09
2019-10-10
  • thierry LE CONNIAT

    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

     
    • Nickolay V. Shmyrev

      It is part of sphinxbase. You'd better use existing makefiles instead of running commands yourself.

       
  • thierry LE CONNIAT

    I use also the make command in folder swig/java ! and it do what i said !

     
    • Nickolay V. Shmyrev

      Please provide the exact output.

       
  • thierry LE CONNIAT

    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

     
    • Nickolay V. Shmyrev

      sphinxbase should be in ../../../sphinxbase, not in ../../../sphinxbase-master

      The structure to compile the files should be:

      top_folder
          pocketsphinx
          sphinxbase
          sphinxtrain
      

      without any -master in folder names.

       
  • thierry LE CONNIAT

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.