1、参考链接: http://stackoverflow.com/questions/14876504/compile-speex-on-xcode-for-ios; https://github.com/iosdevzone/IDZPrecompiledSpeex;
2、编译步骤:
(1)创建libvorbis_build.bash,文件内容为:
git clone https://github.com/iosdevzone/IDZBuild
export PATH=`pwd`/IDZBuild:$PATH
git clone https://github.com/iosdevzone/IDZPrecompiledOgg
git clone https://github.com/iosdevzone/IDZPrecompiledSpeex
mkdir -p IDZBuildRoot
export IDZ_BUILD_ROOT=`pwd`/IDZBuildRoot
. IDZPrecompiledOgg/libogg_build.bash
. IDZPrecompiledSpeex/speex_build.bash
(2)执行命令 bash libvorbis_build.bash
(3)第一次编译可能会失败,需要更新iOS SDK的版本。它会生成文件夹IDZPrecompiledSpeex,修改IDZPrecompiledSpeex/speex_build.bash 的SDK版本为当前版本(IDZ_IOS_SDK_VERSION=10.2)。
(4)再次执行步骤(2),会在IDZPrecompiledSpeex下生成 Speex.framework