I am linking against libpocketsphinx a simple c program, but when I compile it, I get the following error: pocketsphinx_interaction.cpp:(.text+0xd2c): undefined reference to ps_get_in_speech
Which I find it very strange since I use other pocketsphinx functions like ps_get_hyp or ps_init. So I ran nm -D libpocketsphinx.1.1.0.so from the terminal to find out if this missing function is present or not in the library, and I found out:
So the function ps_get_in_speech is not present in the shared object libpocketsphinx.1.1.0.so , which I generated by downloadind pocketsphinx-5prealpha and running autogen.sh and make, without errors.
Why is ps_get_in_speech not present amongst the implemented functions in libpocketsphinx.1.1.0.so ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
libpocketsphinx.1.1.0 is pretty old, I'm not sure where did you get it. You need to clone latest code from github, it should install libpocketsphinx.3.0.0 instead.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am linking against libpocketsphinx a simple c program, but when I compile it, I get the following error:
pocketsphinx_interaction.cpp:(.text+0xd2c): undefined reference to ps_get_in_speechWhich I find it very strange since I use other pocketsphinx functions like
ps_get_hyporps_init. So I rannm -D libpocketsphinx.1.1.0.sofrom the terminal to find out if this missing function is present or not in the library, and I found out:So the function
ps_get_in_speechis not present in the shared objectlibpocketsphinx.1.1.0.so, which I generated by downloadind pocketsphinx-5prealpha and runningautogen.shandmake, without errors.Why is ps_get_in_speech not present amongst the implemented functions in
libpocketsphinx.1.1.0.so?libpocketsphinx.1.1.0 is pretty old, I'm not sure where did you get it. You need to clone latest code from github, it should install libpocketsphinx.3.0.0 instead.
Thanks, actually I don't know where I got it. I will download the latest version