使用 libvorbis 在 OS X 上编译 ffmbc

使用 libvorbis 在 OS X 上编译 ffmbc

我已经安装了 libvorbis,一切似乎都顺利,现在我尝试使用 --enable-libvorbis 安装 FFmbc,但失败并显示错误:找不到 libvorbis。在生成的 config.log 中我得到:

ld: warning: in /usr/lib/libvorbisenc.a, file was built for unsupported file format which
is not the architecture being linked (x86_64)
ld: warning: in /usr/lib/libvorbis.a, file was built for unsupported file format which
is not the architecture being linked (x86_64)
ld: warning: in /usr/lib/libogg.a, file was built for unsupported file format which
is not the architecture being linked (x86_64)
Undefined symbols:
  "_vorbis_info_init", referenced from:
      _main in ffconf.00FIGmPr.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
ERROR: libvorbis not found

它看起来与为 x86_64 编译 libvorbis 有关?我刚刚做了一个标准

./configure  && make && sudo make install 

当我安装 libvorbis 时,我尝试

./configure CC="gcc -arch x86_64" CXX="g++ -arch x86_64"

./configure --build=x86_64

但什么都没起作用。所有其他依赖项(libx264、libfaac libmp3lame 等)都起作用,只有 libvorbis 不起作用。

这是 OS X 10.6.8

答案1

我不能代表 Snow Leopard 发言,但是在 Lion 10.7.3 上,我使用了这个来获取 vorbis:

$ env CFLAGS="-O -g -arch x86_64" LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.7 -arch x86_64" ./configure --prefix=${TARGET} --with-ogg-libraries=${TARGET}/lib --with-ogg-includes=/Volumes/Ramdisk/sw/include/ --enable-static --disable-shared && make -j 4 && make install

相关内容