Help with installing gst-plugin (/usr/bin/ld: cannot find -lkaldi-online)

335 views
Skip to first unread message

meesam raza

unread,
May 19, 2018, 7:49:56 PM5/19/18
to kaldi-help
Hi, I cloned a fresh kaldi step and followed the guideline and successfully installed tools (and required extras including portaudio) and src.

Problem is when is try to install gst-plugin i am getting following error while running make:

g++ -shared -DPIC -o libgstonlinegmmdecodefaster.so -L/home/naqvi/kaldi/src/lib -lgstbase-1.0 -lgstcontroller-1.0 -lgmodule-2.0 -lgthread-2.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lglib-2.0 -lkaldi-online -lkaldi-lat -lkaldi-decoder -lkaldi-feat -lkaldi-transform -lkaldi-gmm -lkaldi-hmm -lkaldi-tree -lkaldi-matrix  -lkaldi-util -lkaldi-base  ../../tools/portaudio/install/lib/libportaudio.a -lasound -Wl,-soname=libgstonlinegmmdecodefaster.so -Wl,--no-as-needed -Wl,-rpath=/home/naqvi/kaldi/src/lib -lrt -pthread -lgstbase-1.0 -lgstcontroller-1.0 -lgmodule-2.0 -lgthread-2.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lglib-2.0 -lkaldi-online -lkaldi-lat -lkaldi-decoder -lkaldi-feat -lkaldi-transform -lkaldi-gmm -lkaldi-hmm -lkaldi-tree -lkaldi-matrix  -lkaldi-util -lkaldi-base  ../../tools/portaudio/install/lib/libportaudio.a -lasound -Wl,-soname=libgstonlinegmmdecodefaster.so -Wl,--no-as-needed -Wl,-rpath=/home/naqvi/kaldi/src/lib -lrt -pthread /home/naqvi/kaldi/tools/openfst/lib/libfst.so /usr/lib/libatlas.so.3 /usr/lib/libf77blas.so.3 /usr/lib/libcblas.so.3 /usr/lib/liblapack_atlas.so.3 -lm -lpthread -ldl  -Wl,-rpath=/home/naqvi/kaldi/tools/openfst/lib  -rdynamic \
  gst-audio-source.o gst-online-gmm-decode-faster.o
/usr/bin/ld: cannot find -lkaldi-online
/usr/bin/ld: cannot find -lkaldi-online
collect2: error: ld returned 1 exit status
Makefile:53: recipe for target 'libgstonlinegmmdecodefaster.so' failed
make: *** [libgstonlinegmmdecodefaster.so] Error 1

Can some body guide me what i am doing wrong here? Tried rebuilding and clone many times but still no luck.

Daniel Povey

unread,
May 19, 2018, 7:56:11 PM5/19/18
to kaldi-help
The way you are supposed to build that stuff is, I think,
cd src/
make ext

That makes the 'online' subdirectory, which by default is not a target
of the Makefile.
> --
> Go to http://kaldi-asr.org/forums.html find out how to join
> ---
> 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.
> To post to this group, send email to kaldi...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/kaldi-help/c44d6dd6-0348-4104-85cb-f5a83653f187%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

meesam raza

unread,
May 19, 2018, 8:03:22 PM5/19/18
to kaldi-help
Well thats makes sense thank for a quick fix issue is resolved.
Reply all
Reply to author
Forward
0 new messages