pkg-config <libraries......>

Return metainformation about installed libraries

Arguments

NameDescription
libraries...

Options

NameDescription
--mod-versionDisplay the version information of the libraries specified on the command line
--versionDisplay the version of pkg-config and terminates
--atleast-pkgconfig-version <version>Require at least the given version of pkg-config
--helpDisplays a help message and terminates
--print-errorsPrint errors if modules cannot be found or if an error occurs in parsing a .pc file
--short-errorsPrint short error messages
--silence-errorsPrint errors if modules cannot be found or if an error occurs in parsing a .pc file
--errors-to-stdoutIf printing errors, print them to stdout rather than the default stderr
--debugPrint debugging information
--cflagsPrint pre-processor and compile flags required to compile the packages on the command line
--cflags-only-IPrint parts of "--cflags" that define the header search path
--cflags-only-otherPrint parts of "--cflags" not covered by "--cflags-only-I"
--libsPrint link flags required to compile the packages on the command line
--libs-only-LPrint parts of "-libs" that define library search path
--libs-only-lPrint parts of "-libs" that specify which libraries to link to
--libs-only-otherPrint parts of "-libs" not covered by "--libs-only-L" and "--libs-only-l"
--variable <variable-name>Return the value of a variable defined in a package's .pc file
--define-variable <variable>Set a global value for a variable, overriding the value in any .pc files
--print-variablesReturn a list of all variables defined in the package
--uninstalledReturn successfully if any "-uninstalled" packages are being used, and return failure otherwise
--existsTest whether the packages on the command line exist
--atleast-version <version>Test whether the packages on the command line exist and are at least the specified version
--exact-version <version>Test whether the packages on the command line exist and are exactly the specified version
--max-version <version>Test whether the packages on the command line exist and are at most the specified version
--validateCheck the syntax of a package's .pc file for validity
--msvc-syntaxOutput -l and -L flags in the form recognized by the Microsoft Visual C++ command-line compiler
--define-prefixUse the installed location of the .pc file to determine the prefix
--dont-define-prefixUse the specified prefix variable value defined in the .pc file as the prefix
--prefix-variable <variable-name>Set the name of the variable to be overridden instead of prefix when using --define-prefix
--staticOutput libraries suitable for static linking
--list-allList all modules found in the pkg-config path
--print-providesList all modules the given packages provides
--print-requiresList all modules the given packages requires
--print-requires-privateList all modules the given packages requires for static linking