iphone x264 库编译方法
来源:互联网 发布:prorecorder一样的软件 编辑:程序博客网 时间:2024/06/11 01:20
首先到http://www.videolan.org/developers/x264.html下载x264的库,然后解压。
打开shell,进入x264的目录,执行如下语句
CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc ./configure --host=arm-apple-darwin --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk --prefix='dist' --extra-cflags='-arch armv7s' --extra-ldflags='-arch armv7s -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib/system' --enable-pic
打开shell,进入x264的目录,执行如下语句
CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc ./configure --host=arm-apple-darwin --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk --prefix='dist' --extra-cflags='-arch armv7s' --extra-ldflags='-arch armv7s -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib/system' --enable-pic
然后make,libx264.a就出来啦。如果无法执行,请将语句中的6.1.sdk替换成你电脑里面有的sdk。
注意:
CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc
请确保,路径正确。
(转自:http://blog.csdn.net/ixfly/article/details/7621258)
- iphone x264 库编译方法
- iphone x264 库编译方法
- iphone x264 库编译方法
- vc6下编译使用x264库方法
- ffmpeg嵌入x264库的编译方法
- windows编译X264库
- 实战x264,ffmpeg库编译
- 使用NDK编译x264库
- FFmpeg+x264编译Android库
- android-ndk-r8d 编译 x264 方法
- x264编译到ffmpeg的方法
- 编译x264
- x264编译
- 编译x264
- x264编译
- 编译x264
- X264编译
- x264 编译
- HDU1044 Collect More Jewels(BFS+DFS+地图压缩)
- python 用于网站抓取 登录 发布的模块介绍
- android基础篇------------java基础(8)JFrame
- 关于对-- ,++操作符的一点经验。(Javascrpit)
- c++继承访问控制符说明
- iphone x264 库编译方法
- 毕业生
- android 移动分享资料
- 【rzxt】笔者支招:巧移用户文件夹 扩大系统盘空间
- 小学生玩ACM----单调队列
- VS2005 WINCE新建工程错误:从用户数据存储中检索信息时出错,XML文档必须包含一个顶层元素
- 安卓开发-Activity Manager的作用
- STL的list容器如何对结构体进行排序
- Oracle decode函数用法与表的行列转换