多媒体编程——编译x264 for ios armv7
来源:互联网 发布:java 获取spring容器 编辑:程序博客网 时间:2024/06/12 00:08
<pre name="code" class="plain">#!/bin/bash DEVELOPER=`xcode-select -print-path`SDK_VERSION="7.1" MIN_VERSION="6.0" PLATFORM="i386"SDK_TYPE="iPhoneSimulator"#PLATFORM="armv7"#SDK_TYPE="iPhoneOS" CURDIR=$(pwd)mkdir ${CURDIR}/x264-build cd x264./configure --disable-asm --prefix=${CURDIR}/x264-build/${PLATFORM} \--cc="${DEVELOPER}/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -miphoneos-version-min=${MIN_VERSION} -arch ${PLATFORM}" \--extra-cflags="-isysroot ${DEVELOPER}/Platforms/${SDK_TYPE}.platform/Developer/SDKs/${SDK_TYPE}${SDK_VERSION}.sdk -arch ${PLATFORM} -miphoneos-version-min=${MIN_VERSION} -I${DEVELOPER}/Platforms/${SDK_TYPE}.platform/Developer/SDKs/${SDK_TYPE}${SDK_VERSION}.sdk/usr/include" \--extra-ldflags="-L${DEVELOPER}/Platforms/${SDK_TYPE}.platform/Developer/SDKs/${SDK_TYPE}${SDK_VERSION}.sdk/usr/lib -L${DEVELOPER}/Platforms/${SDK_TYPE}.platform/Developer/SDKs/${SDK_TYPE}${SDK_VERSION}.sdk/usr/lib/system -arch ${PLATFORM} -miphoneos-version-min=${MIN_VERSION}" \--sysroot="${DEVELOPER}/Platforms/${SDK_TYPE}.platform/Developer/SDKs/${SDK_TYPE}${SDK_VERSION}.sdk" \--host="${PLATFORM}-apple-darwin" \--enable-pic \--enable-static \--enable-shared \make && sudo make install && make clean echo "Done."
6.0是部署版本 可以自己根据情况调整。
将这个脚本 位于 x264目录同级执行,它会创建一个x264-build的目录。
执行脚本时,不知道为什么它会使用../Platforms/MacOS.platform 下面的头文件,所以我的解决办法是暂时将MacOS.platform随便改下名字,然后执行时就会去找iPhoneOS.platform下得头文件了,才能编译过。
0 0
- 多媒体编程——编译x264 for ios armv7
- 多媒体编程——编译libmp3Lame for ios armv7
- 编译x264 for ios
- iOS下完美编译ffmpeg+x264,支持armv7, armv7s, 模拟器
- iOS下完美编译ffmpeg+x264,支持armv7, armv7s, 模拟器
- iOS下完美编译ffmpeg+x264,支持armv7, armv7s, 模拟器 (验证不通过,估计和ffmpeg版本有关)
- iOS下完美编译ffmpeg+x264,支持armv7, armv7s, 模拟器 (验证不通过,估计和ffmpeg版本有关)
- iOS 编译armv7 armv7s openssl
- ios上 x264 编译
- ios上 x264 编译
- ffmpeg + x264 + ios 编译
- iOS下编译x264
- iOS x264 编译
- X264的ARMV7-a的交叉编译及优化运行
- X264的ARMV7-a的交叉编译及优化运行
- iOS——bug错误:can't link with a main executable file for architecture armv7
- iOS——armv7,armv7s,arm64详解
- x264 for Android 的编译
- 发送dtmf键盘事件(模拟通话界面键盘事件)
- win7、win8旗舰版系统下载、32位、64位
- linux PPTP VPN客户端安装配置
- 将A表中某个字段的值赋给B表某个字段
- 读过最加速C + +
- 多媒体编程——编译x264 for ios armv7
- PHP Fatal error: Call to undefined function mysql_connect()解决方案
- 使用JFreeChart生成饼图
- drupal form 中图片上传
- 自我实现型的人的五个特质
- 快速查表法 FLUT
- 从汇编的角度看段错误
- NSAttributedString 学习
- 做好发散测试,提高测试效率(转)