0

I checked out the latest version of CMUSphinx from github.I compiled sphinxbase successfully and while trying to compile pocketsphinx,I faced an error saying:

P.S: I used Visual Studio 2013 Express Edition to compile sphinxbase and VS2010 to compile pocketsphinx

"Cannot find sphinxbase.lib"

What may be the problem?

Sphinxbase and Pocketsphinx in the same parent folder:

enter image description here

1 Answers1

1

Usually it's trivial to figure path problems just by looking on compiler output, you can read the logs to see what happen. Sphinxbase path is hardcoded and if it does not match you see the problem like this.

Most likely you did not rename sphinxbase-5prealpha to just sphinxbase as suggested by instruction. Or you did not place sphinxbase and pocketsphinx sources to the same folder. You need to use VS 2013 for both projects as well.

Nikolay Shmyrev
  • 24,897
  • 5
  • 43
  • 87
  • I have placed both the sphinxbase and pocketsphinx folders in the same parent folder.And there are no path problems as well.I'm not able to compile pocketsphinx using VS 2013.It is opening only in VS 2010.What am I to do now? – Kaushik Ramachandran Sep 09 '15 at 11:54
  • I tried compiling pocketsphinx in VS 2013.It still says sphinxbase.lib cannot be opened ! I'm helpless ! – Kaushik Ramachandran Sep 09 '15 at 12:24
  • You need to provide compilation log and the information about file layout in our system – Nikolay Shmyrev Sep 09 '15 at 14:34
  • The log is here : http://pastebin.com/wCfYWKA8 . The layout is like this.I have a base folder called sphinx which has two folders namely basesphinx and pocketsphinx in it. – Kaushik Ramachandran Sep 09 '15 at 14:54
  • it is better to provide me the screenshot of layout and contents of sphinxbase/bin folder. Are you sure you compiled sphinxbase release version and not sphinxbase debug version? – Nikolay Shmyrev Sep 09 '15 at 15:17
  • I have added the screenshots to mine question spec. I think I compiled the debug version.How do I compile the release version? – Kaushik Ramachandran Sep 09 '15 at 19:32
  • I compiled the release version successfully.But when I tried to execute this bin/Release/pocketsphinx_continuous.exe -inmic yes -hmm model/en-us/en-us -lm model/en-us/en-us.lm.bin -dict model/en-us/cmudict-en-us.dict ... It shows : INFO: feat.c(715): Initializing feature stream to type: '1s_c_d_dd', ceplen=13, CMN='current', VARNORM='no', AGC='none' INFO: cmn.c(143): mean[0]= 12.00, mean[1..12]= 0.0 ERROR: "acmod.c", line 83: Folder 'model/en-us/en-us' does not contain acoustic model definition 'mdef' – Kaushik Ramachandran Sep 09 '15 at 20:11
  • You need to specify the path to the acoustic model folder properly, you can try with backslashes or absolute path to en-us folder. – Nikolay Shmyrev Sep 09 '15 at 21:09
  • The path was incorrect.Finally made it .Thanks a lot ! – Kaushik Ramachandran Sep 10 '15 at 15:45