我以前使用此作为指南为 iOS 安装了 lame。
我现在正在尝试用TwoLame做类似的事情。
不幸的是我没有成功。
mkdir build
function build_lame()
{
make distclean
./configure \
CFLAGS="-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/${SDK}.platform/Developer/SDKs/${SDK}${SDK_VERSION}.sdk" \
CC="/Applications/Xcode.app/Contents/Developer/Platforms/${SDK}.platform/Developer/usr/bin/gcc -arch ${PLATFORM}" \
--prefix=/Users/jonathan/Desktop/twolame \
--host="arm-apple-darwin9" \
--disable-shared \
--enable-static \
make
cp "libtwolame/.libs/libtwolame.a" "build/libtwolame-${PLATFORM}.a"
}
PLATFORM="i686"
SDK="iPhoneSimulator"
build_lame
PLATFORM="armv7"
SDK="iPhoneOS"
build_lame
PLATFORM="armv7s"
build_lame
lipo -create build
我看到的当前错误是:
configure: error: C compiler cannot create executables