Closed ashishbajaj99 closed 8 years ago
Provide the output of the following commands:
pkg-config --variable=datadir sphinxbase
pkg-config --modversion sphinxbase
Looks like the first one "datadir" is not found:
pi@ashiya:~/conduit/pocketsphinx/pocketsphinx-node $ pkg-config --variable=datadir sphinxbase
pi@ashiya:~/conduit/pocketsphinx/pocketsphinx-node $ pkg-config --modversion sphinxbase
5prealpha
Do I need to explicitly set it up?
Here are all the variables associated with the sphinxbase package (setup by the sphinxbase buildsystem?):
pi@ashiya:~/conduit/pocketsphinx/pocketsphinx-node $ pkg-config --print-variables sphinxbase
exec_prefix
prefix
libdir
includedir
libs
pi@ashiya:~/conduit/pocketsphinx/pocketsphinx-node $ pkg-config --variable=exec_prefix sphinxbase
/usr/local
pi@ashiya:~/conduit/pocketsphinx/pocketsphinx-node $ pkg-config --variable=prefix sphinxbase
/usr/local
pi@ashiya:~/conduit/pocketsphinx/pocketsphinx-node $ pkg-config --variable=libdir sphinxbase
/usr/local/lib
pi@ashiya:~/conduit/pocketsphinx/pocketsphinx-node $ pkg-config --variable=includedir sphinxbase
/usr/local/include
pi@ashiya:~/conduit/pocketsphinx/pocketsphinx-node $ pkg-config --variable=libs sphinxbase
"-lasound -lpthread -lm "
Here is some more info in case it helps?
pi@ashiya:~ $ pkg-config --cflags --libs pocketsphinx
-I/usr/local/include -I/usr/local/include/sphinxbase -I/usr/local/include/pocketsphinx -I/usr/local/include -I/usr/local/include/sphinxbase -L/usr/local/lib -lpocketsphinx -lsphinxbase -lsphinxad -lasound -lpthread -lm
pi@ashiya:~ $ pkg-config --cflags --libs sphinxbase
-I/usr/local/include -I/usr/local/include/sphinxbase -L/usr/local/lib -lsphinxbase -lsphinxad -lasound -lpthread -lm
Based on my previous comment, were you able to identify the problem?
Datadir variable should be there. Are you sure you compiled latest sphinxbase from github? Please share the file /usr/local/lib/pkgconfig/sphinxbase.pc
Here is the sphinxbase.pc file:
pi@ashiya:~ $ cat /usr/local/lib/pkgconfig/sphinxbase.pc
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
libs="-lasound -lpthread -lm "
Name: SphinxBase
Description: Shared components for Sphinx speech recognition
Version: 5prealpha
URL: http://www.cmusphinx.org/
Libs: -L${libdir} -lsphinxbase -lsphinxad -lasound -lpthread -lm
Libs.private: ${libs}
Cflags: -I${includedir} -I${includedir}/sphinxbase
I got the code from the links pointed to from the official download page here: http://cmusphinx.sourceforge.net/wiki/download
They point to sourceforge and here is how I got them:
wget http://sourceforge.net/projects/cmusphinx/files/sphinxbase/5prealpha/sphinxbase-5prealpha.tar.gz
wget http://sourceforge.net/projects/cmusphinx/files/pocketsphinx/5prealpha/pocketsphinx-5prealpha.tar.gz
You need to get latest sphinxbase from github.
README says that.
Works now - yes agree it mentions it, but its not clear if its a must have. Would be super if the README is made a lot more readable - definitely would've saved me a lot of time. Let me know if you want help with this, I can help set it up.
While trying to install I get the following error:
The following are compiled and installed correctly:
I see that the source code of sphinxbase contains the reported /swig/sphinxbase.i file here: https://github.com/cmusphinx/sphinxbase/blob/master/swig/sphinxbase.i
Do I need to be storing the source code in a relative path? Currently my directory structure looks as follows: