kaldi can link with openfst-1.5.0 without patch

来源:互联网 发布:阿里百川是不是马云的 编辑:程序博客网 时间:2024/06/06 06:35

openfst-1.5.0

$ mkdir build && cd build$ ../configure --prefix=/opt/openfst-1.5.0 \--enable-static=no \--enable-far \--enable-ngram-fsts \--enable-pdt \--enable-python \LDLIBS="-ldl"

kaldi-c09caf9

$ cd src$ ./configure --shared --use-cuda=no --fst-root=/opt/openfst-1.5.0 \--mkl-root=/opt/intel/composer_xe_2015.0.090/mkl

undefined reference to `dlopen’

add -Wl,--no-as-needed before -ldl in kaldi.mk

  • http://stackoverflow.com/questions/20369672/undefined-reference-to-dlsym
  • http://askubuntu.com/questions/454443/how-do-i-deal-with-undefined-reference-to-dlopen-errors-while-compiling-and-us
0 0