mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
* add prebuild dockerfile * add prebuild test workflw * update * update * rm other workflow for test * Update docker image * add win1o prebuild * add test prebuild * add windows scripts in prebuilt package * add linux scripts in prebuilt package * generate_build_config.py * fix cudnn search * fix env * fix script * fix rpath * fix cwd * fix windows * fix lint * windows prebuild ci * linux prebuild ci * fix * update trigger * Revert "rm other workflow for test" This reverts commit 0a0387275014efab71046d33a0e52904672b4012. * update sdk build readme * update prebuild * fix dll deps for python >= 3.8 on windows * fix ci * test prebuild * update test script to avoid modify upload folder * add onnxruntime.dll to mmdeploy_python * update prebuild workflow * update prebuild * Update loader.cpp.in * remove exists prebuild files * fix opencv env * update cmake options for mmdeploy python build * remove test code * fix lint --------- Co-authored-by: RunningLeon <mnsheng@yeah.net> Co-authored-by: RunningLeon <maningsheng@sensetime.com>
35 lines
911 B
PowerShell
Executable File
35 lines
911 B
PowerShell
Executable File
$opencvVer = "4.5.5"
|
|
# ----
|
|
|
|
$ErrorActionPreference = 'Stop'
|
|
$WORKSPACE = $PSScriptRoot
|
|
$THIRDPARTY_DIR = "${WORKSPACE}/thirdparty"
|
|
$OPENCV_DIR = "${THIRDPARTY_DIR}/opencv/install"
|
|
|
|
if (-Not (Test-Path -Path $THIRDPARTY_DIR -PathType Container)) {
|
|
New-Item -Path $THIRDPARTY_DIR -ItemType Directory
|
|
}
|
|
|
|
Push-Location "${THIRDPARTY_DIR}"
|
|
|
|
$url = "https://github.com/opencv/opencv/archive/refs/tags/$opencvVer.zip"
|
|
$fileName = [IO.Path]::GetFileName($url)
|
|
Start-BitsTransfer $url $fileName
|
|
Expand-Archive -Path $fileName -DestinationPath "." -Force
|
|
Move-Item "opencv-$opencvVer" "opencv"
|
|
Push-Location "opencv"
|
|
New-Item -Path "build" -ItemType Directory
|
|
Push-Location build
|
|
|
|
cmake .. -A x64 -T v142 `
|
|
-DBUILD_TESTS=OFF `
|
|
-DBUILD_PERF_TESTS=OFF `
|
|
-DCMAKE_INSTALL_PREFIX="${OPENCV_DIR}"
|
|
|
|
cmake --build . --config Release -j6
|
|
cmake --install . --config Release
|
|
|
|
Pop-Location
|
|
Pop-Location
|
|
Pop-Location
|