Undefined reference to methods in gstdiscoverer

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Undefined reference to methods in gstdiscoverer

Xinheng
Hello,

I try to use gstdiscoverer to get information on Android. I included <gst/pbutils/pbutils.h> and did the same work as mentioned on http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+9%3A+Media+information+gathering.

But I got errors when compiling (version 1.8.1):
jni/player.c:653: error: undefined reference to 'gst_discoverer_new'
jni/player.c:331: error: undefined reference to 'gst_discoverer_info_get_uri'
jni/player.c:332: error: undefined reference to 'gst_discoverer_info_get_result'
jni/player.c:349: error: undefined reference to 'gst_discoverer_info_get_misc'
jni/player.c:363: error: undefined reference to 'gst_discoverer_info_get_tags'
jni/player.c:366: error: undefined reference to 'gst_tag_list_get_char'

Did I miss something?
Reply | Threaded
Open this post in threaded view
|

Re: Undefined reference to methods in gstdiscoverer

Sebastian Dröge-3
On Mo, 2016-09-19 at 06:41 -0700, silver wrote:
> Hello,
>
> I try to use gstdiscoverer to get information on Android. I included
> <gst/pbutils/pbutils.h> and did the same work as mentioned on
> http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+9%3A+Media+in
> formation+gathering. 

Are you using the 0.10 versions from gstreamer.com? That's not
recommended for any new applications as it's completely unmaintained
since 3+ years, same goes for gstreamer.com in general.

You can get new versions from https://gstreamer.freedesktop.org

> But I got errors when compiling (version 1.8.1):
> jni/player.c:653: error: undefined reference to 'gst_discoverer_new'

You have to add gstreamer-pbutils-1.0 to GSTREAMER_DEPS

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (985 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Undefined reference to methods in gstdiscoverer

Xinheng
I'm not using old versions. My actual gstreamer version is 1.8.1. The doc there on the old site is just a reference for studying .

I think you point the problem! But I cannot find where where this property (GSTREAMER_DEPS) is?
Reply | Threaded
Open this post in threaded view
|

Re: Undefined reference to methods in gstdiscoverer

Sebastian Dröge-3
On Mo, 2016-09-19 at 07:01 -0700, silver wrote:
> I'm not using old versions. My actual gstreamer version is 1.8.1. The
> doc
> there on the old site is just a reference for studying .
>
> I think you point the problem! But I cannot find where where this
> property (GSTREAMER_DEPS) is?

Sorry, GSTREAMER_EXTRA_DEPS actually. That has to go into your
Android.mk, e.g.

  GSTREAMER_EXTRA_DEPS := gstreamer-pbutils-1.0

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (985 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Undefined reference to methods in gstdiscoverer

Xinheng
Yes, it works for those methods of gstdiscoverer.

But it still cannot recognize the method 'gst_tag_list_get_char'.
Reply | Threaded
Open this post in threaded view
|

Re: Undefined reference to methods in gstdiscoverer

Sebastian Dröge-3
On Mo, 2016-09-19 at 07:32 -0700, silver wrote:
> Yes, it works for those methods of gstdiscoverer.
>
> But it still cannot recognize the method 'gst_tag_list_get_char'.

There is no gst_tag_list_get_char(). Do you mean get_string()?

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (985 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Undefined reference to methods in gstdiscoverer

Xinheng
Greate, you are quite right, it is an old function. It works! Thank you.