adding multiple .h and .cpp files to custom plugin
dpw157
dinethw04 at gmail.com
Fri Sep 11 13:56:58 UTC 2020
Hey just an update for anybody else in case they have the same problem. I
fixed what was happening. It had a couple of problems. One was my makefile,
according to some old post i found the name of the .la/.so has to be the
same as what you call your filter. So if your plugin is named
gstmyfilter.cpp the plugin_LTLIBRARIES should have libgstmyfilter.la. Adding
the extra files to sources and the headers to noinst_HEADERS was also fine.
Im thinking the segfault was some weird stuff happening in my code because
everything got fixed after i changed some stuff.
# Note: plugindir is set in
configure###############################################################################
TODO: change libgstmyfilter.la to something else, e.g. libmysomething.la
###############################################################################plugin_LTLIBRARIES
=
libgstmyfilter.la###############################################################################
TODO: for the next set of variables, name the prefix if you named the .la,
## e.g. libmysomething.la => libmysomething_la_SOURCES
## libmysomething_la_CFLAGS
## libmysomething_la_LIBADD
## libmysomething_la_LDFLAGS
#################################################################################
Plugin 1# sources used to compile this plug-in# sources used to compile this
plug-inlibgstmyfilter_la_SOURCES = gstmyfilter.cpp gstmyfilter.h
Calibration.cpp MlDetection.cpp PersonDetection.cpp ConfigParsing.cpp
dataset.cpp OpticalFlowFeatures.cpp ParticleFilter.cpp Utils.cpp
OPENCV_CFLAGS = `pkg-config --cflags opencv`OPENCV_LIBS = `pkg-config --libs
opencv`# # compiler and linker flags used to compile this plugin, set in
configure.aclibgstmyfilter_la_CXXFLAGS = $(GST_CFLAGS)
$(OPENCV_CFLAGS)libgstmyfilter_la_LIBADD = $(GST_LIBS)
libgstmyfilter_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
$(OPENCV_LIBS)libgstmyfilter_la_LIBTOOLFLAGS = --tag=disable-static# #
headers we need but don't want installednoinst_HEADERS = MlDetection.h
PersonDetection.hpp ConfigParsing.hpp dataset.h OpticalFlowFeatures.hpp
ParticleFilter.hpp Utils.hpp Calibration.hpp
I also made some changes to my configure.ac file. But they were minor so i
dont think that will be the case for anybody else with the same problems.
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200911/954a4ba9/attachment.htm>
More information about the gstreamer-devel
mailing list