我已经使用此链接配置并编译了 FFmpeg 库: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
现在,我正在尝试从这里构建 FFmpeg 提供的示例 C 代码: https://github.com/FFmpeg/FFmpeg/tree/master/doc/examples
但是,当我运行 make install-examples 或 make install(由/example/README 建议)时,我收到这样的消息:
make: *** No rule to make target '/doc/examples/README', needed by 'install-examples'. Stop.
我认为这可能是由于规则的 MakeFile 格式不正确(我不确定他们为什么引用 README)。我应该如何解决这个问题并编译示例代码?我试图找到关于这个的解决方案,但网上似乎没有太多信息。
谢谢。
最佳答案
在 FFmpeg 源目录中运行 ./configure && make -j4 examples
,然后在 doc/examples
中查找已编译的示例。
需要
make
和pkg-config
。要删除已编译的示例,请在 FFmpeg 源目录中使用
make examplesclean
。
关于c - FFmpeg:构建示例 C 代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51031918/