-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Zonbi-san/beta
install scripts for windows
- Loading branch information
Showing
3 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#winget install Microsoft.VisualStudio.2022.BuildTools Kitware.CMake Git.Git | ||
|
||
git clone https://gitlab.com/conradsnicta/armadillo-code.git | ||
|
||
cd ../ | ||
|
||
$P_REPO_LOCATION = Get-Location | ||
|
||
cd ./installers | ||
|
||
cd armadillo-code | ||
|
||
New-Item -ItemType Directory -Path ./build | ||
cd ./build | ||
|
||
$CMAKE_GENERATOR_OPTIONS = '-G Visual Studio 17 2022' | ||
|
||
cmake "$CMAKE_GENERATOR_OPTIONS" -DCMAKE_INSTALL_PREFIX="$P_REPO_LOCATION/armadillo-code" .. | ||
cmake --build . --target install --config release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.3.2691/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile .\MicrosoftDesktopAppInstaller_8wekyb3d8bbwe.msixbundle | ||
winget install Microsoft.VisualStudio.2022.BuildTools Kitware.CMake #make sure to also select desktop developement with C++ | ||
# uncomment the first line if you dont have winget installed for some reason | ||
|
||
wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.x.zip | ||
wget -O opencv.zip https://github.com/opencv/opencv/archive/4.x.zip | ||
Expand-Archive -Path ./opencv.zip | ||
Expand-Archive -Path ./opencv_contrib.zip | ||
downloading required stuff and extracting it | ||
cd ../ | ||
|
||
$P_REPO_LOCATION = Get-Location | ||
|
||
New-Item -ItemType Directory -Path ./installers/build | ||
cd ./installers/build | ||
|
||
|
||
$CMAKE_OPTIONS = '-DBUILD_PERF_TESTS:BOOL=OFF -DBUILD_TESTS:BOOL=OFF -DBUILD_DOCS:BOOL=OFF -DWITH_CUDA:BOOL=OFF -DBUILD_EXAMPLES:BOOL=OFF -DINSTALL_CREATE_DISTRIB=ON' | ||
$CMAKE_GENERATOR_OPTIONS = '-G Visual Studio 17 2022' | ||
|
||
|
||
Write-host "$CMAKE_OPTIONS" | ||
Write-host "$CMAKE_GENERATOR_OPTIONS" | ||
Write-host "$P_REPO_LOCATION" #for verification purposes | ||
|
||
cmake "$CMAKE_GENERATOR_OPTIONS" "$CMAKE_OPTIONS" -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/opencv_contrib-4.x/modules -DCMAKE_INSTALL_PREFIX="$P_REPO_LOCATION/opencv" "../opencv/opencv-4.x" | ||
cmake --build . --target install --config release |