Compiling ffmpeg for android

Luis Linietsky llinietsky at dlatv.net
Thu Jan 10 17:11:18 PST 2013


Hello there,
I have been trying unsuccessfully to build Tutorial5 from the gstreamer android tutorials with ffmpeg plugin.

I keep getting the following error:

luigi at 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: /home/luigi/projects/gstreamer-sdk/lib/libavcodec.a(flashsvenc.o): in function flashsv_encode_frame:libavcodec/flashsvenc.c:169: error: undefined reference to 'compress2'
/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-sdk/lib/libavcodec.a(tiffenc.o): in function encode_strip:libavcodec/tiffenc.c:165: error: undefined reference to 'compress'

The .o files are referencing compress and compress2 from zlib, but the symbols in such library are z_compress and z_compress2 (there is a #define compress z_compress in the header), so i guess this is a compilation error? also I just need to use h264 from ffmpeg, so is there any plugin or module i can disable for this error to not happen? (I don't really need flash or tiff decoding)



This email and its contents (including any attachments) are being sent to you on condition of confidentiality and may be protected by legal privilege.  Disclosure to anyone other than intended recipients is unauthorized. Unless you are the intended recipient (or authorized to receive for the intended recipient), you may not read, print, retain, use, copy, distribute or disclose to anyone the email or its contents (including any attachments). If you have received the message in error, please advise the sender by reply e-mail, and destroy all copies of the email (including any attachments).  Any business terms incorporated in the email or its contents (including any attachments) are meant solely for purposes of discussion and are non-binding on DLA, Inc. and its affiliated companies. Further, no representation is made with respect to any content contained in this email (including any attachments). Any opinions contained in this e-mail are those of the author of the message and do not necessarily reflect those of DLA, Inc. or any of its affiliated companies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20130111/24cd376f/attachment.html>


More information about the gstreamer-android mailing list