Skip to content

Commit

Permalink
Update libopencv-dev.4.9.0 package
Browse files Browse the repository at this point in the history
  • Loading branch information
lebarsfa committed Feb 10, 2024
1 parent 0973eeb commit 4a0a53d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
env:
OPENCVVER: 4.6.0
OPENCVVER: 4.9.0

on:
push:
branches: 'libopencv-dev.4.6.0'
branches: 'libopencv-dev.4.9.0'
tags: '' # Restrict to blank tags
pull_request:

Expand Down
10 changes: 5 additions & 5 deletions choco/libopencv-dev/libopencv-dev.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>libopencv-dev</id>
<version>4.6.0.20230510</version>
<packageSourceUrl>https://github.com/lebarsfa/Packages/tree/libopencv-dev.4.6.0/choco/libopencv-dev</packageSourceUrl>
<version>4.9.0.20240121</version>
<packageSourceUrl>https://github.com/lebarsfa/Packages/tree/libopencv-dev.4.9.0/choco/libopencv-dev</packageSourceUrl>
<owners>lebarsfa</owners>
<title>Development files for OpenCV</title>
<authors>OpenCV team</authors>
Expand All @@ -19,7 +19,7 @@
OpenCV development defaults package.

## Package info
- The purpose of this package is to be more or less the equivalent of https://packages.ubuntu.com/lunar/libopencv-dev. The MinGW/GCC version is chosen as the current one available on GitHub Actions hosted runners. Note that the existing https://community.chocolatey.org/packages/OpenCV official package does not provide binaries for MinGW/GCC.
- The purpose of this package is to be more or less the equivalent of https://packages.ubuntu.com/noble/libopencv-dev. The MinGW/GCC version is chosen as the current one available on GitHub Actions hosted runners. Note that the existing https://community.chocolatey.org/packages/OpenCV official package does not provide binaries for MinGW/GCC.

## Quick start
- After [installing Chocolatey](https://chocolatey.org/install), run `choco install -y libopencv-dev cmake.install --installargs 'ADD_CMAKE_TO_PATH=System'` in PowerShell, reboot and then get the folder from https://www.ensta-bretagne.fr/lebars/Share/ImageOpenCV454_Ubuntu22.04.zip and inside, try `cmake -G "MinGW Makefiles" .`, then `cmake --build .`, then `.\ImageOpenCV.exe` in a new PowerShell window and check that an image appears in a window.
Expand All @@ -29,7 +29,7 @@ OpenCV development defaults package.

## Package parameters
The following package parameters can be set:
- `/url:URL` - Will install the specified self-extracting OpenCV package, see e.g. versions from https://github.com/lebarsfa/Packages/releases (the Windows `PATH` might need to be updated manually with e.g. `C:\OpenCV4.6.0\x86\vc15\bin`, you might need to set manually CMake variables `OpenCV_ARCH` e.g. to `x86`, `OpenCV_RUNTIME` e.g. to `vc15`, `OpenCV_STATIC` e.g. to `ON`, rename folders e.g. from `C:\OpenCV4.6.0\x86\mingw` to `C:\OpenCV4.6.0\x86\mingw7`, etc.). By default, only the MinGW libraries compatible with the corresponding MinGW Chocolatey package dependency are installed. Use the standard parameter `choco install --ignore-dependencies ...` to avoid installing MinGW Chocolatey package dependency if needed.
- `/url:URL` - Will install the specified self-extracting OpenCV package, see e.g. versions from https://github.com/lebarsfa/Packages/releases (the Windows `PATH` might need to be updated manually with e.g. `C:\OpenCV4.9.0\x86\vc15\bin`, you might need to set manually CMake variables `OpenCV_ARCH` e.g. to `x86`, `OpenCV_RUNTIME` e.g. to `vc15`, `OpenCV_STATIC` e.g. to `ON`, rename folders e.g. from `C:\OpenCV4.9.0\x86\mingw` to `C:\OpenCV4.9.0\x86\mingw7`, etc.). By default, only the MinGW libraries compatible with the corresponding MinGW Chocolatey package dependency are installed. Use the standard parameter `choco install --ignore-dependencies ...` to avoid installing MinGW Chocolatey package dependency if needed.
- `/checksum:SHA256` - SHA256 checksum of the self-extracting OpenCV package specified by the `/url` parameter. If needed, use the standard parameter `choco install --ignore-checksums ...` for trusted sources.
- `/urlX:URL` - Same as above, with X in [1,99], except this will not disable the installation of the MinGW libraries compatible with the corresponding MinGW Chocolatey package dependency.
- `/checksumX:SHA256` - SHA256 checksum of the self-extracting OpenCV package specified by the `/urlX` parameter. If needed, use the standard parameter `choco install --ignore-checksums ...` for trusted sources.
Expand All @@ -40,7 +40,7 @@ The following package parameters can be set:
To pass package parameters, use `--params "''"` (e.g. `choco install libopencv-dev --params "'/NoPath /32and64'"`), and to install multiple self-extracting OpenCV packages together (if they are not mutually exclusive due to other reasons), try e.g.
```
choco install -y chocolatey-core.extension
choco install -y --ignore-dependencies libopencv-dev --params "'/url:https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.6.0.20230510/libopencv-dev.4.6.0_x64_vc17_staticlib_Debug.exe /url1:https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.6.0.20230510/libopencv-dev.4.6.0_x64_vc17_lib_Debug.exe /url2:https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.6.0.20230510/libopencv-dev.4.6.0_x64_vc17_staticlib_Release.exe /url3:https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.6.0.20230510/libopencv-dev.4.6.0_x64_vc17_lib_Release.exe'"
choco install -y --ignore-dependencies libopencv-dev --params "'/url:https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.9.0.20240121/libopencv-dev.4.9.0_x64_vc17_staticlib_Debug.exe /url1:https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.9.0.20240121/libopencv-dev.4.9.0_x64_vc17_lib_Debug.exe /url2:https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.9.0.20240121/libopencv-dev.4.9.0_x64_vc17_staticlib_Release.exe /url3:https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.9.0.20240121/libopencv-dev.4.9.0_x64_vc17_lib_Release.exe'"
```
</description>
<releaseNotes>https://github.com/opencv/opencv/wiki/ChangeLog</releaseNotes>
Expand Down
16 changes: 8 additions & 8 deletions choco/libopencv-dev/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ $root = Join-Path $installDir "$CMakePackageName$CMakePackageVer"
New-Item -ItemType Directory -Force -Path $root | Out-Null

if (!$pp['url']) {
$url = 'https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.6.0.20230510/libopencv-dev.4.6.0_x86_mingw11_staticlib_Release.exe'
$checksum = 'D399EA8897F73B7F0F9693F5B9C60CE83C22E96ABD79BF03D1A2C77E0ED59957'
$url64 = 'https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.6.0.20230510/libopencv-dev.4.6.0_x64_mingw11_staticlib_Release.exe'
$checksum64 = 'E4055BF4D3FF337153B9F1D3E29085BBE04DE04834E0C5D05E0F76D08797F37A'
$url = 'https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.9.0.20240121/libopencv-dev.4.9.0_x86_mingw11_staticlib_Release.exe'
$checksum = '212DF572DA0195973F7EB35D77E9D078908BA2A57907B909353831EF7B238B6F'
$url64 = 'https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.9.0.20240121/libopencv-dev.4.9.0_x64_mingw11_staticlib_Release.exe'
$checksum64 = 'CE89788ED2BE471454E72F8A98FA24B5520F33B804EEBB5C7022CD0EAE33D251'
if ($pp['32and64']) {
$packageArgs = @{
packageName = $env:ChocolateyPackageName
Expand Down Expand Up @@ -53,10 +53,10 @@ if (!$pp['url']) {
Install-ChocolateyZipPackage @packageArgs
}

$url = 'https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.6.0.20230510/libopencv-dev.4.6.0_x86_mingw11_lib_Release.exe'
$checksum = '8870642B6943B182ED7769CE5FAC2E8D3FF673BE17C3312C581586C7D376B381'
$url64 = 'https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.6.0.20230510/libopencv-dev.4.6.0_x64_mingw11_lib_Release.exe'
$checksum64 = '193970D261B98505E579E227B1F2451B956ED7F5C65D4C6AA359FEF6626C7370'
$url = 'https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.9.0.20240121/libopencv-dev.4.9.0_x86_mingw11_lib_Release.exe'
$checksum = 'BB489603FCABD01689EC74A329D6A43BEADEA0AB165EA27EAFE01054C3187351'
$url64 = 'https://github.com/lebarsfa/Packages/releases/download/libopencv-dev.4.9.0.20240121/libopencv-dev.4.9.0_x64_mingw11_lib_Release.exe'
$checksum64 = '7F2522ECDB312143D95E545A99A4AF11024B58C6A7D7F3F871DE3878EA50A309'
if ($pp['32and64']) {
$packageArgs = @{
packageName = $env:ChocolateyPackageName
Expand Down
2 changes: 1 addition & 1 deletion choco/libopencv-dev/tools/sharedVars.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ $MinGWMVer = "11"
$CMakeRegistryPath = "HKCU:\SOFTWARE\Kitware\CMake"
$CMakeSystemRepositoryPath = "HKLM:\SOFTWARE\Kitware\CMake\Packages"
$CMakePackageName = "OpenCV"
$CMakePackageVer = "4.6.0"
$CMakePackageVer = "4.9.0"

0 comments on commit 4a0a53d

Please sign in to comment.