How do I create a pkg-config file?
A checklist for writing pkg-config files
- Include the project’s major API version1 in the pkg-config file name.
- Split private and public dependencies between Requires and Requires.
- Include useful ancillary variables, such as the paths to any utilities, directories or daemons which ship with the project.
What is pkg-config in Windows?
pkg-config is a helper tool used when compiling applications and libraries. It helps you insert the correct compiler options on the command line so an application can use gcc -o test test. c `pkg-config –libs –cflags glib-2.0` for instance, rather than hard-coding values on where to find glib (or other libraries).
How do I install a pkg in Windows?
8 Answers
- download the file pkg-config_0.26-1_win32.zip.
- extract the file bin/pkg-config.exe to C:\MinGW\bin.
- download the file gettext-runtime_0.18.1.1-2_win32.zip.
- extract the file bin/intl.dll to C:\MinGW\bin.
- download the file glib_2.28.8-1_win32.zip.
- extract the file bin/libglib-2.0-0.dll to C:\MinGW\bin.
What is pkg config in Windows?
What is a PKG file for Windows?
pkg (package) is a filename extension used for several file formats that contain packages of software and other files to be installed onto a certain device, operating system, or filesystem, such as the macOS, iOS, PlayStation Vita, PlayStation 3, and PlayStation 4.
How do I install a PKG in Windows?
How do I open .PKG files in Windows?
WinRAR comes with multiple threading features which enable you to extract or open multiple . pkg files simultaneously. Nevertheless, WinRAR is also lightweight and utilizes little computer resources. This software is compatible with all versions of the Windows OS, including Windows 10.
Where should I install pkg-config files?
Substitutes the variable pkgconfigdir as the location where a module should install pkg-config .pc files. By default the directory is $libdir/pkgconfig, but the default can be changed by passing DIRECTORY. The user can override through the –with-pkgconfigdir parameter.
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.
What paths does pkg-config recognize in Cygwin?
Cygwin’s pkg-config recognizes only Cygwin paths in PKG_CONFIG_PATH (no Windows paths). For example, on my system the .pc files are located in C:\\Cygwin64\sr\_64-w64-mingw32\\sys-root\\mingw\\lib\\pkgconfig. The following three paths are valid, but only path C works in PKG_CONFIG_PATH:
Can lib2 detect lib1 with pkg-config?
Therefore, lib2 can’t find lib1 with pkg-config and the configure script blows up. So, the question is, how can my make install in lib1 properly detect the directory to install the pkg-config files?