0
我修改了udp.c並想爲arm64構建libavformat.a,但是它總是失敗: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang無法創建可執行文件。 C編譯器測試失敗。iOS修改源代碼ffmpeg
這裏是我的compile.sh:
./configure \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--enable-avresample \
--enable-cross-compile \
--target-os=darwin \
--arch=arm \
--cpu=cortex-a9 \
--cc="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" \
--sysroot="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk" \
--extra-cflags="-arch arm64 -mfpu=neon -miphoneos-version-min=9.0" \
--extra-ldflags="-arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -miphoneos-version-min=9.0" \
--enable-pic \