On Thu, Feb 19, 2015 at 10:08 AM, Sebastian Dröge <sebastian@xxxxxxxxxxxxxxx> wrote: > On Do, 2015-02-19 at 09:57 +0100, Mathieu Slabbinck wrote: > >> >>Furthermore, I've read that static plugins of gstreamer should be >> >> loaded with GST_PLUGIN_STATIC_DECLARE & GST_PLUGIN_STATIC_REGISTER. >> >> >> >> Using GST_PLUGIN_STATIC_DECLARE() in my c++ app seems to give no >> >> issues, but using the REGISTER call, that always returns an 'undefined >> >> reference to gst_plugin_PLUGINNAME_register()' >> >> I suspect this is related with gst-inspect not finding anything? >> > >> > You have to additionally add the plugin libraries (e.g. >> > libgstvideoconvert.a) to the libraries that are linked into your >> > application. >> >> I've linked my app to lgstreamer, lgstapp. >> Then using GST_PLUGIN_STATIC_REGISTER(app) still returns undefined >> reference to `gst_plugin_app_register()' > > For app you need to link to libgstapp-1.0 and libgstapp. The former > being the library that provides appsrc/appsink, the latter being the > plugin that registers the element factories (and would provide > gst_plugin_app_register()). Thanks for pointing this out. I do notice with grep that gst_plugin_app_register is located in the gst_build/lib/gstreamer-1.0/libgstapp.a. So I've included: LIBS += -L$$PWD/gst_build/lib -l:libgstapp-1.0.a LIBS += -L$$PWD/gst_build/lib/gstreamer-1.0 -l:libgstapp.a But this still does not resolve the undefined reference error... > -- > Sebastian Dröge, Centricular Ltd · http://www.centricular.com > > _______________________________________________ > gstreamer-embedded mailing list > gstreamer-embedded@xxxxxxxxxxxxxxxxxxxxx > http://lists.freedesktop.org/mailman/listinfo/gstreamer-embedded > _______________________________________________ gstreamer-embedded mailing list gstreamer-embedded@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/gstreamer-embedded