回覆回應
How to compile ffmpeg for iPhone
- Download and install the iPhone SDK 3.1.
- Get the latest gas-preprocessor and install it in /usr/local/bin or some other directory in your $PATH.
http://github.com/yuvi/gas-preprocessor/ - Get the latest FFmpeg from SVN (minimum r20151).
- Configure FFmpeg with one of the following commands. These give a
clean build with a default installation of iPhone SDK 3.1 on OSX Leopard.
Other versions may vary. - For iPhone 3GS or iPod Touch 3G 32GB/64GB, use this command:
./configure --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.2.1 --as='gas-preprocessor.pl /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.2.1' --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk --enable-cross-compile --target-os=darwin --arch=arm --cpu=cortex-a8 --enable-pic
- For other iPhone or iPod Touch models, use this command:
./configure --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.2.1 --as='gas-preprocessor.pl /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.2.1' --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk --enable-cross-compile --target-os=darwin --arch=arm --cpu=arm1176jzf-s
- Run make.
由 water 在 週二, 2010-02-23 21:35 發表
Tags:

最新回應
18 周 4 天前
23 周 6 天前
27 周 1 天前
28 周 1 天前
37 周 2 小時前
37 周 2 小時前
37 周 1 天前
37 周 2 天前
39 周 12 小時前
39 周 1 天前