Where are pkg-config files stored?
Emily Baldwin
Updated on March 22, 2026
Where are pkg-config files stored?
/lib/pkgconfig
pc. By default, pkg-config looks in the directory prefix/lib/pkgconfig for these files; it will also look in the colon-separated (on Windows, semicolon-separated) list of directories specified by the PKG_CONFIG_PATH environment variable.
What is PKG_CONFIG_PATH?
PKG_CONFIG_PATH is a environment variable that specifies additional paths in which pkg-config will search for its . pc files. This variable is used to augment pkg-config’s default search path. On a typical Unix system, it will search in the directories /usr/lib/pkgconfig and /usr/share/pkgconfig .
What is pkg-config in Windows?
pkg-config is a helper tool used when compiling applications and libraries. pkg-config works on multiple platforms: Linux and other UNIX-like operating systems, Mac OS X and Windows. It does not require anything but a reasonably well working C compiler and a C library, but can use an installed glib if that is present.
What is pkg-config — Cflags?
–cflags means the pkg-config should give the compilation flags for the listed packages. –libs means the pkg-config should give the linking information for the listed packages. and dbus-1 is the name of the package.
What is a pkg-config file?
pkg-config is a computer program that defines and supports a unified interface for querying installed libraries for the purpose of compiling software that depends on them. It allows programmers and installation scripts to work without explicit knowledge of detailed library path information.
What is Pkg_check_modules?
The main interface between autoconf and pkg-config is the PKG_CHECK_MODULES macro, which provides a very basic and easy way to check for the presence of a given package in the system. Nonetheless, there are some caveats that require attention when using the macro.
What is a package config file?
The packages. config file is used in some project types to maintain the list of packages referenced by the project. This allows NuGet to easily restore the project’s dependencies when the project is to be transported to a different machine, such as a build server, without all those packages.
What is CMake pkg-config?
A pkg-config module for CMake. A list of arguments to pass to pkg-config. Both PKG_CONFIG_EXECUTABLE and PKG_CONFIG_ARGN are initialized by the module, but may be overridden by the user. See Variables Affecting Behavior for how these variables are initialized.
What is pkg-config file?
Pkg-config is a way for shared libraries to declare the compiler flags needed to use them. There are two different ways of generating Pkg-config files in Meson. The first way is to build them manually with the configure_file command.
What is Linux pkg?
DESCRIPTION. pkg provides an interface for manipulating packages: registering, adding, removing and upgrading packages. pkg-static is a statically linked vari- ant of pkg typically only used for the initial installation of pkg.
What are pkg-config files?
How do I find package config?
If you right click the project in question you can select “Manage nuGet Packages” from the menu. After you do that you can click “installed packages” on the left hand side to see the packages that you currently have installed. These are what you are seeing in your “packages. config” file.