Menu

[pocketsphinx] Static compiling pocketsphinx

Help
Anonymous
2010-07-13
2012-09-22
  • Anonymous

    Anonymous - 2010-07-13

    Hi,

    I am trying to compile pocketsphinx for a ARM9 processor (S3C2440 - mini2440).
    Compilation was successful, but I would like to compile static to avoid
    problems with libs.

    How can I compile statically pocketsphinx? I tried ./configure -enable-static,
    without success.

    Luis

     
  • Nickolay V. Shmyrev

    sorry, you aren't quite clear. Do you need static libpocketsphinx? It's
    compiled by default and have extention .a which you can link into your
    application.

     
  • Anonymous

    Anonymous - 2010-07-13

    I have this problem:
    ./bin/pocketsphinx_batch
    ./bin/pocketsphinx_batch: error while loading shared libraries:
    libpocketsphinx.so.1: cannot open shared object file: No such file or
    directory

    I would like to avoid this since I need to use exactly same path to use
    pocketsphinx.

    Luis

     
  • Nickolay V. Shmyrev

    cd pocketsphinx/src/programs
    make clean && make CFLAGS="-O2 -static"

     
  • Anonymous

    Anonymous - 2010-07-13

    Thanks, worked.

     

Log in to post a comment.