Files
chengnan/docs/windows/setup-deps-windows.ps1
luochen570 2a70d6245e
Some checks failed
Build Windows Release / build-windows (push) Has been cancelled
ci: build Windows release package
2026-05-29 22:59:55 +08:00

20 lines
985 B
PowerShell
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
param(
[string]$InstallRoot = "$PSScriptRoot\..\..\third_party"
)
$ErrorActionPreference = "Stop"
$InstallRoot = [System.IO.Path]::GetFullPath($InstallRoot)
New-Item -ItemType Directory -Force -Path $InstallRoot | Out-Null
Write-Host "本脚本不会写入系统目录,只在项目 third_party 下准备依赖。"
Write-Host "建议方式:"
Write-Host "1. 安装 Qt Online Installer 时,将安装目录选择为:$InstallRoot\qt-sdk"
Write-Host "2. 安装组件选择 Qt 6.x / MinGW 或 MSVC 版本。"
Write-Host "3. 将实际 Qt 编译套件目录复制或软链接到:$InstallRoot\qt"
Write-Host " 例如:$InstallRoot\qt-sdk\6.7.3\mingw_64 -> $InstallRoot\qt"
Write-Host "4. 下载 OpenCV Windows 预编译包,解压到:$InstallRoot\opencv"
Write-Host "5. 然后运行powershell -ExecutionPolicy Bypass -File scripts\build-windows.ps1"
Write-Host ""
Write-Host "如使用 vcpkg也请将 vcpkg clone 到项目 tools/vcpkg不要装到系统目录。"