Package Details: mingw-w64-pkg-config 2-4

Git Clone URL: https://aur.archlinux.org/mingw-w64-pkg-config.git (read-only, click to copy)
Package Base: mingw-w64-pkg-config
Description: Support pkg-config script (does not depend on any particular version of pkg-config). Useful for pkg-config powered cross-compiling with mingw-w64, see http://tinyurl.com/pkg-config-cross for more info
Upstream URL: http://pkg-config.freedesktop.org/
Licenses: zlib
Submitter: None
Maintainer: xantares
Last Packager: xantares
Votes: 72
Popularity: 0.036293
First Submitted: 2011-09-06 14:45 (UTC)
Last Updated: 2018-10-11 21:48 (UTC)

Latest Comments

xantares commented on 2021-12-25 16:01 (UTC)

try PKG_CONFIG_PATH_CUSTOM

ianks commented on 2021-12-25 02:01 (UTC)

This pkgconf library has been an absolute nightmare for me. Been debugging for hours why my PKG_CONFIG_PATH additions dont seem to be honored. How am I supposed to solve this?

dcbaker commented on 2019-04-04 22:48 (UTC)

Hi, it's both unexpected and very annoying that this completely ignores any PKG_CONFIG_PATH that I set myself, this really should be:

"""

When using the mingw32msvc cross compiler tools, the native Linux
pkg-config executable works fine as long as the default PKG_CONFIG_LIBDIR
is overridden.

export PKG_CONFIG_LIBDIR=$PKG_CONFIG_LIBDIR:/usr/x86_64-w64-mingw32/lib/pkgconfig

Also want to override the standard user defined PKG_CONFIG_PATH with
a mingw32msvc specific one.
You can use PKG_CONFIG_PATH_CUSTOM to tweak pkg-config behavior further

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/x86_64-w64-mingw32/lib/pkgconfig """

since neither of these variables are defined by default, and a build system or developer may want to point at their own version of said project instead of the system wide one.

crab2313 commented on 2018-10-11 10:01 (UTC) (edited on 2018-10-11 10:02 (UTC) by crab2313)

@xantares

By the way, I am trying package mingw-w64-spice-gtk, which requires another modification in the scripts. The spice-protocol package will install spice-protocol.pc in the /usr/x86_64-w64-mingw32/share/pkgconfig/ which is not supported by this script.

We can add share/pkgconfig to the default search path:

export PKG_CONFIG_LIBDIR=/usr/x86_64-w64-mingw32/lib/pkgconfig

export PKG_CONFIG_SHAREDIR=/usr/x86_64-w64-mingw32/share/pkgconfig

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH_CUSTOM:$PKG_CONFIG_LIBDIR:$PKG_CONFIG_SHAREDIR

crab2313 commented on 2018-10-11 09:54 (UTC) (edited on 2018-10-11 10:03 (UTC) by crab2313)

@xantares

For example, I want my program be linked with openssl-1.0:

export PKG_CONFIG_PATH_CUSTOM=/usr/x86_64-w64-mingw32/lib/openssl-1.0/pkgconfig/

The default version of openssl is not changed:

x86_64-w64-mingw32-pkg-config --modversion openssl

The output is 1.1.1

But when I change the order of PKG_CONFIG_PATH_CUSTOM and PKG_CONFIG_LIBDIR, the output becomes 1.0.2p

xantares commented on 2018-09-28 07:21 (UTC)

do you have a testcase for me to test ?

crab2313 commented on 2018-09-18 16:46 (UTC)

It doesn't work well with meson. For programs trying to find openssl-1.0, if I set PKG_CONFIG_PATH_CUSTOM to the path to openssl-1.0/pkgconfig, meson will still complains that openssl-1.1 is not meet our requirements.

manually change the scripts solve the problem, like this:

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH_CUSTOM:$PKG_CONFIG_LIBDIR

spider-mario commented on 2017-07-22 09:09 (UTC)

Hi, Would it be possible to include not only $PREFIX/lib/pkgconfig but also $PREFIX/share/pkgconfig to the PKG_CONFIG_PATH? At least eigen uses that directory. Also, it seems a bit strange to me to require the user of the script to export PKG_CONFIG_PATH_CUSTOM instead of PKG_CONFIG_PATH. Doesn’t that break the expected interface of the pkg-config binary? Why not just reuse PKG_CONFIG_PATH if it already exists? Thanks.

kolewu commented on 2016-02-01 16:48 (UTC)

ERROR: url should not be an array

xantares commented on 2014-10-23 10:48 (UTC)

hi, you could have a single mingw-pkg-config.sh source in which you replace the target triple instead of having twice the same script, like I did here: https://aur.archlinux.org/packages/mingw-w64-cmake/ xan.