[x264-devel] feature request: configure specifiable pkg-config

Roger Pack rogerdpack2 at gmail.com
Wed May 4 15:15:27 CEST 2016


On 3/30/16, Henrik Gramner <henrik at gramner.com> wrote:
> On Thu, Mar 31, 2016 at 1:25 AM, Roger Pack <rogerdpack2 at gmail.com> wrote:
>> As a note, when cross compiling "on linux" targeting windows, the
>> typical behavior is to use the system's normal "pkg-config"
>>
>> however, with x264's configure script, it has lines like this:
>>
>>     if ${cross_prefix}pkg-config --exists libavformat libavcodec
>> libswscale 2>/dev/null; then
>>
>> where I do want to set cross-prefix to something, but just not for
>> pkg-config per se.
>> As it is currently, it tries to run a non-existent pkg-config and ends
>> up not detecting the correct dependencies from the libav* .pc files.
>>
>> ffmpeg's configure has this option, which seems related:
>>
>>   --pkg-config=PKGCONFIG   use pkg-config tool PKGCONFIG [pkg-config]
>>
>> I presume to accomodate for this type of situation.  So consider this
>> a feature request for the same in x264.
>> Cheers!
>> -roger-
>
> Something like this http://pastebin.com/YPh5FjXB (untested)?
>
> Usage:
> PKGCONFIG=/usr/bin/custom-pkg-config ./configure

That looked pretty good.  I just now got around to testing it and it
had expired unfortunately.  But yeah (it would have to be used
everywhere that calls ${cross_prefix}pkg-config today.
-roger-


More information about the x264-devel mailing list