pygobject-2.28.6 won’t configure: No package ‘gobject-introspection-1.0’ found, how do I resolve?

You’re probably missing the development package. The package name varies by distribution, but it’s the one containing /usr/lib/pkgconfig/gobject-introspection-1.0.pc (or /usr/lib64/pkgconfig/gobject-introspection-1.0.pc for some 64-bit distros): Fedora, CentOS, RHEL, etc.: gobject-introspection-devel Debian, Ubuntu, Mint, etc.: libgirepository1.0-dev Arch: gobject-introspection FreeBSD: gobject-introspection Cygwin: libgirepository1.0-devel msys2: mingw-w64-x86_64-gobject-introspection and/or mingw-w64-i686-gobject-introspection

How to install pkg config in windows?

This is a step-by-step procedure to get pkg-config working on Windows, based on my experience, using the info from Oliver Zendel’s comment. I assume here that MinGW was installed to C:\MinGW. There were multiple versions of the packages available, and in each case I just downloaded the latest version. go to http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/ download the file … Read more

What is the proper way to use `pkg-config` from `cmake`?

First of, the call: include(FindPkgConfig) should be replaced with: find_package(PkgConfig) The find_package() call is more flexible and allows options such as REQUIRED, that do things automatically that one would have to do manually with include(). Secondly, manually calling pkg-config should be avoid when possible. CMake comes with a rich set of package definitions, found in … Read more