alumae / gst-kaldi-nnet2-online

GStreamer plugin around Kaldi's online neural network decoder
Apache License 2.0
185 stars 100 forks source link

Make issue on centos #70

Closed jzeng9 closed 6 years ago

jzeng9 commented 6 years ago

I got the error message when I managed to install the gst-kaldi-nnet2-online on my machine, which is Centos. /wls/gstreamer-1.0.0/gst/libgstreamer-1.0.la: file not recognized: File format not recognized collect2: error: ld returned 1 exit status I found a temporary solution on the web which asked me to add a libtool --mode=link in front of the compile command. However, this solution caused another issue, which went like: /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o: In function _start':(.text+0x20): undefined reference to main' collect2: error: ld returned 1 exit status make: *** [libgstkaldinnet2onlinedecoder.so] Error 1

So I don't think the 'libtool' solution is a good one. So plz help me with these make issues.

jzeng9 commented 6 years ago

Well I finally solve this problem by myself. Share it here for anybody who may have the same problem with me. The reason behind the error is that if you use the Libtool to compile the gstreamer-1.0. The gstreamer-1.0.so will be generated in the /gst/.libs/, not the /gst. There is only a gstreamer-1.0.so in the /gst. For reason, you cannot successfully compile this project on the Centos machine since the machine does not recognize the .la file. The only thing that I did is just to adjust the Makefile file. Help the Makefile to find the gstreamer-1.0.so. # EXTRA_LDLIBS += $(shell pkg-config --libs gstreamer-1.0) EXTRA_LDLIBS += /wls/gstreamer-1.0.0/gst/.libs/libgstreamer-1.0.so