|
From: Ivan U. <iv...@ll...> - 2014-10-28 09:32:40
|
Dear All
I am in the process of building Kaldi on FreeBSD.
For building openfst there seem to be two options, neither of which
works immediately. Which of the following options would be preferred?
Would it be better to edit the bundled openfst's configs so that it will
build on FreeBSD, or to use the openfst in the FreeBSD repo (and somehow
or avoid needing the Kaldi patch)?
* 1 Use the openfst which is bundled with Kaldi
This fails at the configure step. Details from config.log:
configure:2967: checking whether the C++ compiler works
configure:2989: g++ conftest.cpp -ldl >&5
/usr/local/bin/ld: cannot find -ldl
collect2: error: ld returned 1 exit status
On *bsd those -ldl options are not necessary (and in fact won't work).
Editing the configure and other build scripts for openfst to work on bsd
might be simple but might be involved.
* 2 Use the FreeBSD openfst
The version of openfst in the FreeBSD repo is 1.4.1.
Configuring from the src/ directory fails because the indicated fst
library has not been patched:
[kaldi-trunk/src]$ ./configure --fst-root=/usr/local
Configuring ...
Checking OpenFST library in /usr/local ...
Checking OpenFst library was patched.
** ERROR **
** /usr/local/include/fst/minimize.h seems not to be patched:
patch not applied? FST tools will not work in our recipe.
So it looks like I would need to patch the FreeBSD version. Is there a
particular reason Kaldi depends on exactly version 1.3.4 of openfst? If
not I'll get the FreeBSD src port and patch that.
Obviously on success I'll write up and post somewhere convenient.
With thanks and best wishes
Ivan
--
============================================================
Ivan A. Uemlianin PhD
Llaisdy
Speech Technology Research and Development
iv...@ll...
@llaisdy
llaisdy.wordpress.com
github.com/llaisdy
www.linkedin.com/in/ivanuemlianin
festina lente
============================================================
|