pkg-config is a script to make putting together all the build flags when compiling/linking a lot easier. Visit releases for prebuilt binaries. Extract archive and add bin
directory in your PATH
environment variable.
-
Install meson build system. Then install any one of these c compiler: msvc, gcc, mingw or clang.
-
Now recursively clone pkg-config repository.
git clone https://github.com/lua-batteries/pkg-config --recursive --depth 1
cd pkg-config
- Now setup pkg-config using meson. Use
--prefix
flag to specify installation directory. For more meson options see meson_options.txt.
meson setup build --buildtype release --warnlevel 0 --default-library static --prefix c:/pkg-config -Dstatic-glib=true
- Now install pkg-config using meson. The skipped subprojects are not needed at runtime if you still want to keep them, then remove
--skip-subprojects
flag.
meson install -C build --skip-subprojects "glib,libffi,pcre2,proxy-libintl,zlib"
- Now pkg-config should be installed in your prefix directory. Now add
$PREFIX/bin
in yourPATH
environment variable. You can further read more information about building through meson from meson's quick guide.