[Libav-user] Trying to compile ffmpeg for iOS

Gavin Kinsey gkinsey at ad-holdings.co.uk
Tue Mar 27 14:23:00 CEST 2012


On Friday 23 March 2012 21:22:33 Wagner Patriota wrote:
> Has anybody done it yet?

Yes, haven't tested with the latest SDK yet but for 5.0 and below I have it 
working.

> I am using the following commands:
> 
<snip commands>
> 
> But when I try to link my application with the libraries this above
> script generates, I get the following:
> 
> "ld: warning: ignoring file
> /Users/Wagner/ffmpeg/ffmpeg/armv7/libavcodec.a, file was built for
> archive which is not the architecture being linked (armv7)"

Configure flags that I use (minus the disable/enable decoders and stuff I have 
which aren't relevant)

configure --enable-static --disable-shared --enable-pic --
sysroot="/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk" 
--extra-ldflags="-arch armv7 -isysroot 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -
miphoneos-version-min=4.0" --enable-cross-compile --arch=arm --target-
os=darwin --
cc="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc" --
cpu=cortex-a8 --extra-cflags="-arch armv7 -mfpu=neon -miphoneos-version-
min=4.0" --disable-debug --enable-small

I also have a small patch to work around Apple gcc brokenness, which I've 
attached.

-- 
Gavin Kinsey
AD Holdings Plc


This email and any files transmitted with it are CONFIDENTIAL and intended solely for the use of the individual or entity to whom they are addressed. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system; you may not copy this message or disclose its contents to anyone. The recipient should check this email and any attachments for the presence of viruses. The Company accepts no liability for any damage caused by any virus transmitted by this email. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the Company. Contact Customer Services for details customerservices at dmicros.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ios.patch
Type: text/x-patch
Size: 2045 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120327/339d14ea/attachment.bin>


More information about the Libav-user mailing list