博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Building FFmpeg for iPhone
阅读量:5048 次
发布时间:2019-06-12

本文共 1982 字,大约阅读时间需要 6 分钟。

原此出处:

I am pleased to announce that FFmpeg can now be built unpatched for
the iPhone. The process is still not entirely without pain, however.
Here’s how it’s done:

1. Download and install the iPhone SDK 3.1.

2. Get the latest gas-preprocessor and install it in /usr/local/bin
or some other directory in your $PATH.
3. Get the latest FFmpeg from SVN (minimum r20151).
4. 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.
4a. 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
4b. 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
5. Run make.

It is important to specify a correct –cpu option, and not merely an

architecture version. Failure to specify the exact CPU will give a
broken build.

For the iPhone 3GS and compatible iPods, –enable-pic is required to

avoid some nasty-looking linker warnings about relocations.

I have not tested the builds on an iPhone/iPod, so there may still be

remaining issues. Please report any problems you encounter.

Many thanks to David Conrad for the gas-preprocessor script, without

which this would not be possible.

转载于:https://www.cnblogs.com/qq78292959/archive/2011/04/29/2076978.html

你可能感兴趣的文章
【4.1】Python中的序列分类
查看>>
ubuntu 移动文件
查看>>
Easy Mock
查看>>
看看 Delphi XE2 为 VCL 提供的 14 种样式
查看>>
Python内置函数(29)——help
查看>>
机器学习系列-tensorflow-01-急切执行API
查看>>
SqlServer 遍历修改字段长度
查看>>
Eclipse快捷键:同时显示两个一模一样的代码窗口
查看>>
《架构之美》阅读笔记05
查看>>
《大道至简》读后感——论沟通的重要性
查看>>
JDBC基础篇(MYSQL)——使用statement执行DQL语句(select)
查看>>
关于React中props与state的一知半解
查看>>
java中Hashtable和HashMap的区别(转)
查看>>
关闭数据库
查看>>
webStrom智能提示忽略首字母大小写问题
查看>>
层叠加的五条叠加法则(一)
查看>>
设计模式六大原则(5):迪米特法则
查看>>
对Feature的操作插入添加删除
查看>>
javascript String
查看>>
ecshop 系统信息在哪个页面
查看>>