How to configure kaldi on the arm platform (NVIDIA Tegra)

919 views
Skip to first unread message

xie71...@gmail.com

unread,
Mar 28, 2016, 11:05:30 PM3/28/16
to kaldi-help
Hi kaldi-team,


I am trying to install kaldi on a tegra platform, but meet some problem in the beginning of configure (src).
>uname -a
Linux nvidia 3.18.11-tegra #1 SMP PREEMPT Mon Aug 10 17:28:52 PDT 2015 aarch64 aarch64 aarch64 GNU/Linux
>./configure
Configuring ...
Checking OpenFST library in /home/ubuntu/wenx/software/kaldi-trunk/tools/openfst ...
Checking OpenFst library was patched.
Backing up kaldi.mk to kaldi.mk.bak
Doing OS specific configurations ...
On Linux: Checking for linear algebra header files ...
Using ATLAS as the linear algebra library.
Successfully configured for Debian/Ubuntu Linux [dynamic libraries] with ATLASLIBS =/usr/lib/libatlas.so.3  /usr/lib/libf77blas.so.3 /usr/lib/libcblas.so.3  /usr/lib/liblapack_atlas.so.3
Using CUDA toolkit /usr/local/cuda (nvcc compiler and runtime libraries)
Static=[false] Speex library not found: You can still build Kaldi without Speex.
g++: error: unrecognized command line option '-msse'
g++: error: unrecognized command line option '-msse2'
make: *** [exp-test] Error 1
./configure: line 212: ./exp-test: No such file or directory
SUCCESS

As you can see the log of configure, SSE is not supported in this systerm. So I modify the kaldi.mk file like this (delete the -msse -msse2 option):
 41 #CXXFLAGS = -msse -msse2 -Wall -I.. \
 42 CXXFLAGS = -Wall -I.. \

Then I make depend:
>make depend
Then it report the following errors:

   1 make -C base/ depend
   2 make[1]: Entering directory '/home/ubuntu/wenx/software/kaldi-trunk/src/base'
   3 g++ -M -DHAVE_CUDA -I/usr/local/cuda/include *.cc > .depend.mk
   4 io-funcs-test.cc:19:27: fatal error: base/io-funcs.h: No such file or directory
   5  #include "base/io-funcs.h"
   6                            ^
   7 compilation terminated.
   8 io-funcs.cc:20:27: fatal error: base/io-funcs.h: No such file or directory
   9  #include "base/io-funcs.h"
  10                            ^
  11 compilation terminated.
  12 kaldi-error-test.cc:21:31: fatal error: base/kaldi-common.h: No such file or directory
  13  #include "base/kaldi-common.h"
  14                                ^
  15 compilation terminated.
  16 kaldi-error.cc:31:31: fatal error: base/kaldi-common.h: No such file or directory
  17  #include "base/kaldi-common.h"
......omit the rest of log messages.

How to solve this problem? The "./base" directory is actually in the current path, why the script couldn't found it.


Thanks a lot!

Best Regards,
Ross
















Daniel Povey

unread,
Mar 28, 2016, 11:07:13 PM3/28/16
to kaldi-help
Make sure the '-I..' flag is being included in the C++ command line.
Dan


--
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Povey

unread,
Mar 28, 2016, 11:13:28 PM3/28/16
to kaldi-help
It looks like the \ at the end of the commented line causes the next line to be treated as part of a multi-line comment in the Makefile.  I was able to reproduce this.

Dan


xie71...@gmail.com

unread,
Mar 28, 2016, 11:22:03 PM3/28/16
to kaldi-help, dpo...@gmail.com
Yes, it is, the next line is commented indeed, I delete "#CXXFLAGS = -msse -msse2 -Wall -I.. \" and "make depend" runs correctly. Thanks a lot, Dan.

在 2016年3月29日星期二 UTC+8上午11:13:28,Dan Povey写道:
Reply all
Reply to author
Forward
0 new messages