Skip to content

Instantly share code, notes, and snippets.

@lu-zero
Created August 20, 2014 15:07
Show Gist options
  • Save lu-zero/9400fc7b2fba1f35d118 to your computer and use it in GitHub Desktop.
Save lu-zero/9400fc7b2fba1f35d118 to your computer and use it in GitHub Desktop.
Building libav for ios/arm64
../configure \
--cc=`xcrun -f --sdk iphoneos7.1 clang` \
--arch=aarch64 \
--cpu=generic \
--sysroot=`xcrun --sdk iphoneos7.1 --show-sdk-path` \
--target-os=darwin \
--extra-cflags='-arch arm64' \
--extra-ldflags='-arch arm64 -miphoneos-version-min=7.0' \
--enable-cross-compile
@lu-zero
Copy link
Author

lu-zero commented Aug 20, 2014

  1. install gas-preprocessor
  2. get Libav git clone git://git.libav.org/libav
  3. mkdir .arm64 && cd .arm64
  4. the content of this gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment