FFmpeg: building example C codes

不打扰是莪最后的温柔 提交于 2019-12-17 21:34:26

问题


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

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

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

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

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.

Thank you.


回答1:


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

  • Requires make and pkg-config.

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



来源:https://stackoverflow.com/questions/51031918/ffmpeg-building-example-c-codes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!