<div dir="ltr"><div><div>First of all, try using makefile scripts that come with GStreamer (see e.g. <a href="https://github.com/sdroege/gst-player">https://github.com/sdroege/gst-player</a>) instead of trying to reinvent the wheel.<br><br></div>Secondly, using C++ with Android may be a bad choice, it's not well supported (<a href="http://developer.android.com/ndk/guides/cpp-support.html">http://developer.android.com/ndk/guides/cpp-support.html</a>)<br><br></div>m.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-15 6:36 GMT-07:00 doon <span dir="ltr"><<a href="mailto:don-prog@mail.ru" target="_blank">don-prog@mail.ru</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I try to use some Gstreamer(1.8.0) plugins in my Qt C++ Android project, but<br>
I get a problems with a libraries.<br>
First cpp code:<br>
G_BEGIN_DECLS<br>
GST_PLUGIN_STATIC_DECLARE(coreelements);<br>
GST_PLUGIN_STATIC_DECLARE(soup);<br>
G_END_DECLS<br>
void MainWindow::play(){<br>
GST_PLUGIN_STATIC_REGISTER(coreelements);<br>
GST_PLUGIN_STATIC_REGISTER(soup);<br>
}<br>
<br>
First error:<br>
soup-session.c:631: error: undefined reference to<br>
'g_simple_proxy_resolver_new'<br>
<br>
<br>
Second cpp code:<br>
G_BEGIN_DECLS<br>
GST_PLUGIN_STATIC_DECLARE(coreelements);<br>
GST_PLUGIN_STATIC_DECLARE(androidmedia);<br>
G_END_DECLS<br>
void MainWindow::play(){<br>
GST_PLUGIN_STATIC_REGISTER(coreelements);<br>
GST_PLUGIN_STATIC_REGISTER(androidmedia);<br>
}<br>
<br>
Second error:<br>
gstvideoencoder.c:284: error: undefined reference to 'gst_preset_get_type'<br>
<br>
<br>
pro file:<br>
#...<br>
LIBS += -L$$GST_ROOT/lib/gstreamer-1.0/static \<br>
-lgstvideo-1.0 \<br>
-lgstaudio-1.0 \<br>
-lgstcoreelements \<br>
-lgstudp \<br>
-lgstrtp \<br>
-lgstx264 \<br>
-lgstlibav \<br>
-lgstvideoparsersbad \<br>
-lgstvideotestsrc \<br>
-lgstplayback \<br>
-lgstaudiotestsrc \<br>
-lgstaudioconvert \<br>
-lgstvideoconvert \<br>
-lgstinterleave \<br>
-lgstautodetect \<br>
-lgstandroidmedia \<br>
-lgstphotography-1.0 \<br>
-lgstopengl \<br>
-lgstopenh264 -lgstogg -lgstfreeverb -lgstx264 -lgstopus<br>
-lgstequalizer -lgstencodebin -lgstlibav -lgstspeex -lgstvpx \<br>
-lGLESv2 -lEGL \<br>
-lgstfaad -lgstsouphttpsrc -lgsttheora -lgstlibvisual<br>
-lgstencodebin<br>
<br>
# Rest of GStreamer dependencies<br>
LIBS += -L$$GST_ROOT/lib \<br>
-lgstfft-1.0 -lm \<br>
-lgstnet-1.0 -lgio-2.0 -lgstgl-1.0 \<br>
-lgstaudio-1.0 -lgstcodecparsers-1.0 -lgstbase-1.0 \<br>
-lgstreamer-1.0 -lgsttag-1.0 -lgstrtp-1.0 -lgstpbutils-1.0 \<br>
-lgstvideo-1.0 -lavformat -lavcodec -lavutil -lx264 \<br>
-lbz2 -lgobject-2.0 -lfaad -lsoup-2.4 -logg \<br>
-Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lorc-0.4<br>
-liconv -lffi -lintl -lgstbase-1.0 -ldl -lgthread-2.0 -lxml2<br>
-lgstbadbase-1.0<br>
<br>
LIBS += -L$$GST_ROOT/lib/gio/modules/static -lgnutls -lgnustl<br>
-lgiognutls<br>
#...<br>
How can I solve these errors?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-on-Android-Qt-C-tp4676932.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-on-Android-Qt-C-tp4676932.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>