Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opencv 4.x: refactor to allow fine-grained selection of each module/contrib #15193

Merged
merged 145 commits into from
Aug 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
6c93f60
allow to build opencv_objdetect without dnn in 4.5.5
SpaceIm Jan 9, 2023
bca1051
add missing contrib components when dnn is True
SpaceIm Jan 10, 2023
e6c4599
fix photo & stitching components when cuda is enabled
SpaceIm Jan 10, 2023
beff193
add quality component in contrib only if version >= 4.1.0
SpaceIm Jan 10, 2023
174908d
add dnn as an option dependency of video since 4.5.1
SpaceIm Jan 10, 2023
67d3590
dnn is an optional dependency of tracking
SpaceIm Jan 10, 2023
5792891
text is an optional dependency of datasets
SpaceIm Jan 10, 2023
45e6629
move cuda components under contrib
SpaceIm Jan 10, 2023
2b84e4e
fix requires of several contrib components
SpaceIm Jan 10, 2023
5a0abdc
improve requires of main components
SpaceIm Jan 10, 2023
4cb4849
add an option for each contrib and deprecate contrib option
SpaceIm Jan 10, 2023
381c57e
fix internal requirements of tracking module
SpaceIm Jan 10, 2023
6dd7c80
force disable tesseract in text module for the moment
SpaceIm Jan 10, 2023
0683e90
deprecate with_ade option in favor of gapi option
SpaceIm Jan 10, 2023
282a68a
add option to allow to disable stitching module
SpaceIm Jan 10, 2023
18f5a34
remove useless comments
SpaceIm Jan 10, 2023
12be478
adapt test package to new options
SpaceIm Jan 10, 2023
5bf15a9
add option to allow disabling highgui
SpaceIm Jan 10, 2023
7619df4
add option to allow disabling videoio
SpaceIm Jan 10, 2023
b0baa07
add option to allow disabling ml
SpaceIm Jan 10, 2023
a4d37f3
add option to allow disabling photo
SpaceIm Jan 10, 2023
e0f7e28
move options related to modules first
SpaceIm Jan 10, 2023
940c661
add missing frameworks for imgcodecs
SpaceIm Jan 10, 2023
8571648
add with_tesseract option for text module
SpaceIm Jan 11, 2023
3fb4db6
also handle cuda contribs
SpaceIm Jan 11, 2023
1731173
add option to allow disabling objdetect
SpaceIm Jan 11, 2023
ad2fc34
add option to allow disabling video
SpaceIm Jan 11, 2023
7e847fe
prefer to force enable options required by modules explicitly require…
SpaceIm Jan 11, 2023
65733e8
improve CMakeLists of test package
SpaceIm Jan 11, 2023
aa7908b
add option to allow disabling imgcodecs
SpaceIm Jan 11, 2023
bb76fb3
typo
SpaceIm Jan 11, 2023
8685a6e
remove with_imgcodec_* options when imgcodecs module is disabled
SpaceIm Jan 11, 2023
29f219c
add option to allow disabling calib3d
SpaceIm Jan 11, 2023
4270774
add option to allow disabling features2d
SpaceIm Jan 11, 2023
cffc260
classification of options by category
SpaceIm Jan 11, 2023
8d522ad
add option to allow disabling flann
SpaceIm Jan 11, 2023
4e701be
split executables in test package per tested module
SpaceIm Jan 11, 2023
714b818
add option to allow disabling imgproc
SpaceIm Jan 11, 2023
b54c575
opencv 4.x requires at least C++11
SpaceIm Jan 11, 2023
542dc89
test opencv_core
SpaceIm Jan 11, 2023
edf94e1
add options for gdal & gdcm support in imgcodecs
SpaceIm Jan 11, 2023
cb45204
test opencv_imgcodecs
SpaceIm Jan 11, 2023
855ed03
minor change
SpaceIm Jan 11, 2023
b5316d0
add missing mantadory dependency to tracking
SpaceIm Jan 11, 2023
0d428c2
minor change
SpaceIm Jan 12, 2023
d0e6c31
add contrib_ovis option
SpaceIm Jan 12, 2023
a9314ec
add contrib_hdf option
SpaceIm Jan 12, 2023
cf751a6
fix system libs of opencv_gapi on Windows
SpaceIm Jan 12, 2023
759e440
remove with_v4l option if videoio module is disabled
SpaceIm Jan 12, 2023
9812168
control build of cudev through with_cuda option
SpaceIm Jan 12, 2023
d7842d0
add vulkan support in dnn module
SpaceIm Jan 12, 2023
36030ec
add with_opencl option
SpaceIm Jan 12, 2023
0c27d13
do not build Android examples
SpaceIm Jan 12, 2023
7c3e0d1
fix discovery of zlib static if Android
SpaceIm Jan 12, 2023
0ba0ae5
fix install layout for Android
SpaceIm Jan 12, 2023
aeef04b
better filter to collect extra libs in opencv core
SpaceIm Jan 12, 2023
c115b27
remove contrib prefix
SpaceIm Jan 12, 2023
3230efb
add deprecation messages
SpaceIm Jan 12, 2023
8e1da90
alphamat requires eigen support
SpaceIm Jan 12, 2023
2cd3210
fix injection of cpu_baseline and cpu_dispatch in case of empty string
SpaceIm Jan 12, 2023
8448b25
neon stuff
SpaceIm Jan 12, 2023
068c0df
pass False to WITH_FFMPEG if option removed
SpaceIm Jan 13, 2023
bb11621
remove deprecated options from package id
SpaceIm Jan 13, 2023
233c533
simplify
SpaceIm Jan 13, 2023
ce340eb
add cvv and viz options
SpaceIm Jan 13, 2023
c16b418
avoid redefining cmake variables
SpaceIm Jan 13, 2023
b96d09a
do not force disable openexr if Android
SpaceIm Jan 13, 2023
63905fa
better handling of qt
SpaceIm Jan 13, 2023
0fb6945
no base_path in conandata.yml
SpaceIm Jan 14, 2023
af7d651
fix qt link
SpaceIm Jan 14, 2023
a108039
improve deprecated contrib option handling
SpaceIm Jan 14, 2023
ce0b7f4
factorize modules in options & default_options
SpaceIm Jan 14, 2023
3b75b32
declare frameworks & system_libs in _opencv_modules
SpaceIm Jan 14, 2023
05fbd7e
typo
SpaceIm Jan 14, 2023
bd4c889
fix link to qt in cvv module
SpaceIm Jan 14, 2023
6bfc0c7
add a test of calib3d module
SpaceIm Jan 14, 2023
20aef18
add a test of flann module
SpaceIm Jan 14, 2023
dec7aaa
add a test of objdetect module
SpaceIm Jan 14, 2023
859adca
add a test of video module
SpaceIm Jan 14, 2023
0b4c2ff
add a test of photo module
SpaceIm Jan 14, 2023
cc6058a
add a test of stitching module
SpaceIm Jan 14, 2023
eea8281
add a test of ml module
SpaceIm Jan 14, 2023
26ca598
add a test of highgui module
SpaceIm Jan 14, 2023
10bebc3
parallel ctest in test package
SpaceIm Jan 14, 2023
2aca0ca
add a test of features2d module
SpaceIm Jan 14, 2023
913faee
add a test of freetype module
SpaceIm Jan 14, 2023
5997bdc
parallel ctest in test v1 package
SpaceIm Jan 14, 2023
b62a3dc
add a test of structured_light module
SpaceIm Jan 14, 2023
cf72323
add a test of shape module
SpaceIm Jan 14, 2023
f5a0313
add a test of reg module
SpaceIm Jan 14, 2023
6618f7e
simplify test_imgproc.cpp
SpaceIm Jan 14, 2023
2e14f1b
test more extra modules
SpaceIm Jan 15, 2023
f2c41df
more elegant workaround of get_safe in test_v1_package
SpaceIm Jan 16, 2023
b9ef476
small change
SpaceIm Jan 16, 2023
379eb2b
missing tesseract in requires of text component
SpaceIm Jan 16, 2023
c9a1314
add a test of text module
SpaceIm Jan 16, 2023
f64832b
add test of xfeatures2d module
SpaceIm Jan 16, 2023
a5e3c95
add test of ximgproc module
SpaceIm Jan 16, 2023
ab20c55
test more extra modules
SpaceIm Jan 16, 2023
e396c4e
add missing header in alphamat.hpp
SpaceIm Jan 16, 2023
885791a
typo
SpaceIm Jan 16, 2023
3022dfd
sfm module needs eigen enabled
SpaceIm Jan 17, 2023
c6832d5
test more extra modules
SpaceIm Jan 17, 2023
f302346
test more extra modules
SpaceIm Jan 17, 2023
78877ad
test more extra modules
SpaceIm Jan 17, 2023
c933656
simplify CMakeLists of test package
SpaceIm Jan 17, 2023
b890aec
simplify test package even more
SpaceIm Jan 17, 2023
2166eb7
test more modules
SpaceIm Jan 17, 2023
f7a5a27
adapt dnn_superres test to work with old versions
SpaceIm Jan 17, 2023
91e2928
fix build of sfm extra module in opencv < 4.5.3
SpaceIm Jan 17, 2023
22f6eaa
Merge branch 'master' into fix/opencv-components
SpaceIm Jan 19, 2023
2ed9e06
Merge branch 'master' into fix/opencv-components
SpaceIm Jan 19, 2023
0325e85
Merge branch 'master' into fix/opencv-components
SpaceIm Jan 20, 2023
8cf9816
check again internal dependencies between options in validate()
SpaceIm Jan 23, 2023
4e036d3
add world option
SpaceIm Jan 24, 2023
6d5f7e9
minor change
SpaceIm Jan 25, 2023
5e92fb5
minor comment change
SpaceIm Jan 25, 2023
f29174e
factorize a little bit
SpaceIm Jan 25, 2023
a0254c2
bump protobuf to 3.21.9
SpaceIm Jan 30, 2023
f5fb3af
compat with openexr 3.x in old opencv versions
SpaceIm Jan 30, 2023
2677292
add res to resdirs of components
SpaceIm Jan 31, 2023
4a1769a
Merge branch 'master' into fix/opencv-components
SpaceIm Feb 16, 2023
a35589c
bump dependencies
SpaceIm Feb 16, 2023
68851c0
some conan v2 stuff
SpaceIm Feb 16, 2023
483e8d9
bump freetype
SpaceIm Mar 11, 2023
107a3b1
properly set requires of each component regarding eigen
SpaceIm Mar 11, 2023
346efca
fix cuda internal dependencies
SpaceIm Mar 27, 2023
07edd95
use self.dependencies["ffmpeg"]
SpaceIm Apr 2, 2023
cb8c044
fix ffmpeg required components
SpaceIm Apr 2, 2023
d95277f
improve ffmpeg handling
SpaceIm Apr 2, 2023
32ed39e
ffmpeg workaround for the moment
SpaceIm Apr 2, 2023
405f6d1
bump ffmpeg
SpaceIm Apr 2, 2023
96e8c81
avutil always available in ffmpeg
SpaceIm Apr 2, 2023
e21f2ef
bump dependencies
SpaceIm Apr 15, 2023
a74ac56
factorize
SpaceIm Apr 15, 2023
be69278
Merge branch 'master' into fix/opencv-components
SpaceIm May 10, 2023
d8df4f6
Merge branch 'master' into fix/opencv-components
SpaceIm May 10, 2023
25a39bc
Merge branch 'master' into fix/opencv-components
SpaceIm May 10, 2023
5dc5d98
remove patches of removed versions
SpaceIm May 10, 2023
12a8b6f
fix world option
SpaceIm Jun 15, 2023
faea8ec
bump dependencies
SpaceIm Jun 15, 2023
a0829fa
fix typo in requires of cudacodec
SpaceIm Aug 10, 2023
a111fb4
Merge branch 'master' into fix/opencv-components
SpaceIm Aug 10, 2023
186011a
bump several dependencies
SpaceIm Aug 10, 2023
a3ad99a
Update recipes/opencv/4.x/conandata.yml
SpaceIm Aug 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 60 additions & 6 deletions recipes/opencv/4.x/conandata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,42 @@ sources:
- url: "https://github.com/opencv/opencv_contrib/archive/refs/tags/4.5.5.tar.gz"
sha256: "a97c2eaecf7a23c6dbd119a609c6d7fae903e5f9ff5f1fe678933e01c67a6c11"
"4.5.3":
- url: "https://github.com/opencv/opencv/archive/4.5.3.tar.gz"
- url: "https://github.com/opencv/opencv/archive/refs/tags/4.5.3.tar.gz"
sha256: "77f616ae4bea416674d8c373984b20c8bd55e7db887fd38c6df73463a0647bab"
- url: "https://github.com/opencv/opencv_contrib/archive/4.5.3.tar.gz"
- url: "https://github.com/opencv/opencv_contrib/archive/refs/tags/4.5.3.tar.gz"
sha256: "73da052fd10e73aaba2560eaff10cc5177e2dcc58b27f8aedf7c649e24c233bc"
"4.1.2":
- url: "https://github.com/opencv/opencv/archive/4.1.2.tar.gz"
- url: "https://github.com/opencv/opencv/archive/refs/tags/4.1.2.tar.gz"
sha256: "385dd0a9c25e67ef0dd60e022d2a2d7b17e2f36819cf3cb46aa8cdff5c5282c9"
- url: "https://github.com/opencv/opencv_contrib/archive/4.1.2.tar.gz"
- url: "https://github.com/opencv/opencv_contrib/archive/refs/tags/4.1.2.tar.gz"
sha256: "0f6c3d30baa39e3e7611afb481ee86dea45dafb182cac87d570c95dccd83eb8b"
patches:
"4.5.5":
- patch_file: "patches/4.5.5-0001-find-openexr.patch"
patch_description: "Robust discovery & injection of OpenEXR"
patch_type: "conan"
- patch_file: "patches/4.5.5-0002-objdetect-without-dnn.patch"
patch_description: "Allow to build objdetect module without dnn"
patch_type: "portability"
patch_source: "https://github.com/opencv/opencv/pull/21369"
- patch_file: "patches/4.5.5-0003-find-quirc.patch"
patch_description: "Robust discovery & injection of quirc"
patch_type: "conan"
- patch_file: "patches/4.5.5-0004-link-qt-targets.patch"
patch_description: "Link to Qt through CMake targets"
patch_type: "conan"
- patch_file: "patches/4.5.0-0002-find-ade.patch"
patch_description: "Robust discovery & injection of ade"
patch_type: "conan"
- patch_file: "patches/4.1.2-0003-find-quirc.patch"
patch_description: "Robust discovery & injection of quirc"
- patch_file: "patches/4.5.1-0001-tracking-no-plot-deps.patch"
patch_description: "Fix requirements of tracking module"
patch_type: "conan"
- patch_file: "patches/4.5.1-0002-alphamat-header.patch"
patch_description: "Add missing header in alphamat.hpp"
patch_type: "portability"
patch_source: "https://github.com/opencv/opencv_contrib/pull/3422"
- patch_file: "patches/4.1.2-0006-hdf.patch"
patch_description: "Robust discovery of hdf"
patch_type: "conan"
- patch_file: "patches/4.5.2-0001-fix-zlib-static-android.patch"
patch_description: "Fix discovery of zlib static if Android"
Expand All @@ -35,18 +52,35 @@ patches:
- patch_file: "patches/4.5.3-0001-find-openexr.patch"
patch_description: "Robust discovery & injection of OpenEXR"
patch_type: "conan"
- patch_file: "patches/4.5.3-0002-link-qt-targets.patch"
patch_description: "Link to Qt through CMake targets"
patch_type: "conan"
- patch_file: "patches/4.5.0-0002-find-ade.patch"
patch_description: "Robust discovery & injection of ade"
patch_type: "conan"
- patch_file: "patches/4.1.2-0003-find-quirc.patch"
patch_description: "Robust discovery & injection of quirc"
patch_type: "conan"
- patch_file: "patches/4.5.1-0001-tracking-no-plot-deps.patch"
patch_description: "Fix requirements of tracking module"
patch_type: "conan"
- patch_file: "patches/4.5.1-0002-alphamat-header.patch"
patch_description: "Add missing header in alphamat.hpp"
patch_type: "portability"
patch_source: "https://github.com/opencv/opencv_contrib/pull/3422"
- patch_file: "patches/4.1.2-0006-hdf.patch"
patch_description: "Robust discovery of hdf"
patch_type: "conan"
- patch_file: "patches/4.5.2-0001-fix-zlib-static-android.patch"
patch_description: "Fix discovery of zlib static if Android"
patch_type: "conan"
- patch_file: "patches/4.1.2-0007-android-install-layout.patch"
patch_description: "Honor install layout from conan if Android"
patch_type: "conan"
- patch_file: "patches/4.1.2-0010-compat-protobuf-ge-3.18.patch"
patch_description: "Compatibility with protobuf >= 3.18"
patch_type: "portability"
patch_source: "https://github.com/opencv/opencv/pull/20386"
"4.1.2":
- patch_file: "patches/4.1.2-0001-find-openexr.patch"
patch_description: "Robust discovery & injection of OpenEXR"
Expand All @@ -60,6 +94,26 @@ patches:
- patch_file: "patches/4.1.2-0004-jasper.patch"
patch_description: "Compatibility with recent jasper versions"
patch_type: "portability"
- patch_file: "patches/4.1.2-0005-tracking-no-plot-deps.patch"
patch_description: "Fix requirements of tracking module"
patch_type: "conan"
- patch_file: "patches/4.1.2-0006-hdf.patch"
patch_description: "Robust discovery of hdf"
patch_type: "conan"
- patch_file: "patches/4.1.2-0007-android-install-layout.patch"
patch_description: "Honor install layout from conan if Android"
patch_type: "conan"
- patch_file: "patches/4.1.2-0008-link-qt-targets.patch"
patch_description: "Link to Qt through CMake targets"
patch_type: "conan"
- patch_file: "patches/4.1.2-0009-sfm-deps.patch"
patch_description: "Fix link to dependencies of sfm module"
patch_type: "conan"
- patch_file: "patches/4.1.2-0010-compat-protobuf-ge-3.18.patch"
patch_description: "Compatibility with protobuf >= 3.18"
patch_type: "portability"
patch_source: "https://github.com/opencv/opencv/pull/20386"
- patch_file: "patches/4.1.2-0011-compat-openexr3.patch"
patch_description: "Compatibility with OpenEXR 3.x"
patch_type: "portability"
SpaceIm marked this conversation as resolved.
Show resolved Hide resolved
patch_source: "https://github.com/opencv/opencv/pull/19970"
Loading