Closed jzeng9 closed 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
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 alibtool --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.