[FFmpeg-devel] [PATCH] Use pkgconfig for dirac libs
Wed Oct 22 22:57:59 CEST 2008
On Wed, Oct 22, 2008 at 6:06 PM, M?ns Rullg?rd <mans at mansr.com> wrote:
> "Ramiro Polla" <ramiro.polla at gmail.com> writes:
>> On Wed, Oct 22, 2008 at 5:27 PM, M?ns Rullg?rd <mans at mansr.com> wrote:
>>> "Ramiro Polla" <ramiro.polla at gmail.com> writes:
>>>> On Wed, Oct 22, 2008 at 4:56 PM, M?ns Rullg?rd <mans at mansr.com> wrote:
>>>>> Luca Barbato <lu_zero at gentoo.org> writes:
>>>>>> - cflags and ldflags needed to properly link to the package
>>>>> In a proper installation, to use libfoo, one would typically pass
>>>>> -lfoo to the linker.
>>>> And in FFmpeg's case where we need -lz -lwhatever, how can that be
>>>> communicated to the program that's using FFmpeg?
>>>> Another example is x264 that might or might not need pthreads...
>>> That's what documentation is for.
>> Ok, the documentation says: "This library might depend on libz,
>> libbz2, libfaac, libfaad, or any combination of those, and might
>> depend on many more or many less in the future (or not)."
>> What does the configure check look like and how do you add that to
> I admit that the dependencies of static libraries can be a problem. I
> still disagree that pkgconfig is anything resembling a solution.
gcc -o executable -lfoo
undefined symbol libbar_function
Something resembling a solution:
gcc -o executable $(pkg-config libfoo --libs)
More information about the ffmpeg-devel