Skip to content

Building

Taner Sener edited this page Apr 16, 2024 · 4 revisions

There are five build scripts in the project root: android.sh for Android, ios.sh for iOS , linux.sh for Linux , macos.sh for macOS and tvos.sh for tvOS.

Use these scripts to build FFmpegKit for each platform. For Android, you will also need to set ANDROID_SDK_ROOT and ANDROID_NDK_ROOT environment variables. After a successful build, compiled FFmpeg and FFmpegKit libraries can be found under the prebuilt directory. Project Layout wiki lists where the binaries for each platform are placed within the prebuilt directory.

All five scripts support additional options and can be customised to enable/disable specific external libraries and/or architectures. Please refer to wiki pages of android.sh, ios.sh, linux.sh, macos.sh and tvos.sh to see all available build options.

Android
export ANDROID_SDK_ROOT=<Android SDK Path>
export ANDROID_NDK_ROOT=<Android NDK Path>
./android.sh
iOS
./ios.sh
Linux
./linux.sh
macOS
./macos.sh
tvOS
./tvos.sh
Clone this wiki locally