Ticket #497: build_armv7_working

File build_armv7_working, 895 bytes (added by Gagan, 5 years ago)

Working build file for older version FFMPEG

Line 
1#!/bin/tcsh -f
2
3if (! -d armv7) mkdir armv7
4if (! -d lib) mkdir lib
5
6rm armv7/*.a
7
8make clean
9
10./configure --extra-ldflags=-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/lib/system --disable-bzlib --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/iPhoneOS4.3.sdk --cpu=cortex-a8 --extra-cflags='-arch armv7' --extra-ldflags='-arch armv7' --enable-pic
11
12make
13
14mv libavcodec/libavcodec.a armv7/
15mv libavdevice/libavdevice.a armv7/
16mv libavformat/libavformat.a armv7/
17mv libavutil/libavutil.a armv7/
18mv libswscale/libswscale.a armv7/
19
20rm lib/*.a
21
22cp armv7/*.a lib/