This is a shell script to build FFmpeg libraries for iOS apps.
Tested with:
- FFmpeg 2.2.2
- Xcode 5.1.1
- https://github.com/libav/gas-preprocessor (for arm64)
- yasm 1.2.0
-
To build everything:
./build-ffmpeg.sh
-
To build arm64 libraries:
./build-ffmpeg.sh arm64
-
To build fat libraries for armv7 and x86_64 (64-bit simulator):
./build-ffmpeg.sh armv7 x86_64
-
To build fat libraries from separately built thin libraries:
./build-ffmpeg.sh lipo
You can download a binary for FFmpeg 2.2.2 release at https://downloads.sourceforge.net/project/ffmpeg-ios/ffmpeg-ios-master.tar.bz2
You should link with
- libz.dylib
- libbz2.dylib
- libiconv.dylib