[FFmpeg-devel] can't build the ffmpeg for iOS using the newest gas-preprocessor.pl
Michael Niedermayer
michael at niedermayer.cc
Tue Dec 22 14:13:54 CET 2015
On Tue, Dec 22, 2015 at 08:38:29PM +0800, zhuhb wrote:
> I download the newest gas-preprocessor.pl from https://github.com/ffmpeg/gas-preprocessor and install it to the path.
>
> Then I try to build the ffmpeg v2.7.1 and failed.
>
>
>
> The build .sh is as follows:
>
> SDKVERSION=""
>
> MIN_IPHONE_VERSION="5.1"
>
>
>
> ARCHS="armv7 arm64"
>
>
>
> DEVELOPER=`xcode-select -print-path`
>
>
>
> REPOROOT=$(pwd)
>
>
>
> BUILDDIR="${REPOROOT}/build"
>
> mkdir -p $BUILDDIR
>
>
>
> # where we will store intermediary builds
>
> INTERDIR="${BUILDDIR}/ios-all"
>
> mkdir -p $INTERDIR
>
>
>
> source ./ffmpeg-config-macro-all
>
> FFMPEG_FLAGS="$FFMPEG_FLAGS_IOS"
>
> for ARCH in ${ARCHS}
>
> do
>
> if [ "${ARCH}" == "i386" ];
>
> then
>
> PLATFORM="iPhoneSimulator"
>
> EXTRA_CONFIG=" --arch=i386 --enable-cross-compile --target-os=darwin --cpu=i386 "
>
> EXTRA_CFLAGS=" -arch i386 "
>
> EXTRA_LDFLAGS="-arch i386 "
>
> elif [ "${ARCH}" == "arm64" ];
>
> then
>
> PLATFORM="iPhoneOS"
>
> EXTRA_CONFIG="--arch=arm64 --target-os=darwin --enable-cross-compile --disable-armv5te"
>
> EXTRA_CFLAGS="-w -arch ${ARCH} -mfpu=neon"
>
> EXTRA_LDFLAGS="-mfpu=neon"
>
> else
>
> PLATFORM="iPhoneOS"
>
> EXTRA_CONFIG="--arch=arm --target-os=darwin --enable-cross-compile --cpu=cortex-a9 --disable-armv5te"
>
> EXTRA_CFLAGS="-w -arch ${ARCH} -mfpu=neon"
>
> EXTRA_LDFLAGS="-mfpu=neon"
>
> fi
>
>
>
> mkdir -p "${INTERDIR}/${ARCH}"
>
>
>
> if [ "${ARCH}" == "i386" ];
>
> then
>
> ./configure $FFMPEG_FLAGS --prefix="${INTERDIR}/${ARCH}" --disable-armv6 --disable-armv6t2 --extra-cflags="${EXTRA_CFLAGS} -I $SOURCE/include/ios" --extra-ldflags="${EXTRA_LDFLAGS} -L $SOURCE/lib/ios" ${EXTRA_CONFIG} --enable-pic --extra-cflags="-I/Users/iqiyi/local/opencore-amr/ios/${ARCH}/include" --extra-ldflags="-L/Users/iqiyi/local/opencore-amr/ios/${ARCH}/lib" --extra-cflags="-fembed-bitcode"
>
> else
>
> ./configure $FFMPEG_FLAGS --prefix="${INTERDIR}/${ARCH}" --disable-armv6 --disable-armv6t2 --sysroot="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer/SDKs/${PLATFORM}${SDKVERSION}.sdk" --cc="${DEVELOPER}/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" --as='gas-preprocessor.pl /Applications/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' --extra-cflags="${EXTRA_CFLAGS} -miphoneos-version-min=${MIN_IPHONE_VERSION} -I${OUTPUTDIR}/include -I $SOURCE/include/ios" --extra-ldflags="-arch ${ARCH} ${EXTRA_LDFLAGS} -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/${PLATFORM}.platform/Developer/SDKs/${PLATFORM}${SDKVERSION}.sdk -miphoneos-version-min=${MIN_IPHONE_VERSION} -L${OUTPUTDIR}/lib -L $SOURCE/lib/ios" ${EXTRA_CONFIG} --enable-pic --extra-cxxflags="$CPPFLAGS -I${OUTPUTDIR}/include -isysroot ${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer/SDKs/${PLATFORM}${SDKVERSION}.sdk" --extra-cflags="-I/Users/iqiyi/local/opencore-amr/ios/${ARCH}/include" --
extra-ldflags="-L/Users/iqiyi/local/opencore-amr/ios/${ARCH}/lib" --extra-cflags="-fembed-bitcode"
aarch64 2.7.2+ build on osx should work with the options listed at:
http://fate.ffmpeg.org/report.cgi?time=20151221193018&slot=arm64-osx10.9-apple-clang-n2.7
arm:
http://fate.ffmpeg.org/report.cgi?time=20151221184824&slot=arm-osx10.9-apple-clang-n2.7
maybe you can figure out which differences cause the failure ?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
You can kill me, but you cannot change the truth.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151222/6ab1a604/attachment.sig>
More information about the ffmpeg-devel
mailing list