vmware14 mac os 10.11环境编译ijkplayer报错解决方式

进入mac终端

1、下载地址:  https://github.com/Bilibili/ijkplayer(ijkpalyer-master)

2、进入mac终端

3、进入ijkplayer-master 文件夹,命令行执行 ./init-iso.sh 下载ffmpeg。

4、cd ..

5、cd ios

6、./compile-ffmpeg.sh clean

7、./compile-ffmpeg.sh all (在这里我遇到了第一个问题)

......config/module.sh: line 1: module-lite.sh: command not found

    解决方式:进入ijkpalyer-master/config

    rm module.sh

    ln -s module-lite.sh module.sh

8、回到ijkpalyer-master/ios,断续执行

    ./compile-ffmpeg.sh clean

    ./compile-ffmpeg.sh all 

9、这里遇到了第二个问题

C compiler test failed.

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
[email protected]  mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.

解决方式:sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer

参考:https://github.com/Bilibili/ijkplayer/issues/1160

10、继续,编译成功

./compile-ffmpeg.sh clean

./compile-ffmpeg.sh all


你可能感兴趣的:(IOS)