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.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to