jck*_*111 2 macos gcc ffmpeg configure
./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
Run Code Online (Sandbox Code Playgroud)
给出错误:
错误:未找到libfaac
如果您认为configure出错,请确保您使用的是SVN的最新版本.如果最新版本失败,请将问题报告给irc.freenode.net上的ffmpeg-user@mplayerhq.hu邮件列表或IRC#ffmpeg.包括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
Run Code Online (Sandbox Code Playgroud)
知道我怎么能告诉配置脚本如何找到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
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3576 次 |
最近记录: |