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