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?
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
/usr/local/include/sphinxbase
/usr/local/include
Log in to post a comment.
When I run this :
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:
And after check, I saw I have "sphinx_config.h" in "/usr/local/include/sphinxbase" directory!
So, what's the problem?
You need to run it from command line in terminal
You need to properly set include path in IDE, it should include both
/usr/local/include/sphinxbase
and/usr/local/include