[FFmpeg-user] xcrun -sdk iphoneos clang is unable to create an executable file

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Jan 24 19:51:06 EET 2018


2018-01-24 7:49 GMT+01:00 冯武 <1024768334 at qq.com>:

> configure --target-os=darwin --arch=arm64 --cc='xcrun -sdk iphoneos clang'
> --as='gas-preprocessor.pl -arch aarch64 -- xcrun -sdk iphoneos clang'
> --enable-cross-compile --disable-debug --disable-programs --disable-doc
> --enable-pic
> --extra-cflags='-arch arm64 -mios-version-min=6.0 -fembed-bitcode'
> --extra-ldflags='-arch arm64 -mios-version-min=6.0 -fembed-bitcode'
> --prefix=/Users/NOT-password/FFmpeg-iOS-build-script/thin/arm64

You absolutely have to specify --sysroot for cross-compilation.
(An alternative may be to specify --ld but this would be unusual.)

I always specify a compiler path (including an arch option) and never
use "xcrun" and I suggest you use --cross-prefix instead of
--enable-cross-compile.
Be careful when using --extra-*flags, what does "-fembed-bitcode"
do?
Why are you specifying --enable-pic?

Carl Eugen


More information about the ffmpeg-user mailing list