Search code examples
cubuntucmusphinxgeditpocketsphinx

Using pocketsphinx in c


I am trying to install and use pocketsphinx on ubuntu in c language but I keep getting this error

/Desktop/Programming/C/Tests$ gcc libraries.c -o libraries

libraries.c:2:26: fatal error: pocketsphinx.h: No such file or directory
#include <pocketsphinx.h>
                      ^
compilation terminated.

I have followed the step required to install sphinxbase and pocketsphinx found here but I keep getting the error every time I compile my code. Is there something i missed?


Solution

  • How did you install pocketsphinx? and what do you mean by "installing" To work with a library you first need to have the headers in place where your compiler can find them (for GCC for example by using the -I option) and then you need to have the library installed so your compiler can build against it. Judging from the error you didn't specify the header files of the library to your compiler