Skip to content
Snippets Groups Projects
Commit 5a5c2346 authored by Alexandre Strube's avatar Alexandre Strube
Browse files

Merge branch 'opencv' into '2022'

OpenCV

See merge request hps-public/easybuild-repository!919
parents eb7840d0 cead9dd2
No related branches found
No related tags found
No related merge requests found
easyblock = 'CMakeMake'
name = 'OpenCV'
version = '4.5.4'
homepage = 'https://opencv.org/'
description = """OpenCV (Open Source Computer Vision Library) is an open source computer vision
and machine learning software library. OpenCV was built to provide
a common infrastructure for computer vision applications and to accelerate
the use of machine perception in the commercial products."""
toolchain = {'name': 'gcccoremkl', 'version': '11.2.0-2021.4.0'}
toolchainopts = {'pic': True, 'optarch': True}
source_urls = [
'https://github.com/opencv/opencv/archive/',
]
sources = [
'%(version)s.zip',
]
checksums = [
'5deac7f7341faf4b23c38d65f8f89dbf5b4b30d345390a60853640967a2bf61b'
]
builddependencies = [
('binutils', '2.37'),
('CMake', '3.21.1', '', SYSTEM),
]
dependencies = [
('Python', '3.9.6'),
('SciPy-Stack', '2021b'),
('zlib', '1.2.11'),
('FFmpeg', '4.4.1'),
('libjpeg-turbo', '2.1.1'),
('libpng', '1.6.37'),
('LibTIFF', '4.3.0'),
('JasPer', '2.0.33'),
('GLib', '2.69.1'),
('GTK+', '3.24.23',),
('protobuf', '3.17.3'),
('Eigen', '3.3.9'),
('OpenEXR', '3.1.1'),
('freetype', '2.11.0'),
('OpenGL', '2021b'),
]
separate_build_dir = True
configopts = "-D CMAKE_BUILD_TYPE=RELEASE "
configopts += '-D CMAKE_CXX_FLAGS="-Wdeprecated-declarations" '
configopts += "-D OPENCV_GENERATE_PKGCONFIG=ON "
configopts += "-D ENABLE_PRECOMPILED_HEADERS=OFF "
configopts += "-D BUILD_EXAMPLES=ON "
configopts += "-D INSTALL_PYTHON_EXAMPLES=ON "
configopts += "-D Protobuf_INCLUDE_DIR=$EBROOTPROTOBUF/include "
configopts += "-D Protobuf_LIBRARY=$EBROOTPROTOBUF/lib64/libprotobuf.so "
configopts += "-D Protobuf_LITE_LIBRARY_RELEASE=$EBROOTPROTOBUF/lib64/libprotobuf-lite.so "
configopts += "-D Protobuf_PROTOC_LIBRARY_RELEASE=$EBROOTPROTOBUF/lib64/bprotoc.so "
configopts += "-D BUILD_PROTOBUF=OFF -DPROTOBUF_UPDATE_FILES=ON "
configopts += "-D BUILD_JAVA=OFF "
configopts += "-D PYTHON_DEFAULT_EXECUTABLE=$EBROOTPYTHON/bin/python3 "
configopts += "-D PYTHON2_EXECUTABLE='' " # ensure python2 is NOT used
configopts += "-D WITH_OPENMP=ON "
modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages/'}
moduleclass = 'vis'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment