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.
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
(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?
It's documented here in the "Cross-compilation of the SDK" section: http://docs.gstreamer.com/display/GstSDK/Building+from+source+using+Cerbero
Created attachment 73558 [details] Added fixed libgstffmpegcolorspace.so
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. > >
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.