# Installiert Qt 6.8.3 fuer MinGW 13.1 samt passendem Compiler. # # Grund: Auf diesem Rechner ist Visual Studio 2022 zwar installiert, aber ohne # die C++-Workload (kein VC\Tools\MSVC, kein vcvars64.bat). Das MinGW-Paket von # Qt ist in sich stimmig und braucht keine Administratorrechte. $ErrorActionPreference = 'Continue' $ProgressPreference = 'SilentlyContinue' $log = 'C:\Users\Key & Co\Desktop\Programme\Samplechopper\_setup\qt_mingw_setup.log' Set-Content -Path $log -Value "=== Qt/MinGW setup $(Get-Date -Format s) ===" function L([string]$m) { $m | Tee-Object -FilePath $log -Append } L "--- verfuegbare Varianten von tools_mingw1310 ---" & python -m aqt list-tool windows desktop tools_mingw1310 2>&1 | Tee-Object -FilePath $log -Append L "--- MinGW 13.1 installieren ---" & python -m aqt install-tool windows desktop tools_mingw1310 qt.tools.win64_mingw1310 ` --outputdir C:\Qt 2>&1 | Tee-Object -FilePath $log -Append L "exit: $LASTEXITCODE" L "--- Qt 6.8.3 win64_mingw installieren ---" & python -m aqt install-qt windows desktop 6.8.3 win64_mingw ` --outputdir C:\Qt --archives qtbase qttools 2>&1 | Tee-Object -FilePath $log -Append L "exit: $LASTEXITCODE" L "--- Ergebnis ---" Get-ChildItem C:\Qt -Directory | Select-Object -ExpandProperty FullName | Tee-Object -FilePath $log -Append Get-ChildItem 'C:\Qt\6.8.3\mingw_64\bin\Qt6Widgets.dll' -ErrorAction SilentlyContinue | ForEach-Object { L ("Widgets: " + $_.FullName) } Get-ChildItem 'C:\Qt\Tools' -Directory -ErrorAction SilentlyContinue | Select-Object -ExpandProperty FullName | Tee-Object -FilePath $log -Append L "=== done $(Get-Date -Format s) ==="