Menu

How to execute "hello_ps" ?

Help
rezaee
2016-11-18
2016-11-18
  • rezaee

    rezaee - 2016-11-18

    When I run this :

    gcc -o hello_ps hello_ps.c \
        -DMODELDIR=\"`pkg-config --variable=modeldir pocketsphinx`\" \
        pkg-config --cflags --libs pocketsphinx sphinxbase`
    

    It makes a file named "hello_ps" but how can I execute this file(I tried with right-click but nothing happend).

    And what should be the results?

    Also I have another question. I tried to run this code in codeblocks but I got this error:

    ||=== Build: Debug in test1 (compiler: GNU GCC Compiler) ===|
    /usr/local/include/sphinxbase/prim_type.h|88|fatal error: sphinx_config.h: No such file or directory|
    ||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
    

    And after check, I saw I have "sphinx_config.h" in "/usr/local/include/sphinxbase" directory!
    So, what's the problem?

     
    • Nickolay V. Shmyrev

      It makes a file named "hello_ps" but how can I execute this file(I tried with right-click but nothing happend).

      You need to run it from command line in terminal

      And after check, I saw I have "sphinx_config.h" in "/usr/local/include/sphinxbase" directory!

      You need to properly set include path in IDE, it should include both /usr/local/include/sphinxbase and /usr/local/include

       

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.