dialogflow / asr-server

FastCGI support for Kaldi ASR
Apache License 2.0
184 stars 85 forks source link

Error in building app (compilation phase) #26

Open somnat opened 7 years ago

somnat commented 7 years ago

Hi, while compiling asr-server, it gives the following error. g++: error: /home/somnath/kaldi/src/thread/libkaldi-thread.so: No such file or directory

I am using the latest kaldi-version (August-2017). All other .so files are there. See the following /home/somnath/kaldi/src/base/libkaldi-base.so /home/somnath/kaldi/src/chain/libkaldi-chain.so /home/somnath/kaldi/src/cudamatrix/libkaldi-cudamatrix.so /home/somnath/kaldi/src/decoder/libkaldi-decoder.so /home/somnath/kaldi/src/feat/libkaldi-feat.so /home/somnath/kaldi/src/fstext/libkaldi-fstext.so /home/somnath/kaldi/src/gmm/libkaldi-gmm.so /home/somnath/kaldi/src/hmm/libkaldi-hmm.so /home/somnath/kaldi/src/ivector/libkaldi-ivector.so /home/somnath/kaldi/src/kws/libkaldi-kws.so /home/somnath/kaldi/src/lat/libkaldi-lat.so /home/somnath/kaldi/src/lib/libkaldi-base.so /home/somnath/kaldi/src/lib/libkaldi-chain.so /home/somnath/kaldi/src/lib/libkaldi-cudamatrix.so /home/somnath/kaldi/src/lib/libkaldi-decoder.so /home/somnath/kaldi/src/lib/libkaldi-feat.so /home/somnath/kaldi/src/lib/libkaldi-fstext.so /home/somnath/kaldi/src/lib/libkaldi-gmm.so /home/somnath/kaldi/src/lib/libkaldi-hmm.so /home/somnath/kaldi/src/lib/libkaldi-ivector.so /home/somnath/kaldi/src/lib/libkaldi-kws.so /home/somnath/kaldi/src/lib/libkaldi-lat.so /home/somnath/kaldi/src/lib/libkaldi-lm.so /home/somnath/kaldi/src/lib/libkaldi-matrix.so /home/somnath/kaldi/src/lib/libkaldi-nnet.so /home/somnath/kaldi/src/lib/libkaldi-nnet2.so /home/somnath/kaldi/src/lib/libkaldi-nnet3.so /home/somnath/kaldi/src/lib/libkaldi-online.so /home/somnath/kaldi/src/lib/libkaldi-online2.so /home/somnath/kaldi/src/lib/libkaldi-sgmm2.so /home/somnath/kaldi/src/lib/libkaldi-transform.so /home/somnath/kaldi/src/lib/libkaldi-tree.so /home/somnath/kaldi/src/lib/libkaldi-util.so /home/somnath/kaldi/src/lm/libkaldi-lm.so /home/somnath/kaldi/src/matrix/libkaldi-matrix.so /home/somnath/kaldi/src/nnet/libkaldi-nnet.so /home/somnath/kaldi/src/nnet2/libkaldi-nnet2.so /home/somnath/kaldi/src/nnet3/libkaldi-nnet3.so /home/somnath/kaldi/src/online/libkaldi-online.so /home/somnath/kaldi/src/online2/libkaldi-online2.so /home/somnath/kaldi/src/sgmm2/libkaldi-sgmm2.so /home/somnath/kaldi/src/transform/libkaldi-transform.so /home/somnath/kaldi/src/tree/libkaldi-tree.so /home/somnath/kaldi/src/util/libkaldi-util.so

Moreover, I cannot find the src/thread in my kaldi version. Please let me know the problem.

bjascob commented 7 years ago

Looks like the Kaldi folks moved the src/thread stuff under src/util. The asr-server Makefile already has kaldi-util.a in it. It compiled for me with the newest Kaldi version by just removing "$(KALDI_PATH)/thread/kaldi-thread.a". from asr-server/src/Makefile.

bjascob commented 7 years ago

BTW... Under pull-requests someone already has a fix for this in from back in July but it hasn't been merged in yet. See https://github.com/api-ai/asr-server/pull/19.

somnat commented 7 years ago

Thanks, bjascob! I have compiled it against March 2017 kaldi version. It has src/thread directory and it is working fine for me.

Thanks a lot, again!

On Sat, Aug 26, 2017 at 6:39 PM, bjascob notifications@github.com wrote:

BTW... Under pull-requests someone already has a fix for this in from back in July but it hasn't been merged in yet. See #19 https://github.com/api-ai/asr-server/pull/19.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/api-ai/asr-server/issues/26#issuecomment-325125945, or mute the thread https://github.com/notifications/unsubscribe-auth/AbWD5ccBjEWnnCriGhvyvZzOPHkw35EEks5scBkMgaJpZM4PBTBi .

--