Bug 59485 - [ANDROID] Linking error between ffmpeg and ffmpegcolorspace plugins
Summary: [ANDROID] Linking error between ffmpeg and ffmpegcolorspace plugins
Status: RESOLVED FIXED
Alias: None
Product: GStreamer SDK
Classification: Unclassified
Component: Linux SDK Distribution (show other bugs)
Version: 2012.11
Hardware: ARM Linux (All)
: medium blocker
Assignee: bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-16 22:32 UTC by Luis Linietsky
Modified: 2013-02-20 13:55 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Added fixed libgstffmpegcolorspace.so (897.88 KB, text/plain)
2013-01-24 10:48 UTC, Andoni Morales Alastruey
Details
Added fixed libgstffmpegcolorspace.a (1.57 MB, text/plain)
2013-02-20 13:55 UTC, Andoni Morales Alastruey
Details

Description Luis Linietsky 2013-01-16 22:32:29 UTC
Hi, 
I am trying to build tutorial 5 for Android with ffmpeg plugin, but I am getting following linking error:

luigi@Fender:~/workspace/Tutorial5$ ndk-build 
GStreamer      : [GEN] => gst-build/gstreamer_android.c
GStreamer      : [COMPILE] => gst-build/gstreamer_android.c
GStreamer      : [LINK] => gst-build/libgstreamer_android.so
/home/luigi/projects/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold: error: /home/luigi/projects/gstreamer/release/lib/libavutil.a(mem.o): multiple definition of 'av_malloc'
/home/luigi/projects/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold: /home/luigi/projects/gstreamer/release/lib/gstreamer-0.10/static/libgstffmpegcolorspace.a(libgstffmpegcolorspace_la-mem.o): previous definition here
/home/luigi/projects/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold: error: /home/luigi/projects/gstreamer/release/lib/libavutil.a(mem.o): multiple definition of 'av_realloc'
/home/luigi/projects/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold: /home/luigi/projects/gstreamer/release/lib/gstreamer-0.10/static/libgstffmpegcolorspace.a(libgstffmpegcolorspace_la-mem.o): previous definition here
/home/luigi/projects/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold: error: /home/luigi/projects/gstreamer/release/lib/libavutil.a(mem.o): multiple definition of 'av_free'
/home/luigi/projects/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold: /home/luigi/projects/gstreamer/release/lib/gstreamer-0.10/static/libgstffmpegcolorspace.a(libgstffmpegcolorspace_la-mem.o): previous definition here
collect2: ld returned 1 exit status
make: *** [buildsharedlibrary] Error 1

Looks like av_malloc, av_realloc and av_free are beeing defined both in ffmpeg and ffmpegcolorspace.

Thanks.
Comment 1 Andoni Morales Alastruey 2013-01-16 23:10:40 UTC
This one is already fixed:
http://cgit.freedesktop.org/gstreamer-sdk/gst-plugins-base/commit/?id=8599175207e044ad5a46edc81ed9166dd3175157

You will need to rebuild gst-plugins-base-static
Comment 2 Luis Linietsky 2013-01-17 15:32:55 UTC
(In reply to comment #1)
> This one is already fixed:
> http://cgit.freedesktop.org/gstreamer-sdk/gst-plugins-base/commit/
> ?id=8599175207e044ad5a46edc81ed9166dd3175157
> 
> You will need to rebuild gst-plugins-base-static

Could you give me a hint on how to rebuild this as well as from where to clone the repository?
Comment 3 Andoni Morales Alastruey 2013-01-17 17:29:27 UTC
It's documented here in the "Cross-compilation of the SDK" section:
http://docs.gstreamer.com/display/GstSDK/Building+from+source+using+Cerbero
Comment 4 Andoni Morales Alastruey 2013-01-24 10:48:48 UTC
Created attachment 73558 [details]
Added fixed libgstffmpegcolorspace.so
Comment 5 Luis Linietsky 2013-01-24 14:31:59 UTC
Rcelestino@dlatv.net
El 24/01/2013 07:48, <bugzilla-daemon@freedesktop.org> escribió:

>   *Comment # 4 <https://bugs.freedesktop.org/show_bug.cgi?id=59485#c4> on bug
> 59485 <https://bugs.freedesktop.org/show_bug.cgi?id=59485> from Andoni
> Morales Alastruey <ylatuya@gmail.com> *
>
> Created attachment 73558 [details] <https://bugs.freedesktop.org/attachment.cgi?id=73558> [details] <https://bugs.freedesktop.org/attachment.cgi?id=73558&action=edit>
> Added fixed libgstffmpegcolorspace.so
>
>  ------------------------------
> You are receiving this mail because:
>
>    - You reported the bug.
>
>
Comment 6 Andoni Morales Alastruey 2013-02-20 13:55:46 UTC
Created attachment 75173 [details]
Added fixed libgstffmpegcolorspace.a


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.