Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make error #40

Open
lilong04 opened this issue Nov 5, 2020 · 2 comments
Open

make error #40

lilong04 opened this issue Nov 5, 2020 · 2 comments

Comments

@lilong04
Copy link

lilong04 commented Nov 5, 2020

g++ -pthread -shared -L/root/anaconda3/envs/pykaldienv/lib -B /root/anaconda3/envs/pykaldienv/compiler_compat -Wl,-rpath=/root/anaconda3/envs/pykaldienv/lib,--no-as-needed build/temp.linux-x86_64-3.5/kaldiasr/nnet3.o build/temp.linux-x86_64-3.5/kaldiasr/nnet3_wrappers.o -L/usr/lib64/atlas/ -L/data/app/lilong/kaldi//tools/openfst/lib -L/data/app/lilong/kaldi//src/lib -L/usr/lib64/atlas/ -lsatlas -lkaldi-decoder -lkaldi-lat -lkaldi-fstext -lkaldi-hmm -lkaldi-feat -lkaldi-transform -lkaldi-gmm -lkaldi-tree -lkaldi-util -lkaldi-matrix -lkaldi-base -lkaldi-nnet3 -lkaldi-online2 -lkaldi-cudamatrix -lkaldi-ivector -lfst -lsatlas -o /data/app/lilong/py-kaldi-asr/kaldiasr/nnet3.cpython-35m-x86_64-linux-gnu.so
/root/anaconda3/envs/pykaldienv/compiler_compat/ld: cannot find -lsatlas
/root/anaconda3/envs/pykaldienv/compiler_compat/ld: cannot find -lkaldi-decoder
/root/anaconda3/envs/pykaldienv/compiler_compat/ld: cannot find -lkaldi-lat
/root/anaconda3/envs/pykaldienv/compiler_compat/ld: cannot find -lkaldi-fstext
/root/anaconda3/envs/pykaldienv/compiler_compat/ld: cannot find -lkaldi-hmm
/root/anaconda3/envs/pykaldienv/compiler_compat/ld: cannot find -lkaldi-feat
/root/anaconda3/envs/pykaldienv/compiler_compat/ld: cannot find -lkaldi-transform
/root/anaconda3/envs/pykaldienv/compiler_compat/ld: cannot find -lkaldi-gmm
/root/anaconda3/envs/pykaldienv/compiler_compat/ld: cannot find -lkaldi-tree
/root/anaconda3/envs/pykaldienv/compiler_compat/ld: cannot find -lkaldi-util
/root/anaconda3/envs/pykaldienv/compiler_compat/ld: cannot find -lkaldi-matrix
/root/anaconda3/envs/pykaldienv/compiler_compat/ld: cannot find -lkaldi-base
/root/anaconda3/envs/pykaldienv/compiler_compat/ld: cannot find -lkaldi-nnet3
/root/anaconda3/envs/pykaldienv/compiler_compat/ld: cannot find -lkaldi-online2
/root/anaconda3/envs/pykaldienv/compiler_compat/ld: cannot find -lkaldi-cudamatrix
/root/anaconda3/envs/pykaldienv/compiler_compat/ld: cannot find -lkaldi-ivector
/root/anaconda3/envs/pykaldienv/compiler_compat/ld: cannot find -lsatlas
collect2: error: ld returned 1 exit status
error: command 'g++' failed with exit status 1
make: *** [kaldiasr/nnet3.so] Error 1

There are no kaldi-*.so files in kaldi root. How to complie. Who can help me!

@lilong04
Copy link
Author

lilong04 commented Nov 5, 2020

kaldi_root which project is it? https://github.com/kaldi-asr/kaldi/tree/master/src don't have lib dir.

@svenha
Copy link

svenha commented Nov 5, 2020

That is the correct repo. You must build kaldi first and extend your environment variable LD_LIBRARY_PATH. Be warned: It's not trivial :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants