c - FFmpeg:构建示例 C 代码

标签 c makefile ffmpeg compilation libav

我已经使用此链接配置并编译了 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 中查找已编译的示例。

  • 需要 makepkg-config

  • 要删除已编译的示例,请在 FFmpeg 源目录中使用 make examplesclean

关于c - FFmpeg:构建示例 C 代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51031918/

相关文章:

c - Scanf 不情愿地删除一个字符数组

C 将 char * 复制到 char[]

objective-c - 网络拓扑信息

java - 获取/usr/bin/ld : cannot find -ljvm collect2: ld returned 1 exit status make: *** [hello_world] Error 1 while trying to call java class method

python - 构建 CPython 时禁用编译器优化

FFMpeg 命令输出显示 'green pixelated' 视频

c - getchar函数清除while-condition之外的输入缓冲区?

xcode - 从命令行构建 Qt Xcode 项目

bash - 合并多个 MPG 文件

如果使用 nu.pattern.OpenCV.loadShared() 加载 openCV,Java open CV 会卡在 VideoCapture 上以获取文件;