1

これをガイドとして使用して、以前に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
4

1 に答える 1

1

これを試して。それは、あなたが抱えていた C コンパイラの問題と、SDK と GCC の異なるパスに関するいくつかの問題を修正し、3 つのプラットフォームすべてをビルドできるようにします。

mkdir -p build
rm -rf 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/usr/bin/gcc -arch ${PLATFORM} -miphoneos-version-min=7.0" \
        --prefix="/Users/$USER/Desktop/twolame" \
        --host="arm-apple-darwin9" \
        --disable-shared \
        --enable-static \

    make
    cp "libtwolame/.libs/libtwolame.a" "build/libtwolame-${PLATFORM}.a"
}

SDK_VERSION=7.0

PLATFORM="i386"
SDK="iPhoneSimulator"
build_lame

PLATFORM="armv7"
SDK="iPhoneOS"
build_lame

PLATFORM="armv7s"
SDK="iPhoneOS"
build_lame

lipo -create build
于 2013-09-23T19:46:12.057 に答える