我在 Windows 10 64 位上安装了 Qt Creator 4.4.1。我也bash on ubuntu on windows
安装了。我想bash
从 Qt 创建者调用,以便通过创建自定义构建过程步骤在项目目录上执行一些 linux 命令,但不幸的是我收到以下错误:
16:21:50: Running steps for project myTest...
16:21:50: Could not start process "bash" foamExec
Error while building/deploying project myTest (kit: Desktop Qt 5.9.3 MinGW 32bit)
When executing step "Custom Process Step"
16:21:50: Elapsed time: 00:00.
我也尝试了以下步骤:
bash
指定:的完整路径,C:\Windows\System32\bash.exe
但它失败并出现相同的错误。
cmd
以执行包含以下代码的 .bat 脚本:bash -c "my command that I want to execute"
但我也收到以下错误:
``16:30:31: Running steps for project myTest...
16:30:31: Starting: "C:\WINDOWS\system32\cmd.exe" /c "bash -c 'foamExec wmake'"
'bash' is not recognized as an internal or external command,
operable program or batch file.
16:30:31: The process "C:\WINDOWS\system32\cmd.exe" exited with code 1.
Error while building/deploying project myTest (kit: Desktop Qt 5.9.3 MinGW 32bit)
When executing step "Custom Process Step"``.
"/mnt/c/Qt/Qt5.9.3/Tools/QtCreator/bin/qtcreator.exe"
Qt Creator 启动正常,但它再次无法识别bash
命令。bash
吗?