ffmpeg IOS模拟器编译

fans1991 发布于 2013/07/26 13:55
阅读 558
收藏 1
#!/bin/tcsh -f
set targetDir="./i386"
if (! -d $targetDir ) mkdir $targetDir


rm -f $targetDir/*.a
make clean


./configure \
--disable-doc \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffserver \
--disable-ffprobe \
--disable-debug 
--disable-yasm  \
--disable-armv5te \
--disable-swscale-alpha \
--enable-nonfree \
--enable-gpl \
--cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc \
--as='gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc' \
--extra-ldflags='-arch i386 -miphoneos-version-min=4.3 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk' \
--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk \
--prefix=compiled/i386 \
--target-os=darwin \
--arch=i386 \
--cpu=i386 \
--extra-cflags='-arch i386 -miphoneos-version-min=4.3 -mdynamic-no-pic' \
--disable-asm \
--target-os=darwin \






make




mv libavcodec/libavcodec.a $targetDir
mv libavformat/libavformat.a $targetDir
mv libavutil/libavutil.a $targetDir
mv libswscale/libswscale.a $targetDir



以上是我的 i386,求大神指导,不胜感激。。。
加载中
返回顶部
顶部