Menu

Problem compiling pocketsphinx (visual studio

Help
2010-01-29
2012-09-22
  • Mike Medved

    Mike Medved - 2010-01-29

    Hi - In addition to the missing file I posted in the "Open discussions"
    section, when I try to compile a clean build (from SVN) of pocketsphinx, I get
    the following Link errors;

    2>batch.obj : error LNK2019: unresolved external symbol _dict_real_word
    referenced in function _write_ctm
    2>batch.obj : error LNK2019: unresolved external symbol _dict_wordid
    referenced in function _write_ctm

    The sphinxbase and pocketsphinx libraries both compile correctly, but when I
    go to build the batch processing program, I get these link errors. It doesn't
    seem to make sense because bot functions exist in the file "dict.c" in the
    pocketsphinx library.

    Help/Thoughts?

    M

     
  • Mike Medved

    Mike Medved - 2010-01-29

    Ok, I figured this out (painfully). I bet that you guys mostly compile on
    linux/unix/whatever, because what happened is a windows only issue. Since you
    are using S3kr3t headerz to get the functions in dict.h, you must do a couple
    of things.

    1. The directory must be in the include path - add ../../../src/libpocketsphinx; to "Additional Include Directories"
    2. Modify dict.h - add #include <pocketsphinx_export.h>
      Add POCKETSPHINX_EXPORT before the two functions dict_real_word and
      dict_wordid. </pocketsphinx_export.h>

    Obviously, these are hacks and I'm sure you guys are going to do something
    different to actually solve the problem, I just thought I'd put this out there
    in the meanwhile.

    M

     
  • Nickolay V. Shmyrev

    Thanks, Mike. Yes, it's a work in progress.

     
  • Nickolay V. Shmyrev

    This should be solved in trunk. Please test.

     

Log in to post a comment.