FFmpeg:构建示例C代码 [英] FFmpeg: building example C codes

查看:231
本文介绍了FFmpeg:构建示例C代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用以下链接配置并编译了FFmpeg库: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

I have configured and compiled the FFmpeg library using this link: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

现在,我正在尝试从此处构建FFmpeg提供的示例C代码: https://github.com/FFmpeg/FFmpeg/tree/master/doc/例子

Now, I am trying to build example C codes provided by FFmpeg from here: https://github.com/FFmpeg/FFmpeg/tree/master/doc/examples

但是,当我运行make install-examples或make install(由/example/README建议)时,会收到以下消息:

However, when I run make install-examples or make install (suggested by /example/README), I receive this kind of message:

make:***没有规则可以使目标'/doc/examples/README'被 安装示例".停止.

make: *** No rule to make target '/doc/examples/README', needed by 'install-examples'. Stop.

我认为这可能是由于规则未采用正确的MakeFile格式(我不确定为什么它们指的是README).我应该如何解决此问题并编译示例代码?我试图找到有关此问题的解决方案,但在线上似乎没有太多信息.

I thought this may be due to the rules not being in the correct MakeFile format (I am not sure why they refers to README). How should I go about in fixing this and compiling the example codes? I have tried to find solutions about this, but there doesn't seem to be much information online.

谢谢.

推荐答案

在FFmpeg源目录中运行./configure && make -j4 examples,然后在doc/examples中查找已编译的示例.

Run ./configure && make -j4 examples in the FFmpeg source directory, then look in doc/examples for the compiled examples.

  • 需要makepkg-config.

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

To remove the compiled examples use make examplesclean in the FFmpeg source directory.

这篇关于FFmpeg:构建示例C代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆