x264 编译总结
来源:互联网 发布:protel手机版软件 编辑:程序博客网 时间:2024/05/29 23:45
1.编译x264
cd H264 然后
a.如果编译不上可以单独安装Command line tools, 在终端输入(xcode-select --install),就可以直接安装。
b.不同平台的编译命令(armv7, armv7s, arm64)
CC=/Applications/Xcode.app/Contents/Developer/usr/bin/gcc ./configure --host=arm-apple-darwin --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk --extra-cflags='-arch arm64' --extra-ldflags='-arch arm64 -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/lib/system' --enable-static --disable-asm
c.合成.a
lipo -info lib1.a 查看支持的平台
lipo -create lib1.a lib2.a -output lib.a, 合并不同平台下的版本
d.拆分.a
lipo /Users/jiabing/Desktop/lib/libavcodec.a -thin arm64 -output /Users/jiabing/Desktop/lib/libavcodec_arm64.a
iPhoneOS8.2.sdk 可能会变,需要修改成最新的版本
CC=/Applications/Xcode.app/Contents/Developer/usr/bin/gcc ./configure --host=arm-apple-darwin --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk --extra-cflags='-arch armv7' --extra-ldflags='-arch armv7 -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/lib/system' --enable-static --disable-asm
CC=/Applications/Xcode.app/Contents/Developer/usr/bin/gcc ./configure --host=arm-apple-darwin --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk --extra-cflags='-arch armv7s' --extra-ldflags='-arch armv7s -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/lib/system' --enable-static --disable-asm
CC=/Applications/Xcode.app/Contents/Developer/usr/bin/gcc ./configure --host=arm-apple-darwin --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk --extra-cflags='-arch arm64' --extra-ldflags='-arch arm64 -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk/usr/lib/system' --enable-static --disable-asm
i386未成功
CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc ./configure --host=i386-apple-darwin --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk --extra-cflags='-arch i386' --extra-ldflags='-arch i386 -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/lib/system' --enable-static --disable-asm
有的时候需要手动填写arm64 armv7 armv7s i386(iPhoneSimulator.platform i386-apple-darwin)
最后执行make
0 0
- x264 编译总结
- ubuntu编译x264与ffmpeg--总结
- linux编译ffmjpg和x264总结
- win7用mingw编译ffmpeg+x264总结
- 编译x264
- x264编译
- 编译x264
- x264编译
- 编译x264
- X264编译
- x264 编译
- X264编译
- x264 编译
- x264编译
- x264编译
- x264编译通过
- VC2005 编译 X264 问题
- 交叉编译安装x264
- Unity项目架构设计与开发管理观看总结
- 97. SpringBoot-启动流程分析第一篇
- 数据结构实验之栈二:一般算术表达式转换成后缀式
- APMServ5.2.6默认的mysql安装后root帐号
- CSS学习之Flex弹性布局语法介绍
- x264 编译总结
- 调试 OpenGL 4.2 和 Shader - 基于 NVIDIA Nsight Visual Studio 3.2
- 微信开发:解决IOS端下面的点击延迟问题
- liunx tomcat 配置和开机自动启动
- 背景建模--Vibe 算法优缺点分析
- 观察者模式学习总结
- java界面编程初探
- Spring注解
- 如何选取10——99的5个随机数,并进行从小到大排序