title: FFmpeg for iOS5
body: <p>Has anyone been able to compile ffmpeg libraries using the iOS5 sdk?  I have found scripts that use the 4.3 sdk but nothing for iOS5.  I would assume that libraries built with the old sdk and armv7 will still be compatible for iOS 5.  </p>
  
  <p>Here is the command I am trying to use:</p>
  
  <pre><code>./configure \ --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \ --as='gas-preprocessor.pl /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \ --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk \ --extra-ldflags=-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/system \ --target-os=darwin \ --arch=arm \ --cpu=cortex-a8 \ --extra-cflags='-arch armv7' \ --extra-ldflags='-arch armv7' \ --prefix=compiled/armv7 \ --enable-pic \ --enable-cross-compile \ --disable-armv5te \ --disable-ffmpeg \ --disable-ffplay \ --disable-ffserver \ --disable-ffprobe \ --disable-doc
  </code></pre>
  
  <p>I have also tried using a script like this one:</p>
  
  <pre><code>#!/bin/tcsh -f
  
  if (! -d armv7) mkdir armv7
  if (! -d lib) mkdir lib
  
  rm armv7/*.a
  
  make clean
  
  ./configure --disable-doc --disable-ffmpeg --disable-ffplay --disable-ffserver --enable-cross-compile --arch=arm --target-os=darwin --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc --as='gas-preprocessor/gas-preprocessor.pl /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk --cpu=cortex-a8 --extra-cflags='-arch armv7' --extra-ldflags='-arch armv7' --enable-pic
  
  make
  
  mv libavcodec/libavcodec.a armv7/
  mv libavdevice/libavdevice.a armv7/
  mv libavformat/libavformat.a armv7/
  mv libavutil/libavutil.a armv7/
  mv libswscale/libswscale.a armv7/
  
  rm lib/*.a
  
  cp armv7/*.a lib/
  </code></pre>
  
  <p>I have also tried to switch to the gcc-4.2 as well as the llvm-gcc-4.2.  However I get an "Unknown option" error shown below in the comments.</p>
  
  <p>Any info will be great and thanks.</p>