From: Mailing l. u. f. U. C. a. U. <kal...@li...> - 2012-05-31 23:23:53
|
Having difficulty getting openfst with Kaldi installed. See right after the **************** lines. ubuntu 12.04, gcc 4.6.3 sph2pipe - Use instructions in tools/INSTALL dot - apt-get install graphviz irstlm - Use instructions in tools/INSTALL ATLAS - apt-get install libatlas-base-dev cp /usr/include/atlas/clapack.h /usr/include/ sclite - Use instructions in tools/INSTALL except do tar -xovjf sctk-2.4.0-20091110-0958.tar.bz2 cd sctk-2.4.0 ... Make the following change noted in this post. Re: [Kaldi-developers] Error while compiling sclite From: Daniel Povey <dpovey@gm...> - 2011-12-25 21:26 Replace Filter::Filter with ::Filter There are also two instances in recording.cpp asclite/core/recording.h asclite/core/recording.cpp openfst - Using the tools/INSTALL instructions obtains: **************** kaldi-1/tools/openfst-1.2.7/src/script/./../include/fst/generic-register.h:77: undefined reference to `dlopen' kaldi-1/tools/openfst-1.2.7/src/script/./../include/fst/generic-register.h:79: undefined reference to `dlerror' dlopen and dlerror are prototyped in /usr/include/dlfcn.h that configure finds. - Install openfst-1.3.2.tar.gz from http://www.openfst.org/twiki/bin/view/FST/FstDownload. 'make install' did not copy the bin files to /usr/local/bin. As root: cd openfst-1.3.2/bin cp fst* /usr/local/bin/ change the symlink in kaldi-1/tools to point to the new openfst-1.3.2 folder. cd kaldi-1/tools rm openfst ln -s myPath/openfst-1.3.2 openfst configure kaldi cd kaldi-1/src Change the configure file according to the following diff. diff configure configure_original 28c28 < #ATLASROOT=../tools/ATLAS/ --- > ATLASROOT=../tools/ATLAS/ 30,31c30 < ATLASROOT=/usr < --- 173,174d171 < elif [ -f /usr/lib/atlas-base/libatlas.a ]; then < ATLASLIBDIR=/usr/lib/atlas-base ./configure Gives the following exception output: **************** Checking for OpenFST library ... Using OpenFST library in ../tools/openfst ../tools/minimize.h ../tools/openfst/include/fst/minimize.h differ: byte 15, line 2 **Warning: ../tools/minimize.h and ../tools/openfst/include/fst/minimize.h differ: patch not applied? FST tools may not work. See ../tools/INSTALL I am thinking that making changes to use the latest openfst may be a good direction. Or it may be that the install is OK, except that the 'path' seems ominous. Or it may be easier to get openfst-1.2.7 going in the short run. I see that some of you are are using Kaldi on Ubuntu and may be able to provide a solution. Neil |