Menu

Make install error PocketSphinx 0.6.1

Help
sam
2012-07-15
2012-09-22
  • sam

    sam - 2012-07-15

    Hi!
    Im new to the Speech recognition world! I have been trying to get Pocketsphinx
    0.6.1 to install. But to no avail.
    The reason I am trying to install 0.6.1 and not 0.7 is that when I tried using
    0.7 I would get a swig error. Thought I would try the previous version.

    These are the details:

    • Windows 7
    • Using Cygwin 1.7.15
    • Sphinxbase has installed with no errors

    I get the following when trying to make Pocketsphinx0.6.1

    continuous.o: In function `main':
    /home/sam/installs/sphinx_final/pocketsphinx/src/programs/continuous.c:363: undefined reference to `__imp__ps_init'
    /home/sam/installs/sphinx_final/pocketsphinx/src/programs/continuous.c:384: undefined reference to `__imp__ps_free'
    collect2: ld returned 1 exit status
    Makefile:316: recipe for target `pocketsphinx_continuous.exe' failed
    make[2]: *** [pocketsphinx_continuous.exe] Error 1
    make[2]: Leaving directory `/home/sam/installs/sphinx_final/pocketsphinx/src/programs'
    Makefile:271: recipe for target `all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/sam/installs/sphinx_final/pocketsphinx/src'
    Makefile:372: recipe for target `all-recursive' failed
    make: *** [all-recursive] Error 1
    

    I have seen a few posts on here who have faced the same problems but there
    doesn't seem to be an answer/solution posted.

    Please need some help here! Thanks in advance

     
  • Nickolay V. Shmyrev

    You need to use pocketsphinx-0.7 or pocketsphinx snapshot. Versino 0.6.1 is
    really obsolete and it should not be used. The issues which were present in
    version 0.6.1 were fixed in 0.7

    If you meet specific issue in 0.7, share more information about it.

     
  • Nickolay V. Shmyrev

    And for Windows it's better to use native build with MS Visual Studio 2010,
    though Cygwin should work too.

     
  • sam

    sam - 2012-07-17

    Thanks for reply. I have actually tried the PocketSpinx snapshot as well. Dont
    remember the error at the moment. Version 0.7 even though no issues while make
    and make installing both Sphinxbase and PocketSphinx..lead to having no SWIG
    folder creation.

    I am actually trying to use PocketSphinx in conjunction with Eclipse (with
    android). I was hoping I didnt have to install clunky software (Visual
    Studio). Guess I have no choice!

     
  • sam

    sam - 2012-07-19

    So I tried to install 0.7 . Sphinxbase has installed (did it first) but
    PocketSphinx is still giving me make errors

    continuous.o: In function `recognize_from_file':
    /home/sam/installs/0.7/pocketsphinx/src/programs/continuous.c:160: undefined reference to `__imp__ps_start_utt'
    /home/sam/installs/0.7/pocketsphinx/src/programs/continuous.c:163: undefined reference to `__imp__ps_process_raw'
    /home/sam/installs/0.7/pocketsphinx/src/programs/continuous.c:186: undefined reference to `__imp__ps_process_raw'
    /home/sam/installs/0.7/pocketsphinx/src/programs/continuous.c:189: undefined reference to `__imp__ps_end_utt'
    continuous.o: In function `print_word_times':
    /home/sam/installs/0.7/pocketsphinx/src/programs/continuous.c:113: undefined reference to `__imp__ps_seg_iter'
    /home/sam/installs/0.7/pocketsphinx/src/programs/continuous.c:118: undefined reference to `__imp__ps_seg_frames'
    /home/sam/installs/0.7/pocketsphinx/src/programs/continuous.c:119: undefined reference to `__imp__ps_seg_prob'
    /home/sam/installs/0.7/pocketsphinx/src/programs/continuous.c:120: undefined reference to `__imp__ps_get_logmath'
    /home/sam/installs/0.7/pocketsphinx/src/programs/continuous.c:121: undefined reference to `__imp__ps_seg_word'
    /home/sam/installs/0.7/pocketsphinx/src/programs/continuous.c:122: undefined reference to `__imp__ps_seg_next'
    continuous.o: In function `recognize_from_file':
    /home/sam/installs/0.7/pocketsphinx/src/programs/continuous.c:194: undefined reference to `__imp__ps_get_hyp'
    continuous.o: In function `recognize_from_microphone':
    /home/sam/installs/0.7/pocketsphinx/src/programs/continuous.c:249: undefined reference to `__imp__ps_start_utt'
    /home/sam/installs/0.7/pocketsphinx/src/programs/continuous.c:249: undefined reference to `__imp__ps_process_raw'
    /home/sam/installs/0.7/pocketsphinx/src/programs/continuous.c:249: undefined reference to `__imp__ps_end_utt'
    /home/sam/installs/0.7/pocketsphinx/src/programs/continuous.c:249: undefined reference to `__imp__ps_get_hyp'
    continuous.o: In function `main':
    /home/sam/installs/0.7/pocketsphinx/src/programs/continuous.c:363: undefined reference to `__imp__ps_init'
    /home/sam/installs/0.7/pocketsphinx/src/programs/continuous.c:384: undefined reference to `__imp__ps_free'
    collect2: ld returned 1 exit status
    Makefile:314: recipe for target `pocketsphinx_continuous.exe' failed
    make[2]: *** [pocketsphinx_continuous.exe] Error 1
    make[2]: Leaving directory `/home/sam/installs/0.7/pocketsphinx/src/programs'
    Makefile:269: recipe for target `all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/sam/installs/0.7/pocketsphinx/src'
    Makefile:362: recipe for target `all-recursive' failed
    make: *** [all-recursive] Error 1
    

    Umm, Im going to install Visual Studio next and try. But in the meantime if
    anyone can help to get this working with just Cygwin I'd be really grateful!

     
  • sam

    sam - 2012-07-20

    Really? I had tried the snapshot as well. I mean I tried a whole lot of
    different versions before I posted on in here. Got some or the error and in
    the end resigned myself to asking for help :)

    Could you possibly send the snapshot links to me?

     
  • sam

    sam - 2012-07-20

    Thanks!
    And I did try from the latest version :) Got errors, googled and found a few
    suggestions which I followed...anyhow. Thanks for the prompt reply. Will let
    you know how it goes with the snapshots!

     
  • sam

    sam - 2012-07-22

    Hey it worked! Pocketsphinx is all done! Now to get it to work with the
    Android Demo project is another story :)

    Thanks for you help nshmyrev!

     
  • sam

    sam - 2012-07-23

    Ok I have another question that may be n00bish... So in the SWIG folder I have
    the following:
    ConfigTest.java
    DecoderTest.java
    goforward.wav
    Hypothesis.java
    LatticeTest.java
    test.cfg

    Whereas I am looking for the following:
    Config.java
    Decoder.java
    Hypothesis.java
    pocketsphinx.java

    Umm what do I do?

     
  • Nickolay V. Shmyrev

    Ok I have another question that may be n00bish... So in the SWIG folder I
    have the following:

    To ask a new question please start a new thread. Describe which version are
    you trying.

     

Log in to post a comment.