When I write a plugin , I need to use a Static library file, what should I do?
This is my Makefile.am ######################################### plugin_LTLIBRARIES = libgstexamplefilter.la
#the source file of make
libgstexamplefilter_la_SOURCES = gstexamplefilter.c case/p2pconnect.h case/p2pconnect.cpp
case/person.cpp case/person.h case/wrapper.cpp case/wrapper.h
libgstexamplefilter_la_CFLAGS = $(GST_CFLAGS)
libgstexamplefilter_la_LIBADD = $(GST_LIBS) -L/usr/lib -lsioclient -lpthread
libgstexamplefilter_la_LIBADD += -lpthread
libgstexamplefilter_la_LDADD =
libgstexamplefilter_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) libgstexamplefilter_la_LIBTOOLFLAGS = --tag=disable-static
noinst_HEADERS = gstexamplefilter.h
And, when I install the plugin, run gst-inspect-1.0 examplefilter, there is something wrong like this: Failed to load plugin '/usr/local/lib/gstreamer-1.0/libgstexamplefilter.so': /usr/local/lib/gstreamer-1.0/libgstexamplefilter.so: undefined symbol: _ZN3sio6socket4emitERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7message4listERKSt8functionIFvSC_EE
Thank you for your reply!