在OSX上构建ffmpeg

./configure --enable-avfilter --enable-filter=movie --enable-gpl --enable-postproc 
    --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis 
    --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libfaac 
    --enable-libxvid --enable-libx264 --enable-libvpx --enable-libspeex --enable-nonfree 
    --enable-shared --enable-pthreads --disable-indevs --cc=/usr/bin/gcc-4.2 --arch=x86_64
给出错误:   错误:未找到libfaac      如果您认为configure出错了,   确保您使用的是最新的   SVN的版本。如果是最新的   版本失败,报告问题   ffmpeg-user@mplayerhq.hu邮件   列表或IRC #ffmpeg on   irc.freenode.net。包括日志文件   configure为“config.log”   这将有助于解决问题。 但是
locate faac
给出了
/opt/local/bin/faac
/opt/local/include/faac.h
/opt/local/include/faaccfg.h
/opt/local/lib/libfaac.0.dylib
/opt/local/lib/libfaac.a
/opt/local/lib/libfaac.dylib
知道我怎么能告诉配置脚本如何找到libfaac?     
已邀请:
由配置生成工具生成的典型
configure
脚本将利用环境变量CPPFLAGS和LDFLAGS。你需要同时使用它们。 将CPPFLAGS设置为
-I/opt/local/include
,以便找到头文件,并将LDFLAGS设置为
-L/opt/local/lib
,以便链接器找到库。 除了特定于您正在使用的shell的“环境变量”解决方案之外,在
configure
中设置这些变量的一种方法是使用以下命令启动后者:
./configure CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib
    
我有同样的问题,但我从来没有安装过macports,我不得不使用:
brew install --use-clang ffmpeg
。 我也有错误信息
libx264 version must be >= 0.118
;我不得不升级
x264
brew upgrade x264 --HEAD
。     
也许试试吧
./configure --enable-faac
    
万一有人到了这个线程b / c相同的libfaac找不到错误但在Homebrew上,这里有什么帮助我:
 $brew doctor 
 $brew uninstall faac
 $brew install faac
 $sudo brew link faac
    

要回复问题请先登录注册