当前位置: 代码迷 >> 综合 >> ios上 x264 编译
  详细解决方案

ios上 x264 编译

热度:60   发布时间:2024-01-11 17:50:20.0

首先到http://www.videolan.org/developers/x264.html下载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.0.sdk --prefix='build' --extra-cflags='-arch armv7' --extra-ldflags='-arch armv7 -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib/system' --enable-pic