首页 > 代码库 > Swift基础--ijkplayer编译

Swift基础--ijkplayer编译

这篇与Swift基本上没有什么关系,不过之后会用到,这次编译是使用Mac编译IOS版本的,下面是编译流程,最后是整个项目的下载地址,因为下载太慢了。

1、下载源码

git clone https://github.com/bbcallen/ijkplayer.git 

2、编译

cd  ijkplayer-ios-stable

./init-ios.sh//这里下载依赖包

./compile-ffmpeg.sh//这里编译,会有几个选项,我选的是all

3、编译结果

lipo archs: armv7 armv7s arm64 i386 x86_64
Architectures in the fat file: /Users/jiezhang/ijkplayer-ios-stable/ios/build/universal/lib/libavcodec.a are: armv7 armv7s i386 x86_64 arm64 
Architectures in the fat file: /Users/jiezhang/ijkplayer-ios-stable/ios/build/universal/lib/libavformat.a are: armv7 armv7s i386 x86_64 arm64 
Architectures in the fat file: /Users/jiezhang/ijkplayer-ios-stable/ios/build/universal/lib/libavutil.a are: armv7 armv7s i386 x86_64 arm64 
Architectures in the fat file: /Users/jiezhang/ijkplayer-ios-stable/ios/build/universal/lib/libswscale.a are: armv7 armv7s i386 x86_64 arm64 
Architectures in the fat file: /Users/jiezhang/ijkplayer-ios-stable/ios/build/universal/lib/libswresample.a are: armv7 armv7s i386 x86_64 arm64
4、下载地址

整个压缩包也比较大,800多M,360云盘 http://yunpan.cn/csy5xsjtTR2e6  提取码 1838


5、试验效果




Swift基础--ijkplayer编译