pkg-config
Provide the details of installed libraries for compiling applications. More information: <https://www.freedesktop.org/wiki/Software/pkg-config/>.
Install
- All systems
-
curl cmd.cat/pkg-config.sh
- Debian
-
apt-get install pkg-config - Ubuntu
-
apt-get install pkg-config - Arch Linux
-
pacman -S pkgconf-pkg-config - Kali Linux
-
apt-get install pkg-config - CentOS
-
yum install pkgconf-pkg-config - Fedora
-
dnf install pkgconf-pkg-config - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install pkg-config - OS X
-
brew install pkg-config - Raspbian
-
apt-get install pkg-config
Provide the details of installed libraries for compiling applications. More information: <https://www.freedesktop.org/wiki/Software/pkg-config/>.
-
Get the list of libraries and their dependencies:
pkg-config --libs library1 library2 ... -
Get the list of libraries, their dependencies, and proper cflags for gcc:
pkg-config --cflags --libs library1 library2 ... -
Compile your code with libgtk-3, libwebkit2gtk-4.0 and all their dependencies:
c++ example.cpp $(pkg-config --cflags --libs gtk+-3.0 webkit2gtk-4.0) -o example
© tl;dr; authors and contributors