ninja -C build devenv error: Command '['powershell.exe', ... non-zero exit status 4294770688
Stack trace:
c:\Users\o2genum\repos\gst-build>ninja -C build devenv
ninja: Entering directory `build'
[0/1] Running external command devenv (wrapped by meson to set env)
Traceback (most recent call last):
File "mesonbuild\mesonmain.py", line 132, in run
File "mesonbuild\mesonmain.py", line 100, in run_runpython_command
File "runpy.py", line 268, in run_path
File "runpy.py", line 97, in _run_module_code
File "runpy.py", line 87, in _run_code
File "C:/Users/o2genum/repos/gst-build/gst-env.py", line 487, in <module>
shell = get_windows_shell()
File "C:/Users/o2genum/repos/gst-build/gst-env.py", line 436, in get_windows_shell
result = subprocess.check_output(command)
File "subprocess.py", line 420, in check_output
File "subprocess.py", line 524, in run
subprocess.CalledProcessError: Command '['powershell.exe', '-noprofile', '-executionpolicy', 'bypass', '-file', 'cmd_or_ps.ps1']' returned non-zero exit status 4294770688.
while executing ['C:\\Program Files\\Meson\\meson.exe', 'runpython', 'C:/Users/o2genum/repos/gst-build/gst-env.py', '--builddir=C:/Users/o2genum/repos/gst-build/build', '--srcdir=C:/Users/o2genum/repos/gst-build']
FAILED: meson-devenv
"C:\Program Files\Meson\meson.exe" "--internal" "exe" "--unpickle" "C:\Users\o2genum\repos\gst-build\build\meson-private\meson_exe_meson.exe_7e27ed784c4f0df90fc1dace85f69e410f8fa2d8.dat"
ninja: build stopped: subcommand failed.
I added before this line: gst-env.py", line 436, in get_windows_shell
this line for debugging: raise Exception(os.getcwd())
and it reports C:/Users/o2genum/repos/gst-build/build
. But the cmd_or_ps.ps1
script is in the repo root C:/Users/o2genum/repos/gst-build
, one level up.