1、ffmpeg二进制包下载

ffmpeg-2.2.tar.bz2

 

2、解压配置,编译i386-OS版本

sh-3.2# ./configure --prefix=/usr/local/i386/ --arch=i386 --cpu=i386 --extra-cflags='-arch i386' --extra-ldflags='-arch i386' 

sh-3.2# make

sh-3.2# make install

 

3、编译i386-Simulator版本

 sh-3.2# ./configure --prefix=/usr/local/i386 --enable-cross-compile --arch=i386 --target-os=darwin --cc='/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -arch i386' --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/ --cpu=i386 --disable-yasm

sh-3.2# make

sh-3.2# make install

4、合并版本

sh-3.2# lipo -create /usr/local/i386/xxxx.a /usr/local/armv7/ssss.a -output /usr/local/i386_armv7/ffff.a

5、使用

6、附加问题:

GNU assembler not found, install gas-preprocessor

https://github.com/yuvi/gas-preprocessor/blob/master/gas-preprocessor.pl

拷贝到/usr/bin下。

#chmod 777 gas-preprocessor.pl



1、ffmpeg二进制包下载

ffmpeg-2.2.tar.bz2

 

2、解压配置,编译i386-OS版本

sh-3.2# ./configure --prefix=/usr/local/i386/ --arch=i386 --cpu=i386 --extra-cflags='-arch i386' --extra-ldflags='-arch i386' 

sh-3.2# make

sh-3.2# make install

 

3、编译i386-Simulator版本

 sh-3.2# ./configure --prefix=/usr/local/i386 --enable-cross-compile --arch=i386 --target-os=darwin --cc='/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -arch i386' --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/ --cpu=i386 --disable-yasm

sh-3.2# make

sh-3.2# make install

4、合并版本

sh-3.2# lipo -create /usr/local/i386/xxxx.a /usr/local/armv7/ssss.a -output /usr/local/i386_armv7/ffff.a

5、使用

6、附加问题:

GNU assembler not found, install gas-preprocessor

https://github.com/yuvi/gas-preprocessor/blob/master/gas-preprocessor.pl

拷贝到/usr/bin下。

#chmod 777 gas-preprocessor.pl


Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐