美文网首页
4.iOS-ijkPlayer集成问题

4.iOS-ijkPlayer集成问题

作者: KYM1988 | 来源:发表于2019-09-26 16:04 被阅读0次

    问题1

    ./compile-ffmpeg.sh all 执行完后报错如图:

    If you think configure made a mistake, make sure you are using the latest

    version from Git.  If the latest version fails, report the problem to the

    ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.

    Include the log file "ffbuild/config.log" produced by configure as this will help

    solve the problem.

    解决办法:

    输入:sudo xcode-select --switch /Applications/Xcode.app

    问题2

    如下图:

    warning: optimization flag '-fomit-frame-pointer' is not supported for target 'armv7' [-Wignored-optimization-argument]

    AS libavcodec/arm/aacpsdsp_neon.o

    ./libavutil/arm/asm.S:50:9: error: unknown directive

            .arch armv7-a

            ^

    make: *** [libavcodec/arm/aacpsdsp_neon.o] Error 1

    make: *** Waiting for unfinished jobs....

    解决办法:

    打开这个 compile-ffmpeg.sh  文件

    第24行 改为: FF_ALL_ARCHS_IOS8_SDK="arm64 i386 x86_64"

    第120行 改为: if [ "$FF_TARGET" = "armv7s" -o "$FF_TARGET" = "arm64" ]; then

    第159行 改为: echo " compile-ffmpeg.sh arm64|i386|x86_64"

    链接:https://www.jianshu.com/p/8668b38a629e

    相关文章

      网友评论

          本文标题:4.iOS-ijkPlayer集成问题

          本文链接:https://www.haomeiwen.com/subject/gecggqtx.html