FFmpeg的编译错误

问题描述:

我试图编译的x264(0.120)的ffmpeg(0.9.0.git)这样FFmpeg的编译错误

./configure --enable-gpl --enable-libmp3lame \ 
    --enable-static --disable-shared --enable-libx264 \ 
    --enable-pthreads --disable-doc --enable-avfilter \ 
    --disable-ffplay --disable-ffserver --disable-ffprobe 
make 

,我遇到下面的错误 “适用于建筑x86_64的未定义符号”:

LD ffmpeg_g 
Undefined symbols for architecture x86_64: 
    "_MM_FIX_0_707106781", referenced from: 
     _filter in libavfilter.a(vf_fspp.o) 
    "_MM_FIX_0_541196100", referenced from: 
     _filter in libavfilter.a(vf_fspp.o) 
ld: symbol(s) not found for architecture x86_64 
collect2: ld returned 1 exit status 
make: *** [ffmpeg_g] Error 1 

任何想法可能是什么修复?

更新:可能是不相关的,但这种讨论https://trac.macports.org/ticket/30093说,问题是FFmpeg的回升而不是LLVM GCC-4.2,但那么这已经固定在0.7.4

This post建议加入--cc=clang到configure命令其中修正了问题