我是靠谱客的博主 无奈高跟鞋,最近开发中收集的这篇文章主要介绍android ndk ffmpeg,用Android NDK编译FFmpeg,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

请问楼主,库我都编译过了,但是在编译ffmpeg.c的时候,出那么多错是这么回事?谢谢

Gdbserver : [arm-eabi-4.4.0] /cygdrive/f/workspace2/androidPlayer/libs/armeabi/gdbserver

Gdbsetup : /cygdrive/f/workspace2/androidPlayer/libs/armeabi/gdb.setup

Gdbsetup : + source directory /cygdrive/f/workspace2/androidPlayer/jni

Compile thumb : ffmpeg_jni Compile thumb : ffmpeg_jni SharedLibrary : libffmpeg_jni.so

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavfilter.a(defaults.o):

In function `avfilter_default_get_video_buffer':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavfilter/defaults.c:52: undefined reference to `av_fill_image_linesizes'

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavfilter/defaults.c:57: undefined reference to `av_fill_image_pointers'

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavfilter/defaults.c:60: undefined reference to `av_fill_image_pointers'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(bink.o): In function `decode_init':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/bink.c:975: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(dnxhddec.o): In function `dnxhd_decode_frame':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/dnxhddec.c:309: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(dpx.o): In function `decode_frame':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/dpx.c:143: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(eacmv.o): In function `cmv_decode_frame':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/eacmv.c:160: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(eamad.o): In function `decode_frame':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/eamad.c:264: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(eatgv.o):/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/eatgv.c:279:

more undefined references to `av_check_image_size' follow

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(imgconvert.o): In function `ff_fill_linesize':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/imgconvert.c:504: undefined reference to `av_fill_image_linesizes'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(imgconvert.o): In function `ff_fill_pointer':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/imgconvert.c:510: undefined reference to `av_fill_image_pointers'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(imgconvert.o): In function `avpicture_fill':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/imgconvert.c:518: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/imgconvert.c:521: undefined reference to `av_fill_image_linesizes'

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/imgconvert.c:524: undefined reference to `av_fill_image_pointers'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(imgconvert.o): In function `avpicture_get_size':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/imgconvert.c:600: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(indeo3.o): In function `iv_decode_frame':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/indeo3.c:999: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(kgv1dec.o): In function `decode_frame':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/kgv1dec.c:54: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(mjpegdec.o): In function `ff_mjpeg_decode_sof':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/mjpegdec.c:222: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(mpegvideo.o): In function `MPV_common_init':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/mpegvideo.c:514: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(nuv.o):/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/nuv.c:115:

more undefined references to `av_check_image_size' follow

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(utils.o): In function `avcodec_default_get_buffer':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/utils.c:286: undefined reference to `av_fill_image_linesizes'

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/utils.c:296: undefined reference to `av_fill_image_pointers'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(utils.o): In function `avcodec_open':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/utils.c:490: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(utils.o): In function `avcodec_encode_video':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/utils.c:557: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(utils.o): In function `avcodec_decode_video2':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/utils.c:607: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(utils.o): In function `av_parse_video_frame_size':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/utils.c:1099: undefined reference to `av_parse_video_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(utils.o): In function `av_parse_video_frame_rate':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/utils.c:1104: undefined reference to `av_parse_video_rate'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(vp3.o): In function `theora_decode_header':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/vp3.c:1984: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(vp8.o): In function `update_dimensions':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/vp8.c:228: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(vqavideo.o): In function `vqa_decode_init':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/vqavideo.c:151: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(xsubdec.o): In function `decode_frame':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/xsubdec.c:80: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(yop.o): In function `yop_decode_init':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/yop.c:88: undefined reference to `av_check_image_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(aacsbr.o): In function `sbr_make_f_master':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/aacsbr.c:418: undefined reference to `log2f'

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/aacsbr.c:446: undefined reference to `log2f'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(aacsbr.o): In function `sbr_make_f_derived':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/aacsbr.c:570: undefined reference to `log2f'

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/aacsbr.c:570: undefined reference to `log2f'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(aaccoder.o): In function `coef2minsf':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/aaccoder.c:520: undefined reference to `log2f'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavcodec.a(aaccoder.o):/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavcodec/aaccoder.c:525:

more undefined references to `log2f' follow

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavformat.a(oggparsedirac.o): In function `dirac_header':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavformat/oggparsedirac.c:39:

undefined reference to `ff_dirac_parse_sequence_header'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavformat.a(utils.o): In function `parse_image_size':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavformat/utils.c:3189: undefined reference to `av_parse_video_size'

/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libavformat.a(utils.o): In function `parse_frame_rate':

/cygdrive/f/workspace2/androidPlayer/jni/ffmpeg/libavformat/utils.c:3195: undefined reference to `av_parse_video_rate'

collect2: ld returned 1 exit status

make: *** [/cygdrive/f/workspace2/androidPlayer/obj/local/armeabi/libffmpeg_jni.so] Error 1

最后

以上就是无奈高跟鞋为你收集整理的android ndk ffmpeg,用Android NDK编译FFmpeg的全部内容,希望文章能够帮你解决android ndk ffmpeg,用Android NDK编译FFmpeg所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(43)

评论列表共有 0 条评论

立即
投稿
返回
顶部