[pkg-config] Third-party software package/library management tool pkg-config

reference:

[Linux library management tool] In-depth analysis of the integration and application of pkg-config and CMake - Zhihu

text:

When building a project, most of them will rely on third-party libraries. After these libraries are installed into the system, they will create a description file with a .pc suffix, which contains basic information about the library, such as version number, header file installation path, and library file installation. path etc. Using this information we can accurately obtain the information of this library. If installed using apt/yum, this .pc file will be released to:

/usr/lib/pkgconfig/or/usr/share/pkgconfig/

 pkg-config is also used in rpm packaging. We can find a file ending with .pc in all rpm source paths, which describes the library that the current rpm package depends on, the name and version of this library, and when released using rpm Which directories will be installed, etc.

Guess you like

Origin blog.csdn.net/ykun089/article/details/135462347