ilouk
ilouk

Reputation: 1

Installation of Kaldi, error on compiling gst-kaldi-nnet2-online on ubuntu 16.04

What i try to do is to install silvius-backend on my ubuntu 16.04 virtual machine, but unfortunately it is not working without the proper compile of both of kaldi and gst-kaldi-nnet2-online .

I have compiled kaldi successfully but I am experiencing a error when i try to compile gst-kaldi-nnet2-online.

I follow these instructions.

Here is what i do:

  1. I am using Ubuntu 16.04.

  2. I have compiled kaldi successfully with the following commands:

    in kaldi/tools --> sudo make CXX=g++-5

    in kaldi/src --> sudo CXX=g++-5 ./configure --shared, sudo make clean CXX=g++-5 ,sudo make depend CXX=g++-5 ,sudo make CXX=g++-5

  3. I tried to do sudo make depend from ~/gst-kaldi-nnet2-online/src and i got an error like this:

Makefile:6: * Cannot find Kaldi's makefile /home/tanel/tools/kaldi- trunk/src/kaldi.mk. Specify Kaldi's root directory using KALDI_ROOT when issuing make, e.g.: KALDI_ROOT=/home/tanel/tools/kaldi-trunk make . Stop.

  1. So In this path i have changed the path to: "KALDI_ROOT=~/kaldi"

    And now i am getting an error like this :

g++-5 -M -std=c++11 -I.. -I/home/silvius/kaldi/tools/openfst/include -pthread -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wall -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-declarations -Winit-self -DKALDI_DOUBLEPRECISION=0 -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_ATLAS -I/home/silvius/kaldi/tools/ATLAS_headers/include -msse -msse2 -pthread -g -fPIC -I~/kaldi/src *.cc > .depend.mk
In file included from gst-audio-source.cc:22:0: ./gst-audio-source.h:23:33: fatal error: matrix/kaldi-vector.h: No such file or directory compilation terminated. In file included from ./gstkaldinnet2onlinedecoder.h:26:0, from gstkaldinnet2onlinedecoder.cc:49: ././simple-options-gst.h:25:33: fatal error: util/simple-options.h: No such file or directory compilation terminated. In file included from simple-options-gst.cc:20:0: ./simple-options-gst.h:25:33: fatal error: util/simple-options.h: No such file or directory compilation terminated. Makefile:76: recipe for target 'depend' failed make: [depend] Error 1 (ignored)

You can see the error on a picture aswell on this link

PS: the path to my Folders is that ones:

 `~/kaldi` for kaldi's folder , and

 `~/gst-kaldi-nnet2-online` for the gst-kaldi-nnet2-online. 

 (i cloned them from github inside `~/` in separated folders)

I dont know what to do next or what is the problem. I've been looking for a solution since days on the internet but i found nothing. Can someone help me?

Upvotes: 0

Views: 753

Answers (0)

Related Questions