try compile with this script:<div><br></div><div><div style>rm -r ./compiled</div><div style><br></div><div style>echo Configure for armv7 build</div><div style>./configure \</div><div style>--cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \</div>

<div style>--as='/usr/local/bin/<a href="http://gas-preprocessor.pl/" target="_blank" style="color:rgb(17,85,204)">gas-preprocessor.pl</a> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \</div>

<div style>--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk \</div><div style>--target-os=darwin \</div><div style>--arch=arm \</div><div style>--cpu=cortex-a8 \</div>

<div style>--extra-cflags='-arch armv7' \</div><div style>--extra-ldflags='-arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk' \</div>

<div style>--prefix=compiled/armv7 \</div><div style>--enable-cross-compile \</div><div style>--enable-nonfree \</div><div style>--enable-gpl \</div><div style>--disable-armv5te \</div><div style>--disable-swscale-alpha \</div>

<div style>--disable-doc \</div><div style>--disable-ffmpeg \</div><div style>--disable-ffplay \</div><div style>--disable-ffprobe \</div><div style>--disable-ffserver \</div><div style>--disable-asm \</div><div style>--disable-debug</div>

<div style><br></div><div style>make clean</div><div style>make && make install</div><div style><br></div><div style><br></div><div style>echo Configure for armv6</div><div style>./configure \</div><div style>--cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \</div>

<div style>--as='/usr/local/bin/<a href="http://gas-preprocessor.pl/" target="_blank" style="color:rgb(17,85,204)">gas-preprocessor.pl</a> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \</div>

<div style>--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk \</div><div style>--target-os=darwin \</div><div style>--arch=arm \</div><div style>--cpu=arm1176jzf-s \</div>

<div style>--extra-cflags='-arch armv6' \</div><div style>--extra-ldflags='-arch armv6 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk' \</div>

<div style>--prefix=compiled/armv6 \</div><div style>--enable-cross-compile \</div><div style>--enable-nonfree \</div><div style>--enable-gpl \</div><div style>--disable-armv5te \</div><div style>--disable-swscale-alpha \</div>

<div style>--disable-doc \</div><div style>--disable-ffmpeg \</div><div style>--disable-ffplay \</div><div style>--disable-ffprobe \</div><div style>--disable-ffserver \</div><div style>--disable-asm \</div><div style>--disable-debug</div>

<div style><br></div><div style>make clean</div><div style>make && make install</div><div style><br></div><div style><br></div><div style>echo Configure for i386</div><div style>./configure \</div><div style>--cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc \</div>

<div style>--as='/usr/local/bin/<a href="http://gas-preprocessor.pl/" target="_blank" style="color:rgb(17,85,204)">gas-preprocessor.pl</a> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc' \</div>

<div style>--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk \</div><div style>--target-os=darwin \</div><div style>--arch=i386 \</div><div style>

--cpu=i386 \</div><div style>--extra-cflags='-arch i386' \</div><div style>--extra-ldflags='-arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk' \</div>

<div style>--prefix=compiled/i386 \</div><div style>--enable-cross-compile \</div><div style>--enable-nonfree \</div><div style>--enable-gpl \</div><div style>--disable-armv5te \</div><div style>--disable-swscale-alpha \</div>

<div style>--disable-doc \</div><div style>--disable-ffmpeg \</div><div style>--disable-ffplay \</div><div style>--disable-ffprobe \</div><div style>--disable-ffserver \</div><div style>--disable-asm \</div><div style>--disable-debug</div>

<div style><br></div><div style>make clean</div><div style>make && make install</div><div style><br></div><div style><br></div><div style># make fat (universal) libs</div><div style>mkdir -p ./compiled/fat/lib</div>

<div style><br></div><div style>lipo -output ./compiled/fat/lib/libavcodec.a  -create \</div><div style>-arch armv6 ./compiled/armv6/lib/libavcodec.a \</div><div style>-arch armv7 ./compiled/armv7/lib/libavcodec.a \</div>

<div style>-arch i386 ./compiled/i386/lib/libavcodec.a</div><div style><br></div><div style>lipo -output ./compiled/fat/lib/libavdevice.a  -create \</div><div style>-arch armv6 ./compiled/armv6/lib/libavdevice.a \</div><div style>

-arch armv7 ./compiled/armv7/lib/libavdevice.a \</div><div style>-arch i386 ./compiled/i386/lib/libavdevice.a</div><div style><br></div><div style>lipo -output ./compiled/fat/lib/libavformat.a  -create \</div><div style>
-arch armv6 ./compiled/armv6/lib/libavformat.a \</div>
<div style>-arch armv7 ./compiled/armv7/lib/libavformat.a \</div><div style>-arch i386 ./compiled/i386/lib/libavformat.a</div><div style><br></div><div style>lipo -output ./compiled/fat/lib/libavutil.a  -create \</div><div style>

-arch armv6 ./compiled/armv6/lib/libavutil.a \</div><div style>-arch armv7 ./compiled/armv7/lib/libavutil.a \</div><div style>-arch i386 ./compiled/i386/lib/libavutil.a</div><div style><br></div><div style>lipo -output ./compiled/fat/lib/libswresample.a  -create \</div>

<div style>-arch armv6 ./compiled/armv6/lib/libswresample.a \</div><div style>-arch armv7 ./compiled/armv7/lib/libswresample.a \</div><div style>-arch i386 ./compiled/i386/lib/libswresample.a</div><div style><br></div><div style>

lipo -output ./compiled/fat/lib/libpostproc.a  -create \</div><div style>-arch armv6 ./compiled/armv6/lib/libpostproc.a \</div><div style>-arch armv7 ./compiled/armv7/lib/libpostproc.a \</div><div style>-arch i386 ./compiled/i386/lib/libpostproc.a</div>

<div style><br></div><div style>lipo -output ./compiled/fat/lib/libswscale.a  -create \</div><div style>-arch armv6 ./compiled/armv6/lib/libswscale.a \</div><div style>-arch armv7 ./compiled/armv7/lib/libswscale.a \</div>

<div style>-arch i386 ./compiled/i386/lib/libswscale.a</div><div style><br></div><div style>lipo -output ./compiled/fat/lib/libavfilter.a  -create \</div><div style>-arch armv6 ./compiled/armv6/lib/libavfilter.a \</div><div style>

-arch armv7 ./compiled/armv7/lib/libavfilter.a \</div><div style>-arch i386 ./compiled/i386/lib/libavfilter.a</div></div><div><br></div><div><br><br><div class="gmail_quote">On Mon, Jun 4, 2012 at 6:05 AM, jennyhoo <span dir="ltr"><<a href="mailto:jennyhoo668@gmail.com" target="_blank">jennyhoo668@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><pre style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:-webkit-auto;font-variant:normal;text-transform:none;font-style:normal;white-space:pre-wrap;font-weight:normal;word-spacing:0px">

I use build ffmpeg for iOS 5.1 successfully.</pre><pre style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:-webkit-auto;font-variant:normal;text-transform:none;font-style:normal;white-space:pre-wrap;font-weight:normal;word-spacing:0px">

bug when I try to link my application with the libraries this above
script generates, I get the following:

"ld: warning: ignoring file
/Users/XXXXX/ffmpeg/ffmpeg/armv7/libavcodec.a, file was built for
archive which is not the architecture being linked (armv7)"

Why it's not creating ARM7 libraries?</pre><div><br></div></div><br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br></div>