gpt4 book ai didi

macos - 在 OSX 上构建 ffmpeg

转载 作者:行者123 更新时间:2023-12-02 07:12:47 24 4
gpt4 key购买 nike

./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

报错:

ERROR: libfaac not found

If you think configure made a mistake, make sure you are using the latest version from SVN. If the latest version fails, report the problem to the ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will help solving the problem.

但是 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

关于macos - 在 OSX 上构建 ffmpeg,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4119359/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com