编译speex(i386、armv6、armv7、armv7s)方法
本文借鉴:http://www.cocoachina.com/bbs/read.php?tid=114755&keyword=speex
桌面上建立speexLibrary文件夹,将下载的libogg-1.3.0、speex-1.2rc1放入;
一、编译ogg:
1.ogg-i386的库
通过如下命令进入/Users/wangping/Desktop/speexLibrary/libogg-1.3.0目录,因为configure在此目录下:
1)cd Desktop/
2)ls
3)cd speexLibrary/
4)ls
5)cd libogg-1.3.0/
直接用:cd Desktop/speexLibrary/libogg-1.3.0/
编译ogg-i386库:
6)./configure -prefix=/Users/wangping/Desktop/speexLibrary/libogg-1.3.0/i386 -host=i386-apple-darwin -build=x86_64-apple-darwin11.3.0 CC="/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2 -std=c99 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/"
7)make (如提示make命令无效,则xcode -> preferences ->downloads -> command line tools安装)
make install
make clean (一定要clean,不然后面编译的都是第一次的编译的内容