0
我想在Mac OS X 10.10上交叉編譯ffmpeg 2.8.x,但出現以下錯誤。ffmpeg 2.8.x在Mac OS X上的交叉編譯錯誤x 10.10
HOSTCC libavcodec/cabac_tablegen.o
In file included from libavcodec/cabac_tablegen.c:25:
In file included from libavcodec/cabac_functions.h:43:
libavcodec/arm/cabac.h:96:25: error: value '24' out of range for constraint 'M'
[byte]"M"(offsetof(CABACContext, bytestream)),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2/include/stddef.h:120:24: note:
expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [libavcodec/cabac_tablegen.o] Error 1
錯誤顯示在主機CC的一些錯誤,主機CC是clang-700.1.81
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
之前,我升級的Xcode 7.2,它工作得很好。
對於ffmpeg 3.x,沒有這樣的問題。但我需要的ffmpeg版本是2.8.x.如何在不將Xcode降級到以前的版本的情況下進行修復?