speex编译for ios

speex依赖于libogg,需要先编译libogg

libogg:

./configure -prefix=/Users/simbi/Desktop/speex/ogg/i386 -host=i386-apple-darwin -build=x86_64-apple-darwin11.3.0 CC="/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -std=c99 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/"

 ./configure -prefix=/Users/simbi/Desktop/speex/ogg/armv6 -host=armv6-apple-darwin -build=x86_64-apple-darwin11.3.0 CC="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -std=c99 -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/"

 ./configure -prefix=/Users/simbi/Desktop/speex/ogg/armv7 -host=armv7-apple-darwin -build=x86_64-apple-darwin11.3.0 CC="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -std=c99 -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/"

 libspeex:

 ./configure -prefix=/Users/simbi/Desktop/speex/speex/i386 -host=i386-apple-darwin -disable-shared -enable-static -disable-oggtest -enable-fixed-point -disable-float-api -build=x86_64-apple-darwin11.3.0 -with-ogg=/Users/simbi/Desktop/speex/ogg/i386 CC="/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -std=c99 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/"

 

  ./configure -prefix=/Users/simbi/Desktop/speex/speex/armv6 -host=armv6-apple-darwin -disable-shared -enable-static -disable-oggtest -enable-fixed-point -disable-float-api -build=x86_64-apple-darwin11.3.0 -with-ogg=/Users/simbi/Desktop/speex/ogg/armv6 CC="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -std=c99 -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/"

 

 ./configure -prefix=/Users/simbi/Desktop/speex/speex/armv7 -host=armv7-apple-darwin -disable-shared -enable-static -disable-oggtest -enable-fixed-point -disable-float-api -build=x86_64-apple-darwin11.3.0 -with-ogg=/Users/simbi/Desktop/speex/ogg/armv7 CC="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -std=c99 -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/"

// 制作模拟器与真机通用静态库

lipo -create ogg/i386/lib/libogg.a ogg/armv6/lib/libogg.a ogg/armv7/lib/libogg.a -output libogg.a

lipo -create speex/i386/lib/libspeex.a speex/armv6/lib/libspeex.a speex/armv7/lib/libspeex.a -output libspeex.a 

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 7
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值