You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in MSYS2 we want/need to update to ffmpeg 5 while keeping 4.4 for some packages
for this we install the .pc files into <prefix>/lib/ffmpeg4.4/pkgconfig/ instead of <prefix>/lib/pkgconfig/ (we just set a different --incdir and --libdir to ffmpeg configure) so we can set the alternative pc path via something like export PKG_CONFIG_PATH="${MINGW_PREFIX}/lib/ffmpeg4.4/pkgconfig:$PKG_CONFIG_PATH" when wanting a package to links against 4.4
Problem:
The define-prefix logic in pkgconf doesn't support this since it just strips "/pkgconfig" from paths, so the detected prefix is
"<prefix>/lib/ffmpeg4.4/pkgconfig" instead of
"<prefix>/lib/ffmpeg4.4/pkgconfig".
So we get the following wrong output (one "/lib" too much):
I'm not quite sure how to work around/fix that without hacks, so I'm asking here if someone had a similar problem and maybe an idea for a solution or a workaround.
The only thing I can think of is patching the .pc files after the build from libdir=${prefix}/lib/ffmpeg4.4 to libdir=${prefix}/../lib/ffmpeg4.4
If there is no solution feel free to close. At least I can link to this issue from my workarounds :)
The text was updated successfully, but these errors were encountered:
I created an additional /python3.7/pkgconfig in /usr/lib64 to store python-3.7.pc,It comes with extra /lib64.
I review the code and only parsed the last two levels of directories. I don't know if this is a bug?
Short summary of my use case:
<prefix>/lib/ffmpeg4.4/pkgconfig/
instead of<prefix>/lib/pkgconfig/
(we just set a different--incdir
and--libdir
to ffmpeg configure) so we can set the alternative pc path via something likeexport PKG_CONFIG_PATH="${MINGW_PREFIX}/lib/ffmpeg4.4/pkgconfig:$PKG_CONFIG_PATH"
when wanting a package to links against 4.4Problem:
The define-prefix logic in pkgconf doesn't support this since it just strips "/pkgconfig" from paths, so the detected prefix is
<prefix>/lib
/ffmpeg4.4/pkgconfig" instead of<prefix>
/lib/ffmpeg4.4/pkgconfig".So we get the following wrong output (one "/lib" too much):
Context / Question:
The logic for this is defined here:
pkgconf:
pkgconf/libpkgconf/pkg.c
Line 204 in 78f3abc
The same logic in pkg-config: https://gitlab.freedesktop.org/pkg-config/pkg-config/-/blob/d97db4fae4c1cd099b506970b285dc2afd818ea2/parse.c#L1000
I'm not quite sure how to work around/fix that without hacks, so I'm asking here if someone had a similar problem and maybe an idea for a solution or a workaround.
The only thing I can think of is patching the .pc files after the build from
libdir=${prefix}/lib/ffmpeg4.4
tolibdir=${prefix}/../lib/ffmpeg4.4
If there is no solution feel free to close. At least I can link to this issue from my workarounds :)
The text was updated successfully, but these errors were encountered: