[FFmpeg-devel] [PATCH] Use pkgconfig for dirac libs

Måns Rullgård mans
Wed Oct 22 10:39:19 CEST 2008


Michael Niedermayer <michaelni at gmx.at> writes:

> On Wed, Oct 22, 2008 at 08:34:11AM +0300, Uoti Urpala wrote:
>> On Wed, 2008-10-22 at 07:29 +0200, Diego Biurrun wrote:
>> > On Wed, Oct 22, 2008 at 01:13:51AM +0200, Chris Hills wrote:
>> > > Since pkgconfig is used for dirac cflags, it makes sense to
>> > > also use it for libs, in-line with libschroedinger.
>> > 
>> > Absolutely not, using pkg-config at all is a workaround for libdirac's
>> > horrid include path design.  They have 3 directories for 5 header files.
>> > Unfortunately the fact that nobody else does this did not tell them
>> > anything...
>> 
>> Whatever the include path design is, using pkg-config is a positive
>> thing and using it more would be an improvement. The hostile attitude
>> some people here have against it is misguided.
>
> One can agree on a standard place where to find headers, or

People have agreed on /usr/include and /usr/local/include since the
dawn of time.  No reason to change that now.

> One can agree on a standard identifer by which to find a variable
> place where to find headers, or

$C_INCLUDE_PATH is accepted by several compilers, though it's not
standardised.

> One can agree on a standard identifer by which to find a variable
> identifer by which one can find a variable place where to find
> headers, or ...
>
> Now IMHO if one cant decide on a standard place for headers, its
> funny that person succeeded on deciding for a standard argument to
> pkgconfig.  But maybe thats just because of a lack of tools that
> reinvented all aspects of symbolic links.
>
> And iam not hostile to pkgconfig at all, nor am i trying to insult
> anyone, iam just trying to show the stupidity of pkgconfig in
> general and i feel that its the wrong solution to the problem.
> symbolic links and keeping lib dependancies in the libs where they
> belong would have made more sense.

In addition to that, it should be noted that pkgconfig doesn't
actually work.  It *lies* to you if you try to cross-compile.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list