如何使用 android NDK 解决有关 ffmpeg 2.6 的编译错误?
how to solve this compile error about ffmpeg 2.6 with android NDK?
我遇到了关于 ffmpeg 2.6 的编译错误。
我使用了 android-ndk-r10d。 如何解决?
libavformat/mov.c:653: error: undefined reference to 'avpriv_ac3_channel_layout_tab'
libavformat/mov.c:685: error: undefined reference to 'avpriv_ac3_channel_layout_tab'
libavformat/movenc.c:4818: error: undefined reference to 'avpriv_pix_fmt_bps_mov'
libavformat/movenc.c:1359: error: undefined reference to 'avpriv_pix_fmt_bps_mov'
libavformat/utils.c:3375: error: undefined reference to 'avcodec_pix_fmt_to_codec_tag'
libavformat/utils.c:3376: error: undefined reference to 'avpriv_get_raw_pix_fmt_tags'
顺序应该是这样的:
LOCAL_STATIC_LIBRARIES += libavformat libavcodec libswresample libswscale libavutil
我遇到了关于 ffmpeg 2.6 的编译错误。 我使用了 android-ndk-r10d。 如何解决?
libavformat/mov.c:653: error: undefined reference to 'avpriv_ac3_channel_layout_tab'
libavformat/mov.c:685: error: undefined reference to 'avpriv_ac3_channel_layout_tab'
libavformat/movenc.c:4818: error: undefined reference to 'avpriv_pix_fmt_bps_mov'
libavformat/movenc.c:1359: error: undefined reference to 'avpriv_pix_fmt_bps_mov'
libavformat/utils.c:3375: error: undefined reference to 'avcodec_pix_fmt_to_codec_tag'
libavformat/utils.c:3376: error: undefined reference to 'avpriv_get_raw_pix_fmt_tags'
顺序应该是这样的:
LOCAL_STATIC_LIBRARIES += libavformat libavcodec libswresample libswscale libavutil