uninstalled target does not load in windows
I got a gst-build environment working on windows by using the Visual Studio x64 shell. It built meson build && ninja -C build
both worked without error. However ninja -C build uninstalled
errors out with an unable to find file error:
C:\code\gst-build>ninja -C build/ uninstalled
ninja: Entering directory `build/'
[0/1] Running external command uninstalled.
Traceback (most recent call last):
File "C:/code/gst-build/gst-uninstalled.py", line 245, in <module>
env=get_subprocess_env(options, gst_version)))
File "C:/code/gst-build/gst-uninstalled.py", line 96, in get_subprocess_env
targets_s = subprocess.check_output(meson + ['introspect', options.builddir, '--targets'])
File "c:\python37\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "c:\python37\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "c:\python37\lib\subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "c:\python37\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
FAILED: meson-uninstalled
"C:/Users/trms/AppData/Roaming/Python/Python37/Scripts/meson" "--internal" "commandrunner" "C:/code/gst-build" "C:/code/gst-build/build" "" "C:/Users/trms/AppData/Roaming/Python/Python37/Scripts/meson" "c:/python37/python.exe" "C:/code/gst-build/gst-uninstalled.py" "--builddir=C:/code/gst-build/build" "--srcdir=C:/code/gst-build"
ninja: build stopped: subcommand failed.
I hacked around the scripts and found the issue here: https://gitlab.freedesktop.org/gstreamer/gst-build/blob/master/common.py#L80
This line on my system returns: ['introspect']
. Changing the function to return ['meson']
loads the enviornment as expected. For refreence this is where my meson.exe is located: C:\Users\trms\AppData\Roaming\Python\Python37\Scripts\meson.exe