How to install packages with mingw triplet wihout pwsh7(if possible) #52619
Replies: 3 comments
|
System information: |
|
There isn't a supported switch to make current vcpkg use Windows PowerShell 5.1 instead of One thing to change: don't set the host triplet to MinGW unless you specifically need host tools built with MinGW. Use MinGW only for the target packages: $env:VCPKG_DEFAULT_TRIPLET="x64-mingw-static"
Remove-Item Env:VCPKG_DEFAULT_HOST_TRIPLET -ErrorAction SilentlyContinue
vcpkg install --triplet x64-mingw-static --host-triplet x64-windowsThat may avoid some unnecessary MinGW host-tool work, but it will not bypass |
|
That crash isn't about the mingw triplet — it's vcpkg's bundled You can't rebuild the binary (the other documented opt-out, GUI: Windows Security → App & browser control → Exploit protection → Program settings → add Scriptable, from an elevated Windows PowerShell: Then vcpkg's pwsh launches and |
Uh oh!
There was an error while loading. Please reload this page.
For some reasons, I have no way to apply windows update for my pc, and I got the result.
I tried to install pwsh 7 manually, but I got the same dialog box: Unknown hardware error. So, is there any way to avoid use pwsh7?(msvc doesn't suit other dependencies what will use in this project).

All reactions