Windows: pkg-config is required even when glib is a subproject
Building gobject-introspection on Windows I get that error:
Traceback (most recent call last):
File "C:\Users\Collabora\xclaesse\gst-build\build\subprojects\gobject-introspection\giscanner\pkgconfig.py", line 34, in check_output
return subprocess.check_output(argv, universal_newlines=True, stderr=subprocess.STDOUT)
File "C:\Python38\lib\subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Python38\lib\subprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Python38\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Python38\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/Collabora/xclaesse/gst-build/build/subprojects/gobject-introspection/tools/g-ir-scanner", line 96, in <module>
dll_dirs.add_dll_dirs(['gio-2.0'])
File "C:\Users\Collabora\xclaesse\gst-build\build\subprojects\gobject-introspection\giscanner\utils.py", line 298, in add_dll_dirs
for path in giscanner.pkgconfig.bindir(pkgs):
File "C:\Users\Collabora\xclaesse\gst-build\build\subprojects\gobject-introspection\giscanner\pkgconfig.py", line 66, in bindir
out = check_output(flags, ignore_errors, command)
File "C:\Users\Collabora\xclaesse\gst-build\build\subprojects\gobject-introspection\giscanner\pkgconfig.py", line 42, in check_output
raise PkgConfigError('pkg-config: error executing command %s: %s' % (argv, e))
giscanner.pkgconfig.PkgConfigError: pkg-config: error executing command ['pkg-config', '--variable', 'bindir', 'gio-2.0']: [WinError 2] The system cannot find the file specified
Since glib is built as a subproject it should not try to find its DLL with pkg-config. It should instead somehow pass the library path from meson.build. I'm not sure how...