FFMpeg编译错误“架构x86_64的未定义符号”

时间:2011-12-23 07:37:38

标签: gcc ffmpeg x86-64

我正在尝试使用x264(0.120)编译ffmpeg(0.9.0.git)

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

我遇到以下错误:

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

1 个答案:

答案 0 :(得分:0)

This post建议将--cc=clang添加到修复问题的配置命令