Fixes how the po object is constructed @ util/parse-options.h:240:16.
util/parse-options.h:240:16: error: no matching constructor for
initialization of 'kaldi::ParseOptions'
ParseOptions po;
git-svn-id: https://svn.code.sf.net/p/kaldi/code/sandbox/sail@3704 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
This commit adds support for Mac OS 10.9 by adding a platform specific
makefile and updating configure. It also changes the way Mac OS version is
extracted from sw_vers output to make it more robust. Older script failed
to deduce the correct OS version when the version string included two fields
instead of three for instance when sw_vers returns 10.9 instead of 10.9.0.
git-svn-id: https://svn.code.sf.net/p/kaldi/code/sandbox/sail@3702 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
This patch changes the way src/common/pa_ringbuffer.o file is added to the
portaudio library. Original script added this file to the COMMON_OBJS list. However, on some platforms this file is automatically added to the OTHER_OBJS
list and as a result pa_ringbuffer.o object is added twice to the portaudio
library. Linking against portaudio library from a piece of code using the
pa_ringbuffer results in linker errors.
git-svn-id: https://svn.code.sf.net/p/kaldi/code/sandbox/sail@3701 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
On Mac OS 10.9, g++ is actually clang in disguise which by default uses the
new c++ standard library libc++. Since openfst uses stuff from the tr1
namespace, we need to tell clang to use libstdc++ instead. This patch adds a
check to the Makefile to see if we are using clang and adds the appropriate
flag if so.
With this patch, it is also possible to pass CXX, CXXFLAGS and LDFLAGS to make
while building the tools, e.g.
kaldi/tools ~ make CXX=g++-4.8 CXXFLAGS="-std=c++11" LDFLAGS="..."
git-svn-id: https://svn.code.sf.net/p/kaldi/code/sandbox/sail@3700 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
There are a few places in irstlm code where variable length arrays of non-POD
types are causing errors with recent standards compliant c++ compilers.
mdiadapt.cpp:1115:16: error: variable length array of non-POD element type
'streampos' (aka 'fpos<mbstate_t>')
streampos pos[lmsize()+1];
...
This use is not part of the c++ standard. Some compilers like gcc support this
through an extension while others like clang do not. This patch replaces all
VLAs of non-POD types with std::vector.
Also, configure.in is renamed to configure.ac to make recent automake
distributions happy.
git-svn-id: https://svn.code.sf.net/p/kaldi/code/sandbox/sail@3699 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
This patch adds -ffreestanding flag to the compile flags for rfilter1 to
silence the following error thrown by recent c++ compilers.
rfilter1.c:29:5:
error: second parameter of 'main' (argument array) must be of type 'char **'
int main(int argc, char **argv)
^
There is a nasty typedef @ tools/sctk-2.4.0/src/rfilter1/include/stdcenvp.h:27
which maps char to unsigned char. This is supposed to be a hack for parsing
mandarin and japanese correctly. However, that typedef causes all chars in all
files including that header file to be mapped to unsigned char. While most
such mappings are benign, we have one problematic case which results in the
compiler error given above.
git-svn-id: https://svn.code.sf.net/p/kaldi/code/sandbox/sail@3698 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
* steps/paste_feats.sh : this script wraps paste-feats, which allows to combine more than 2 features streams.
git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@3665 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
* moving scripts related to Karel's DNN recipe to from steps/* to steps/nnet/*,
* updating the DNN recipes (rm,wsj,swbd), new features:
** can be resumed by --stage,
** renaming experiments to exp/dnn*,
** using scripts at its new location,
We are syncing the script directory structure to be same as in Dan's recipe,
if you encounter any difficulties, please let me know.
git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@3629 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8