首页 > 代码库 > xcode 5.1 下静态编译 libogg +speex

xcode 5.1 下静态编译 libogg +speex

xcode 5.1 下静态编译 libogg +speex

编译是在命令行模式下进行的。打开终端,首先进入ogg所在的文件夹,我们先编译ogg

1.ogg-i386的库

./configure-prefix=/Users/(用户名)/Desktop/libogg-1.3.0/i386 -host=i386-apple-darwin -build=x86_64-apple-darwin11.3.0CXX="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -std=c99 -arch i386 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/"

make

make install

make distclean

2.ogg-armv7的库

./configure -prefix=/Users/(路径)/Desktop/libogg-1.3.0/armv7 -host=armv7-apple-darwin -build=x86_64-apple-darwin11.3.0 CXX="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++-std=c99-arch armv7 –isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/"

3.ogg-armv7s的库



xcode 5.1 下静态编译 libogg +speex