2018-01-24 7:49 GMT+01:00 冯武 <[email protected]>: > 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 _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
