[Libav-user] Trying to compile ffmpeg for iOS
Wagner Patriota
wagner.patriota at gmail.com
Fri Mar 23 22:22:33 CET 2012
Has anybody done it yet?
I am using the following commands:
--------------------------------
#!/bin/tcsh -f
if (! -d armv7) mkdir armv7
if (! -d lib) mkdir lib
rm armv7/*.a
make clean
./configure --disable-asm --disable-network --disable-mpegaudio-hp
--disable-lpc --disable-vaapi --disable-vdpau --disable-hwaccels
--disable-mmx --disable-mmx2 --disable-sse --disable-ssse3
--disable-avx --disable-amd3dnow --disable-amd3dnowext --disable-vis
--disable-mmi --disable-doc --disable-yasm --disable-ffmpeg
--disable-ffplay --disable-ffprobe --disable-ffserver --disable-rdft
--disable-dxva2 --disable-encoders --enable-decoders
--enable-decoder=h264 --enable-decoder=rawvideo --disable-bsfs
--disable-protocols --disable-indevs --disable-outdevs
--disable-devices --disable-filters --disable-demuxers
--enable-demuxer=h264 --disable-muxers --enable-muxers
--disable-parsers --enable-parser=h264 --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=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
--cpu=cortex-a8 --extra-cflags='-arch armv7' --extra-ldflags='-arch
armv7 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk'
--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/
--------------------------------
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)"
It means my compilation is wrong.... so what is wrong with my
compilation? Why it's not creating ARM7 libraries?
More information about the Libav-user
mailing list