Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
conda
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bob
conda
Commits
27824ec8
Commit
27824ec8
authored
Jan 25, 2021
by
Vincent POLLET
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Merge branch 'fix_opencv_subpackage_dependencies' into 'master'"
This reverts merge request
!462
parent
74b4537c
Pipeline
#47332
passed with stage
in 10 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
85 additions
and
80 deletions
+85
-80
conda/opencv/meta.yaml
conda/opencv/meta.yaml
+85
-80
No files found.
conda/opencv/meta.yaml
View file @
27824ec8
...
...
@@ -46,7 +46,7 @@ build:
run_exports
:
# https://abi-laboratory.pro/index.php?view=timeline&l=opencv
# Things seem to change every patch versions, mostly the dnn module
-
libopencv
-
{{
pin_subpackage('libopencv'
,
max_pin='x.x.x')
}}
requirements
:
build
:
...
...
@@ -88,84 +88,85 @@ requirements:
run
:
# Don't depend on python in the run section
# py-opencv will depend on python
-
{{
pin_compatible('harfbuzz')
}}
# [unix]
test
:
requires
:
-
{{
compiler('c')
}}
-
{{
compiler('cxx')
}}
-
pkg-config
# [not win]
-
mkl-devel {{ mkl }}
# [blas_impl == 'mkl']
-
openblas-devel {{ openblas }}
# [blas_impl == 'openblas']
-
nomkl
# [blas_impl == 'openblas']
-
cmake
-
ninja
-
qt 5.9.*
# [linux64]
files
:
-
CMakeLists.txt
-
test.cpp
commands
:
# Verify dynamic libraries on all systems
{
%
set win_ver_lib = version|replace("."
,
"
"
) %
}
{
%
set opencv_libs =
[
"
aruco"
,
"
bgsegm"
,
"
calib3d"
,
"
ccalib"
,
"
core"
,
"
datasets"
,
"
dnn"
,
"
dpm"
,
"
face"
,
"
features2d"
,
"
flann"
,
"
fuzzy"
,
"
highgui"
,
"
imgcodecs"
,
"
imgproc"
,
"
line_descriptor"
,
"
ml"
,
"
objdetect"
,
"
optflow"
,
"
phase_unwrapping"
,
"
photo"
,
"
plot"
,
"
reg"
,
"
rgbd"
,
"
saliency"
,
"
shape"
,
"
stereo"
,
"
stitching"
,
"
structured_light"
,
"
superres"
,
"
surface_matching"
,
"
text"
,
"
tracking"
,
"
video"
,
"
videoio"
,
"
videostab"
,
"
xfeatures2d"
,
"
ximgproc"
,
"
xobjdetect"
,
"
xphoto"
]
%
}
-
export MACOSX_DEPLOYMENT_TARGET={{ MACOSX_DEPLOYMENT_TARGET }}
# [osx]
-
export CONDA_BUILD_SYSROOT={{ CONDA_BUILD_SYSROOT }}
# [osx]
-
OPENCV_FLAGS=`pkg-config --cflags opencv4`
# [unix]
-
$CXX -std=c++11 $RECIPE_DIR/test.cpp ${OPENCV_FLAGS} -o test
# [unix]
-
if [[ $(./test) != $PKG_VERSION ]]; then exit 1 ; fi
# [unix]
{
%
for each_opencv_lib in opencv_libs %
}
-
test -f $PREFIX/lib/libopencv_{{ each_opencv_lib }}${SHLIB_EXT}
# [unix]
-
if not exist %PREFIX%\\Library\\bin\\opencv_{{ each_opencv_lib }}{{ win_ver_lib }}.dll exit
1
# [win]
{
%
endfor %
}
-
test -f $PREFIX/lib/libopencv_bioinspired${SHLIB_EXT}
# [unix]
-
test -f $PREFIX/lib/libopencv_hdf${SHLIB_EXT}
# [unix]
-
test -f $PREFIX/lib/libopencv_freetype${SHLIB_EXT}
# [unix]
-
mkdir -p cmake_build_test && pushd cmake_build_test
-
cmake -G "Ninja" ..
-
cmake --build . --config Release
-
popd
requires
:
-
{{
compiler('c')
}}
-
{{
compiler('cxx')
}}
-
pkg-config
# [not win]
-
mkl-devel {{ mkl }}
# [blas_impl == 'mkl']
-
openblas-devel {{ openblas }}
# [blas_impl == 'openblas']
-
nomkl
# [blas_impl == 'openblas']
-
cmake
-
ninja
-
qt 5.9.*
# [linux64]
files
:
-
CMakeLists.txt
-
test.cpp
commands
:
# Verify dynamic libraries on all systems
{
%
set win_ver_lib = version|replace("."
,
"
"
) %
}
{
%
set opencv_libs =
[
"
aruco"
,
"
bgsegm"
,
"
calib3d"
,
"
ccalib"
,
"
core"
,
"
datasets"
,
"
dnn"
,
"
dpm"
,
"
face"
,
"
features2d"
,
"
flann"
,
"
fuzzy"
,
"
highgui"
,
"
imgcodecs"
,
"
imgproc"
,
"
line_descriptor"
,
"
ml"
,
"
objdetect"
,
"
optflow"
,
"
phase_unwrapping"
,
"
photo"
,
"
plot"
,
"
reg"
,
"
rgbd"
,
"
saliency"
,
"
shape"
,
"
stereo"
,
"
stitching"
,
"
structured_light"
,
"
superres"
,
"
surface_matching"
,
"
text"
,
"
tracking"
,
"
video"
,
"
videoio"
,
"
videostab"
,
"
xfeatures2d"
,
"
ximgproc"
,
"
xobjdetect"
,
"
xphoto"
]
%
}
-
export MACOSX_DEPLOYMENT_TARGET={{ MACOSX_DEPLOYMENT_TARGET }}
# [osx]
-
export CONDA_BUILD_SYSROOT={{ CONDA_BUILD_SYSROOT }}
# [osx]
-
OPENCV_FLAGS=`pkg-config --cflags opencv4`
# [unix]
-
$CXX -std=c++11 $RECIPE_DIR/test.cpp ${OPENCV_FLAGS} -o test
# [unix]
-
if [[ $(./test) != $PKG_VERSION ]]; then exit 1 ; fi
# [unix]
{
%
for each_opencv_lib in opencv_libs %
}
-
test -f $PREFIX/lib/libopencv_{{ each_opencv_lib }}${SHLIB_EXT}
# [unix]
-
if not exist %PREFIX%\\Library\\bin\\opencv_{{ each_opencv_lib }}{{ win_ver_lib }}.dll exit
1
# [win]
{
%
endfor %
}
-
test -f $PREFIX/lib/libopencv_bioinspired${SHLIB_EXT}
# [unix]
-
test -f $PREFIX/lib/libopencv_hdf${SHLIB_EXT}
# [unix]
-
test -f $PREFIX/lib/libopencv_freetype${SHLIB_EXT}
# [unix]
-
mkdir -p cmake_build_test && pushd cmake_build_test
-
cmake -G "Ninja" ..
-
cmake --build . --config Release
-
popd
outputs
:
-
name
:
libopencv
...
...
@@ -178,13 +179,17 @@ outputs:
-
name
:
py-opencv
build
:
run_exports
:
-
py-opencv
# Should we even have this???
# don't pin the python version so hard.
# Actually, I have found pretty good compatibility in the python
# package
-
{{
pin_subpackage('py-opencv')
}}
requirements
:
# There is no build script, but I just want it to think
# that it needs python and numpy at build time
host
:
-
python
{{ python }}
-
numpy
{{ numpy }}
-
python
-
numpy
run
:
-
python
-
{{
pin_compatible('numpy')
}}
...
...
@@ -193,9 +198,9 @@ outputs:
requires
:
# Test with the two currently supported lapack implementatons
# One test done on different versions of python on each platform
-
mkl-devel {{ mkl }}
# [blas_impl == 'mkl']
-
mkl-devel {{ mkl }}
# [blas_impl == 'mkl']
-
openblas-devel {{ openblas }}
# [blas_impl == 'openblas']
-
nomkl
# [blas_impl == 'openblas']
-
nomkl
# [blas_impl == 'openblas']
imports
:
-
cv2
-
cv2.xfeatures2d
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment