Initial Linux Qt OpenCV project
This commit is contained in:
19
docs/windows/setup-deps-windows.ps1
Normal file
19
docs/windows/setup-deps-windows.ps1
Normal file
@@ -0,0 +1,19 @@
|
||||
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,不要装到系统目录。"
|
||||
Reference in New Issue
Block a user