I'm trying to build a wrapper from the sources for c#, but I get an error when running test.exe: undefined symbol: ps_args
My sequence of steps:
1) git clone latest sources from sphinxbase and pocketsphinx repositories
2) open in bash pocketsphinx\swig\csharp directory
3) make
4) Error on step mono test.exe: undefined symbol: ps_args
You probably did not setup pocketsphinx correctly (you did not define the variables LD_LIBRARY_PATH and PKG_CONFIG_PATH). You need to go through tutorial first
Okay, it's funny - I checked in the clean Linux Mint, which I'm using at the moment, and my problem was repeated again, and then for interest, I checked in a clean Debian Linux and it works!
Last edit: Jenni Correra 2017-08-19
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
LD_LIBRARY_PATH does not work because library is not linked during compilation. pkg-config --libs pocketsphinx output does not list proper libraries. Maybe because pocketsphinx.pc file is corrupted somehow. You can check the file contents and pkg-config output as required by pocketsphinx tutorial.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Guys, help
I'm trying to build a wrapper from the sources for c#, but I get an error when running test.exe: undefined symbol: ps_args
My sequence of steps:
1) git clone latest sources from sphinxbase and pocketsphinx repositories
2) open in bash pocketsphinx\swig\csharp directory
3) make
4) Error on step mono test.exe: undefined symbol: ps_args
I also tried the solution described here: https://sourceforge.net/p/cmusphinx/discussion/help/thread/cc2c56ee/ So I checked what I havn't sphinx libs in /usr/lib folder, it's seems like I have copy only in usr/local/lib
What's wrong?
Last edit: Jenni Correra 2017-08-15
You probably did not setup pocketsphinx correctly (you did not define the variables LD_LIBRARY_PATH and PKG_CONFIG_PATH). You need to go through tutorial first
http://cmusphinx.github.io/wiki/tutorialpocketsphinx
I tried it, but it's still not work. Anyway, I checked ld.so.conf.d and my system already use usr/local/lib directory also I runed ldconfig.
And, pocketsphinx_continuous works fine, so as far as I understand there are no problems with libraries
You have problem at compile time. You need to check pkg-config, not ld.so.conf.
I checked it too:
$echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig
Ok, run make once again and provide the complete output
Thank you, my full output in, wrapper make in the end
Ok, run
and provide the output.
Okay, it's funny - I checked in the clean Linux Mint, which I'm using at the moment, and my problem was repeated again, and then for interest, I checked in a clean Debian Linux and it works!
Last edit: Jenni Correra 2017-08-19
However, after several days of research and reading the manuals, I found out that the wrapper works when I preload libraries by this:
However, I have not yet understood why the set of LD_LIBRARY_PATH does not work, so I will very glad if somebody explain me
LD_LIBRARY_PATH
does not work because library is not linked during compilation.pkg-config --libs pocketsphinx
output does not list proper libraries. Maybe becausepocketsphinx.pc
file is corrupted somehow. You can check the file contents andpkg-config
output as required by pocketsphinx tutorial.