[FFmpeg-user] Armv6't compile success

Patrick humer4489 at gmail.com
Sat Apr 28 15:10:15 CEST 2012


On Apr 27, 2012, at 2:14 AM, 回归 wrote:

> The teacher, how are you, I have a question.
> Environment: MAC OS x: 10.7; Xcode: 4.2; SDK: 5.0;
> My command:
> 1: ./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 armv6' --extra-ldflags='-arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk' --enable-pic
> 2:./configure --enable-cross-compile --arch=c --target-os=darwin --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk --cpu=arm6 --extra-cflags='-arch armv6' --extra-ldflags='-arch armv6' --libdir=/ffmpeg/ffmpeg_arm --prefix=/ffmpeg/prefix_arm
> 
> 
> Armv6't compile success, of the newspaper wrong for:
> /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc is unable to create an executable file.
> C compiler test failed.
> 
> 

Use this instead:

--cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1 
--as='gas-preprocessor/gas-preprocessor.pl /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1' 


Of course this assumes that you have version 4.2.1. Just look in the /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin folder and use latest arm-apple-darwin10-gcc-xxx version that is there. Also, don't put an arch switch in the --extra-cflags, only the --extra-ldflags should have it.

Hope this helps.
Patrick


More information about the ffmpeg-user mailing list