Skip to content

Commit

Permalink
Merge pull request #4 from Zonbi-san/beta
Browse files Browse the repository at this point in the history
install scripts for windows
  • Loading branch information
Ashthetik authored Aug 2, 2024
2 parents 318803a + 128fccc commit c786679
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ This project is a combination of facial emotion recognition (FER), sentiment ana

## Installation:
1. Clone the repository: `git clone https://github.com/Ashthetik/Polarity-.git`
2. run **BOTH** the installers in `installers/` (linux only)
2. run **BOTH** the installers in `installers/`
3. create a `build/` directory and run `cmake ..`
4. now `make -j $nproc` or `ninja`
4. now `make -j $nproc` or `ninja` (note for windows do `cmake --build . --target install`)

> [!IMPORTANT]
> Please note, this won't actually run yet, so please don't open an issue regarding it not running.
Expand All @@ -35,4 +35,4 @@ This project is a combination of facial emotion recognition (FER), sentiment ana
- Georgi Gerganov for Whisper.cpp: [ggerganov/whisper.cpp](https://github.com/ggerganov/whisper.cpp)

## License:
This project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details.
This project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details.
19 changes: 19 additions & 0 deletions installers/armadillo.ps1
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
27 changes: 27 additions & 0 deletions installers/opencv.ps1
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

0 comments on commit c786679

Please sign in to comment.