![Out-File:找不到路径的一部分](https://linux22.com/image/1608764/Out-File%EF%BC%9A%E6%89%BE%E4%B8%8D%E5%88%B0%E8%B7%AF%E5%BE%84%E7%9A%84%E4%B8%80%E9%83%A8%E5%88%86.png)
我尝试跟随本教程解释了如何为 Qt 下载静态 mingw 构建器,但我遇到了这个错误。我确实按照提到的步骤操作了。有人知道如何解决这个问题吗?
Out-File: cannot find part of path C:\Qt\Static591\5.12.3_Static\mkspecs\win32-g++\qmake.conf
At C:\Qt\windows-build-qt-static.ps1:178 char:6
+ "@ | Out-File -Append $File -Encoding Ascii
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo: OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorID: FileOpenFailure, Microsoft.PowerShell.Commands.OutFileCommand
我的批处理文件如下所示:
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& 'C:\Qt\windows-build-qt-static'
-QtSrcUrl 'https://download.qt.io/official_releases/qt/5.12/5.12.3/single/qt-everywhere-src-5.12.3.zip' -QtStaticDir 'C:\Qt\Static591'
-MingwDir 'C:\Qt\Tools\mingw730_32' -QtVersion '5.12.3_Static'