[FFmpeg-devel] [PATCH] doc/examples/muxing: make compatible with C++

Michael Niedermayer michaelni at gmx.at
Mon Apr 28 23:48:30 CEST 2014


On Mon, Apr 14, 2014 at 04:51:44PM +0530, anshul wrote:
> On 04/13/2014 11:51 AM, Anshul wrote:
> >Michael Niedermayer <michaelni at gmx.at> wrote:
> >>running a make distclean with this patch applied
> >>produces:
> >>Package libavdevice was not found in the pkg-config search path.
> >>Perhaps you should add the directory containing `libavdevice.pc'
> >>to the PKG_CONFIG_PATH environment variable
> >>No package 'libavdevice' found
> >>Package libswresample was not found in the pkg-config search path.
> >>Perhaps you should add the directory containing `libswresample.pc'
> >>to the PKG_CONFIG_PATH environment variable
> >>No package 'libswresample' found
> >>Package libavdevice was not found in the pkg-config search path.
> >>Perhaps you should add the directory containing `libavdevice.pc'
> >>to the PKG_CONFIG_PATH environment variable
> >>No package 'libavdevice' found
> >>Package libswresample was not found in the pkg-config search path.
> >>Perhaps you should add the directory containing `libswresample.pc'
> >>to the PKG_CONFIG_PATH environment variable
> >>No package 'libswresample' found
> >>
> >I am looking at it.
> Done.
> >
> >>>diff --git a/doc/Makefile b/doc/Makefile
> >>>index 44049c4..5c1371a 100644
> >>>--- a/doc/Makefile
> >>>+++ b/doc/Makefile
> >>>@@ -36,6 +36,13 @@ DOCS-$(CONFIG_MANPAGES)  += $(MANPAGES)
> >>>  DOCS-$(CONFIG_TXTPAGES)  += $(TXTPAGES)
> >>>  DOCS = $(DOCS-yes)
> >>>+EXAMPLE_CPP_MAKE=make
> >>>+EXAMPLE_CPP_MAKE_VERSION := $(shell $(EXAMPLE_CPP_MAKE) --version 2>
> >>/dev/null )
> >>>+ifndef EXAMPLE_CPP_MAKE_VERSION
> >>>+EXAMPLE_CPP_MAKE=gmake
> >>>+EXAMPLE_CPP_MAKE_VERSION := $(shell $(EXAMPLE_CPP_MAKE) --version 2>
> >>/dev/null )
> >>>+endif
> >>that looks really wrong
> >>a Makefile should not need to test for how the make application is
> >>called
> >>
> >>
> >>[...]
> >This was done since you said make is not available on openBSD.
> >I choose to call makefile, since I cant compile the code with existing makefile the default behavior of checking compiler for cpp has been changed in existing makefile.
> >
> >I am open for suggestions what should be done else.
> >
> >
> I got , There is another way, i have used $(MAKE) now.
> here is the link i followed
> <http://www.gnu.org/software/make/manual/make.html#MAKE-Variable>
> Thanks for hint

if i run make distclean with this patch applied i get

make distclean
make -C doc/examples_cpp/ clean
make[1]: Entering directory `ffmpeg/doc/examples_cpp'
rm -f test*.pgm test.h264 test.mp2 test.sw test.mpg
rm -f avio_reading avcodec demuxing_decoding filtering_video filtering_audio metadata muxing remuxing resampling_audio scaling_video transcode_aac transcoding  avio_reading.o avcodec.o demuxing_decoding.o filtering_video.o filtering_audio.o metadata.o muxing.o remuxing.o resampling_audio.o scaling_video.o transcode_aac.o transcoding.o
make[1]: Leaving directory `ffmpeg/doc/examples_cpp

Why does this show examples_cpp but not examples, why is it different?

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are best at talking, realize last or never when they are wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140428/8825514a/attachment.asc>


More information about the ffmpeg-devel mailing list