[FFmpeg-devel] [PATCH] doc/examples/muxing: make compatible with C++
anshul
anshul.ffmpeg at gmail.com
Mon Apr 14 13:21:44 CEST 2014
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
-Anshul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-added-cpp-examples-in-ffmpeg-source-code.patch
Type: text/x-patch
Size: 174182 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140414/dfa909b5/attachment.bin>
More information about the ffmpeg-devel
mailing list