From b1e2474c52b01c606cd1f0595f93fd5921eee2d0 Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Sun, 13 Dec 2020 12:50:52 +0100 Subject: [PATCH 01/24] [tesseract] add missing reference for downstream projects --- ports/tesseract/CONTROL | 2 +- ports/tesseract/portfile.cmake | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/tesseract/CONTROL b/ports/tesseract/CONTROL index 530abc04dc7cea..715682442dbd54 100644 --- a/ports/tesseract/CONTROL +++ b/ports/tesseract/CONTROL @@ -1,6 +1,6 @@ Source: tesseract Version: 4.1.1 -Port-Version: 5 +Port-Version: 6 Homepage: https://github.com/tesseract-ocr/tesseract Description: An OCR Engine that was developed at HP Labs between 1985 and 1995... and now at Google. Build-Depends: leptonica, libarchive diff --git a/ports/tesseract/portfile.cmake b/ports/tesseract/portfile.cmake index d08e319071dd3d..55ee234e6f8d8f 100644 --- a/ports/tesseract/portfile.cmake +++ b/ports/tesseract/portfile.cmake @@ -47,6 +47,7 @@ find_package(ZLIB REQUIRED) find_package(BZip2 REQUIRED) find_package(LibXml2 REQUIRED) find_package(zstd REQUIRED) +find_package(lz4 REQUIRED) find_package(LibLZMA REQUIRED)" TESSERACT_CONFIG "${TESSERACT_CONFIG}") file(WRITE ${CURRENT_PACKAGES_DIR}/share/tesseract/TesseractConfig.cmake "${TESSERACT_CONFIG}") From 44ec3590e863add4868280c02e5fdd6a4eadff9e Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Sun, 13 Dec 2020 13:01:30 +0100 Subject: [PATCH 02/24] [tesseract] restore ci, fix many regressions that are uncovered by that --- ports/gdcm/CONTROL | 2 +- ports/opencv/CONTROL | 7 ++++++- ports/opencv2/CONTROL | 2 +- ports/opencv3/CONTROL | 10 +++++++--- ports/opencv3/portfile.cmake | 8 +++++--- .../{0006-fix-vtk9.patch => 0008-fix-vtk9.patch} | 0 ports/opencv4/CONTROL | 10 +++++++--- ports/opencv4/portfile.cmake | 10 ++++++---- ports/tesseract/CONTROL | 1 + scripts/ci.baseline.txt | 6 ------ scripts/test_ports/vcpkg-ci-opencv/CONTROL | 2 +- scripts/test_ports/vcpkg-ci-paraview/CONTROL | 2 +- 12 files changed, 36 insertions(+), 24 deletions(-) rename ports/opencv4/{0006-fix-vtk9.patch => 0008-fix-vtk9.patch} (100%) diff --git a/ports/gdcm/CONTROL b/ports/gdcm/CONTROL index 67d3a00503a50b..098df2c17e00fb 100644 --- a/ports/gdcm/CONTROL +++ b/ports/gdcm/CONTROL @@ -3,4 +3,4 @@ Version: 3.0.7 Homepage: https://github.com/malaterre/GDCM Description: Grassroots DICOM library Build-Depends: zlib, expat, openjpeg -Supports: !uwp \ No newline at end of file +Supports: !uwp&!(arm64&windows)&!(arm&windows) diff --git a/ports/opencv/CONTROL b/ports/opencv/CONTROL index 768d8fda7d9ee4..7b0e0cfe9da564 100644 --- a/ports/opencv/CONTROL +++ b/ports/opencv/CONTROL @@ -1,9 +1,10 @@ Source: opencv Version: 4.3.0 +Port-Version: 1 Homepage: https://github.com/opencv/opencv Description: Computer vision library Build-Depends: opencv4[core] -Default-Features: dnn, jpeg, opengl, png, tiff, webp +Default-Features: dnn, jpeg, png, tiff, webp Feature: nonfree Build-Depends: opencv4[core,nonfree] @@ -53,6 +54,10 @@ Feature: jpeg Build-Depends: opencv4[core,jpeg] Description: JPEG support for opencv +Feature: lapack +Build-Depends: opencv4[core,lapack] +Description: LAPACK support for opencv + Feature: openexr Build-Depends: opencv4[core,openexr] Description: OpenEXR support for opencv diff --git a/ports/opencv2/CONTROL b/ports/opencv2/CONTROL index 1e9f57cdbb96ed..c0c894d3a888a7 100644 --- a/ports/opencv2/CONTROL +++ b/ports/opencv2/CONTROL @@ -3,7 +3,7 @@ Version: 2.4.13.7 Port-Version: 4 Build-Depends: zlib Description: computer vision library, version 2 -Default-Features: eigen, jpeg, opengl, png, tiff +Default-Features: eigen, jpeg, png, tiff Feature: cuda Build-Depends: cuda diff --git a/ports/opencv3/CONTROL b/ports/opencv3/CONTROL index e48c5dc1ddb3da..e82ad01ebe39e0 100644 --- a/ports/opencv3/CONTROL +++ b/ports/opencv3/CONTROL @@ -1,10 +1,10 @@ Source: opencv3 Version: 3.4.10 -Port-Version: 4 +Port-Version: 5 Build-Depends: zlib Homepage: https://github.com/opencv/opencv Description: computer vision library -Default-Features: dnn, jpeg, opengl, png, tiff, webp +Default-Features: dnn, jpeg, png, tiff, webp Feature: nonfree Description: allow nonfree and unredistributable libraries @@ -14,7 +14,7 @@ Build-Depends: protobuf Description: opencv_flann module Feature: contrib -Build-Depends: opencv3[dnn], hdf5 (!uwp), tesseract (!uwp) +Build-Depends: opencv3[dnn], hdf5 (!uwp), tesseract (!uwp&!(arm64&windows)&!(arm&windows)) Description: opencv_contrib module Feature: cuda @@ -52,6 +52,10 @@ Feature: jpeg Build-Depends: libjpeg-turbo Description: JPEG support for opencv +Feature: lapack +Build-Depends: blas, lapack +Description: LAPACK support for opencv + Feature: openexr Build-Depends: openexr Description: OpenEXR support for opencv diff --git a/ports/opencv3/portfile.cmake b/ports/opencv3/portfile.cmake index e194e0e9aceeab..eff881a240efde 100644 --- a/ports/opencv3/portfile.cmake +++ b/ports/opencv3/portfile.cmake @@ -38,6 +38,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS "halide" WITH_HALIDE "jasper" WITH_JASPER "jpeg" WITH_JPEG + "lapack" WITH_LAPACK "nonfree" OPENCV_ENABLE_NONFREE "openexr" WITH_OPENEXR "opengl" WITH_OPENGL @@ -314,8 +315,6 @@ vcpkg_configure_cmake( -DWITH_OPENCLAMDBLAS=OFF -DWITH_TBB=${WITH_TBB} -DWITH_OPENJPEG=OFF - ###### WITH PROPERTIES explicitly disabled, they have problems with libraries if already installed by user and that are "involuntarily" found during install - -DWITH_LAPACK=OFF ###### BUILD_options (mainly modules which require additional libraries) -DBUILD_opencv_ovis=${BUILD_opencv_ovis} -DBUILD_opencv_dnn=${BUILD_opencv_dnn} @@ -374,11 +373,14 @@ find_dependency(Tesseract)") if("eigen" IN_LIST FEATURES) string(APPEND DEPS_STRING "\nfind_dependency(Eigen3 CONFIG)") endif() + if("lapack" IN_LIST FEATURES) + string(APPEND DEPS_STRING "\nfind_dependency(LAPACK)") + endif() if("openexr" IN_LIST FEATURES) string(APPEND DEPS_STRING "\nfind_dependency(OpenEXR CONFIG)") endif() if(WITH_OPENMP) - string(APPEND DEPS_STRING "\nfind_dependency(OpenMP CONFIG)") + string(APPEND DEPS_STRING "\nfind_dependency(OpenMP)") endif() if(BUILD_opencv_ovis) string(APPEND DEPS_STRING "\nfind_dependency(Ogre)\nfind_dependency(Freetype)") diff --git a/ports/opencv4/0006-fix-vtk9.patch b/ports/opencv4/0008-fix-vtk9.patch similarity index 100% rename from ports/opencv4/0006-fix-vtk9.patch rename to ports/opencv4/0008-fix-vtk9.patch diff --git a/ports/opencv4/CONTROL b/ports/opencv4/CONTROL index 1a688290040fff..cde0921dfd1b69 100644 --- a/ports/opencv4/CONTROL +++ b/ports/opencv4/CONTROL @@ -1,10 +1,10 @@ Source: opencv4 Version: 4.3.0 -Port-Version: 4 +Port-Version: 5 Build-Depends: zlib Homepage: https://github.com/opencv/opencv Description: computer vision library -Default-Features: dnn, jpeg, opengl, png, tiff, webp +Default-Features: dnn, jpeg, png, tiff, webp Feature: nonfree Description: allow nonfree and unredistributable libraries @@ -14,7 +14,7 @@ Build-Depends: ade Description: graph api Feature: contrib -Build-Depends: hdf5 (!uwp), tesseract (!uwp) +Build-Depends: hdf5 (!uwp&!(arm64&windows)&!(arm&windows)), tesseract (!uwp&!(arm64&windows)&!(arm&windows)) Description: opencv_contrib module Feature: cuda @@ -52,6 +52,10 @@ Feature: jpeg Build-Depends: libjpeg-turbo Description: JPEG support for opencv +Feature: lapack +Build-Depends: blas, lapack +Description: LAPACK support for opencv + Feature: openexr Build-Depends: openexr Description: OpenEXR support for opencv diff --git a/ports/opencv4/portfile.cmake b/ports/opencv4/portfile.cmake index 23c9184e7d5487..e5023292dffe53 100644 --- a/ports/opencv4/portfile.cmake +++ b/ports/opencv4/portfile.cmake @@ -19,8 +19,8 @@ vcpkg_from_github( 0002-install-options.patch 0003-force-package-requirements.patch 0004-fix-policy-CMP0057.patch - 0006-fix-vtk9.patch 0006-jpeg2000_getref.patch + 0008-fix-vtk9.patch 0009-fix-uwp.patch 0010-fix-interface_link_libraries.patch # Remove this patch when the next update ) @@ -42,6 +42,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS "halide" WITH_HALIDE "jasper" WITH_JASPER "jpeg" WITH_JPEG + "lapack" WITH_LAPACK "nonfree" OPENCV_ENABLE_NONFREE "openexr" WITH_OPENEXR "opengl" WITH_OPENGL @@ -346,8 +347,6 @@ vcpkg_configure_cmake( -DWITH_PROTOBUF=${BUILD_opencv_dnn} -DWITH_TBB=${WITH_TBB} -DWITH_OPENJPEG=OFF - ###### WITH PROPERTIES explicitly disabled, they have problems with libraries if already installed by user and that are "involuntarily" found during install - -DWITH_LAPACK=OFF ###### BUILD_options (mainly modules which require additional libraries) -DBUILD_opencv_ovis=${BUILD_opencv_ovis} -DBUILD_opencv_dnn=${BUILD_opencv_dnn} @@ -411,8 +410,11 @@ find_dependency(Tesseract)") if("openexr" IN_LIST FEATURES) string(APPEND DEPS_STRING "\nfind_dependency(OpenEXR CONFIG)") endif() + if("lapack" IN_LIST FEATURES) + string(APPEND DEPS_STRING "\nfind_dependency(LAPACK)") + endif() if(WITH_OPENMP) - string(APPEND DEPS_STRING "\nfind_dependency(OpenMP CONFIG)") + string(APPEND DEPS_STRING "\nfind_dependency(OpenMP)") endif() if(BUILD_opencv_ovis) string(APPEND DEPS_STRING "\nfind_dependency(Ogre)\nfind_dependency(Freetype)") diff --git a/ports/tesseract/CONTROL b/ports/tesseract/CONTROL index 715682442dbd54..edac6a35cafe0e 100644 --- a/ports/tesseract/CONTROL +++ b/ports/tesseract/CONTROL @@ -4,6 +4,7 @@ Port-Version: 6 Homepage: https://github.com/tesseract-ocr/tesseract Description: An OCR Engine that was developed at HP Labs between 1985 and 1995... and now at Google. Build-Depends: leptonica, libarchive +Supports: !(arm64&windows) & !(arm&windows) Feature: training-tools Description: build training tools diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index cf3dbfae391cd1..bc1e107f8ab808 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -362,8 +362,6 @@ gainput:x64-uwp=fail gasol:arm64-windows=fail gasol:arm-uwp=fail gasol:x64-uwp=fail -gdcm:arm64-windows=fail -gdcm:x64-linux = skip geos:arm-uwp=fail geos:x64-uwp=fail getopt:arm-uwp=fail @@ -1469,10 +1467,6 @@ teemo:arm64-windows=fail teemo:x64-osx=fail telnetpp:arm-uwp=fail telnetpp:x64-uwp=fail -tesseract:x64-windows=fail -tesseract:x64-windows-static=fail -tesseract:x86-windows=fail -tesseract:arm64-windows=fail tfhe:x86-windows=fail tfhe:x64-windows=fail tfhe:x64-windows-static=fail diff --git a/scripts/test_ports/vcpkg-ci-opencv/CONTROL b/scripts/test_ports/vcpkg-ci-opencv/CONTROL index 3456988cf41908..fffc5a1e0e56f5 100644 --- a/scripts/test_ports/vcpkg-ci-opencv/CONTROL +++ b/scripts/test_ports/vcpkg-ci-opencv/CONTROL @@ -3,4 +3,4 @@ Version: 1 Port-Version: 1 Homepage: https://github.com/microsoft/vcpkg Description: Port to force features of certain ports within CI -Build-Depends: opencv[nonfree,ade,contrib,dnn,eigen,ffmpeg,gdcm,ipp,jasper,jpeg,openexr,opengl,openmp,png,qt,sfm,tiff,vtk] +Build-Depends: opencv[core,nonfree,ade,contrib,dnn,eigen,ffmpeg,gdcm,ipp,jasper,jpeg,lapack,openexr,opengl,openmp,png,qt,sfm,tiff,vtk,webp](!uwp&!(arm64&windows)&!(arm&windows)), opencv[core,nonfree,ade,contrib,dnn,eigen,ffmpeg,jpeg,png,tiff,webp](uwp|(arm64&windows)|(arm&windows)) diff --git a/scripts/test_ports/vcpkg-ci-paraview/CONTROL b/scripts/test_ports/vcpkg-ci-paraview/CONTROL index d4816dbf383660..731c18beaf953a 100644 --- a/scripts/test_ports/vcpkg-ci-paraview/CONTROL +++ b/scripts/test_ports/vcpkg-ci-paraview/CONTROL @@ -3,4 +3,4 @@ Version: 1 Port-Version: 1 Homepage: https://github.com/microsoft/vcpkg Description: Port to force features of certain ports within CI -Build-Depends: paraview[vtkm, tools] +Build-Depends: paraview[core,vtkm,tools](!(x86&windows)), paraview[core,tools](x86&windows) From 3dbba148b8fde38efaf2aa21a967f5f3f9376f42 Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Mon, 14 Dec 2020 07:49:30 +0100 Subject: [PATCH 03/24] Update ports/opencv2/CONTROL Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> --- ports/opencv2/CONTROL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/opencv2/CONTROL b/ports/opencv2/CONTROL index c0c894d3a888a7..266a77f40e9854 100644 --- a/ports/opencv2/CONTROL +++ b/ports/opencv2/CONTROL @@ -1,6 +1,6 @@ Source: opencv2 Version: 2.4.13.7 -Port-Version: 4 +Port-Version: 5 Build-Depends: zlib Description: computer vision library, version 2 Default-Features: eigen, jpeg, png, tiff From ee7177878dc448832bfd9f48e01d6cad626d508e Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Mon, 14 Dec 2020 17:44:50 +0100 Subject: [PATCH 04/24] [opencv] fix regressions on uwp, accept failure on arm64 for now --- ports/opencv4/portfile.cmake | 14 ++++++++++++++ scripts/ci.baseline.txt | 1 + 2 files changed, 15 insertions(+) diff --git a/ports/opencv4/portfile.cmake b/ports/opencv4/portfile.cmake index e5023292dffe53..007ce8a26db024 100644 --- a/ports/opencv4/portfile.cmake +++ b/ports/opencv4/portfile.cmake @@ -66,6 +66,19 @@ if("dnn" IN_LIST FEATURES) endif() endif() +#OpenCV on arm on windows platform (non UWP) has serious problems right now. Disabling this module is not enough (remember to put the definition in vcpkg_configure_cmake) +#set(BUILD_opencv_surface_matching ON) +#if(VCPKG_TARGET_ARCHITECTURE MATCHES "arm") +# set(BUILD_opencv_surface_matching OFF) +# message(WARNING "The surface_matching module cannot be enabled on ARM architectures") +#endif() + +set(BUILD_opencv_gapi ON) +if(VCPKG_TARGET_IS_UWP) + set(BUILD_opencv_gapi OFF) + message(WARNING "The gapi module cannot be enabled on UWP platform") +endif() + set(WITH_IPP OFF) if("ipp" IN_LIST FEATURES) set(WITH_IPP ON) @@ -352,6 +365,7 @@ vcpkg_configure_cmake( -DBUILD_opencv_dnn=${BUILD_opencv_dnn} ###### The following modules are disabled for UWP -DBUILD_opencv_quality=${BUILD_opencv_quality} + -DBUILD_opencv_gapi=${DBUILD_opencv_gapi} ###### The following module is disabled because it's broken #https://github.com/opencv/opencv_contrib/issues/2307 -DBUILD_opencv_rgbd=OFF ###### Additional build flags diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index bc1e107f8ab808..5102ca803ab261 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -1065,6 +1065,7 @@ opencv3:x64-uwp = skip opencv3:x64-windows = skip opencv3:x64-windows-static = skip opencv3:x86-windows = skip +opencv4:arm64-windows = fail opendnp3:x64-uwp=fail opendnp3:arm-uwp=fail openexr:arm64-windows=fail From 9867a3885cf64273babd5a5c737589e85e8bfda2 Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Mon, 14 Dec 2020 17:46:31 +0100 Subject: [PATCH 05/24] Apply suggestions from code review Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> --- scripts/test_ports/vcpkg-ci-opencv/CONTROL | 2 +- scripts/test_ports/vcpkg-ci-paraview/CONTROL | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/test_ports/vcpkg-ci-opencv/CONTROL b/scripts/test_ports/vcpkg-ci-opencv/CONTROL index fffc5a1e0e56f5..f2677836c3bc08 100644 --- a/scripts/test_ports/vcpkg-ci-opencv/CONTROL +++ b/scripts/test_ports/vcpkg-ci-opencv/CONTROL @@ -1,6 +1,6 @@ Source: vcpkg-ci-opencv Version: 1 -Port-Version: 1 +Port-Version: 2 Homepage: https://github.com/microsoft/vcpkg Description: Port to force features of certain ports within CI Build-Depends: opencv[core,nonfree,ade,contrib,dnn,eigen,ffmpeg,gdcm,ipp,jasper,jpeg,lapack,openexr,opengl,openmp,png,qt,sfm,tiff,vtk,webp](!uwp&!(arm64&windows)&!(arm&windows)), opencv[core,nonfree,ade,contrib,dnn,eigen,ffmpeg,jpeg,png,tiff,webp](uwp|(arm64&windows)|(arm&windows)) diff --git a/scripts/test_ports/vcpkg-ci-paraview/CONTROL b/scripts/test_ports/vcpkg-ci-paraview/CONTROL index 731c18beaf953a..1377508422d025 100644 --- a/scripts/test_ports/vcpkg-ci-paraview/CONTROL +++ b/scripts/test_ports/vcpkg-ci-paraview/CONTROL @@ -1,6 +1,6 @@ Source: vcpkg-ci-paraview Version: 1 -Port-Version: 1 +Port-Version: 2 Homepage: https://github.com/microsoft/vcpkg Description: Port to force features of certain ports within CI Build-Depends: paraview[core,vtkm,tools](!(x86&windows)), paraview[core,tools](x86&windows) From e40a09396b33624f9508d8a66cff1705b7b53061 Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Tue, 15 Dec 2020 10:35:54 +0100 Subject: [PATCH 06/24] [opencv4] allow failures on all arm windows targets, both win32 and uwp --- scripts/ci.baseline.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index 5102ca803ab261..4e85866d108431 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -1066,6 +1066,7 @@ opencv3:x64-windows = skip opencv3:x64-windows-static = skip opencv3:x86-windows = skip opencv4:arm64-windows = fail +opencv4:arm-uwp = fail opendnp3:x64-uwp=fail opendnp3:arm-uwp=fail openexr:arm64-windows=fail From 3fdee1e80fd29b7292682eca2f16d332aca8db6b Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Wed, 16 Dec 2020 14:35:59 +0100 Subject: [PATCH 07/24] [OpenCV] update to v4.5, draft --- ports/opencv3/CONTROL | 3 +-- ports/opencv3/portfile.cmake | 18 +++++++++--------- ports/opencv4/CONTROL | 3 +-- ports/opencv4/portfile.cmake | 26 +++++++++++++------------- 4 files changed, 24 insertions(+), 26 deletions(-) diff --git a/ports/opencv3/CONTROL b/ports/opencv3/CONTROL index e82ad01ebe39e0..0b89bd2058881f 100644 --- a/ports/opencv3/CONTROL +++ b/ports/opencv3/CONTROL @@ -1,6 +1,5 @@ Source: opencv3 -Version: 3.4.10 -Port-Version: 5 +Version: 3.4.12 Build-Depends: zlib Homepage: https://github.com/opencv/opencv Description: computer vision library diff --git a/ports/opencv3/portfile.cmake b/ports/opencv3/portfile.cmake index eff881a240efde..2cce2118b30d77 100644 --- a/ports/opencv3/portfile.cmake +++ b/ports/opencv3/portfile.cmake @@ -6,20 +6,20 @@ if (EXISTS "${CURRENT_INSTALLED_DIR}/share/opencv4") message(FATAL_ERROR "OpenCV 4 is installed, please uninstall and try again:\n vcpkg remove opencv4") endif() -set(OPENCV_VERSION "3.4.10") +set(OPENCV_VERSION "3.4.12") vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO opencv/opencv REF ${OPENCV_VERSION} - SHA512 7ccdc7fef26436b2f643cce2a13c9f9f77e56d3fd0340117419df3c1665ca12416277b626cce3c056fdc14899805bbe9ece391f11d28c6adea716d47ce8894bc + SHA512 e69ff4869a8128b7d2a0537d198ec7f287fb821a8965df26339bec662da1888860941f50a269db7693309b9861f986c219288bb5856de76a6c7bc4c0a7026bee HEAD_REF master PATCHES - 0001-disable-downloading.patch - 0002-install-options.patch - 0003-force-package-requirements.patch - 0005-fix-vtk9.patch - 0009-fix-uwp.patch + #0001-disable-downloading.patch + #0002-install-options.patch + #0003-force-package-requirements.patch + #0005-fix-vtk9.patch + #0009-fix-uwp.patch ) file(REMOVE "${SOURCE_PATH}/cmake/FindCUDNN.cmake") @@ -101,10 +101,10 @@ if("contrib" IN_LIST FEATURES) OUT_SOURCE_PATH CONTRIB_SOURCE_PATH REPO opencv/opencv_contrib REF ${OPENCV_VERSION} - SHA512 70b4ecfaf9881390ad826a2aba24cced8514a680965ec7151df9926082fff53364bbe6be36458bb9ff466fda6f6f6ca2174eeac94c10a6bada989f07ed1c4da1 + SHA512 0191b1d49d5a50195ed94951c570da03dc33677b682e61a65b34d40f355c36a58441034730ea7eca78dcb4af4c821983754250f93fdf3adb2b4a20e71806eb03 HEAD_REF master PATCHES - 0004-add-missing-stdexcept-include.patch + #0004-add-missing-stdexcept-include.patch ) set(BUILD_WITH_CONTRIB_FLAG "-DOPENCV_EXTRA_MODULES_PATH=${CONTRIB_SOURCE_PATH}/modules") diff --git a/ports/opencv4/CONTROL b/ports/opencv4/CONTROL index cde0921dfd1b69..7a05ede8c4f320 100644 --- a/ports/opencv4/CONTROL +++ b/ports/opencv4/CONTROL @@ -1,6 +1,5 @@ Source: opencv4 -Version: 4.3.0 -Port-Version: 5 +Version: 4.5.0 Build-Depends: zlib Homepage: https://github.com/opencv/opencv Description: computer vision library diff --git a/ports/opencv4/portfile.cmake b/ports/opencv4/portfile.cmake index 007ce8a26db024..6c66e7bad1a2b7 100644 --- a/ports/opencv4/portfile.cmake +++ b/ports/opencv4/portfile.cmake @@ -6,23 +6,23 @@ if (EXISTS "${CURRENT_INSTALLED_DIR}/share/opencv3") message(FATAL_ERROR "OpenCV 3 is installed, please uninstall and try again:\n vcpkg remove opencv3") endif() -set(OPENCV_VERSION "4.3.0") +set(OPENCV_VERSION "4.5.0") vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO opencv/opencv REF ${OPENCV_VERSION} - SHA512 ac22b41fffa3e3138701fa0df0d19900b3ce72e168f4478ecdc593c5c9fd004b4b1b26612d62c25b681db99a8720db7a11b5b224e576e595624965fa79b0f383 + SHA512 c34100f3f3fe45f2115975350d23288a3badb32864ba0cbd32512387416d1cf10d16d3ef5f3d089d6a1c2be587d788d33997513fc015dbf7d774a622f2d3811f HEAD_REF master PATCHES - 0001-disable-downloading.patch - 0002-install-options.patch - 0003-force-package-requirements.patch - 0004-fix-policy-CMP0057.patch - 0006-jpeg2000_getref.patch - 0008-fix-vtk9.patch - 0009-fix-uwp.patch - 0010-fix-interface_link_libraries.patch # Remove this patch when the next update + #0001-disable-downloading.patch + #0002-install-options.patch + #0003-force-package-requirements.patch + #0004-fix-policy-CMP0057.patch + #0006-jpeg2000_getref.patch + #0008-fix-vtk9.patch + #0009-fix-uwp.patch + #0010-fix-interface_link_libraries.patch # Remove this patch when the next update ) file(REMOVE "${SOURCE_PATH}/cmake/FindCUDNN.cmake") @@ -135,11 +135,11 @@ if("contrib" IN_LIST FEATURES) OUT_SOURCE_PATH CONTRIB_SOURCE_PATH REPO opencv/opencv_contrib REF ${OPENCV_VERSION} - SHA512 cfeda06a9f86ccaedbca9521c35bf685c3d8d3a182fb943f9378a7ecd1949d6e2e9df1673f0e3e9686840ca4c9e5a8e8cf2ac962a33b6e1f88f8278abd8c37e5 + SHA512 b2ae72e920c78472fd677281b8dd6f25872399d8ade97b0d3b0fc50bbabea8c00ea849d87bfb311ac148cef663481d0c89c0f6875578c052c1cc7ddcd70e6e17 HEAD_REF master PATCHES - 0005-add-missing-stdexcept-include.patch - 0007-fix-vtk9-contrib.patch + #0005-add-missing-stdexcept-include.patch + #0007-fix-vtk9-contrib.patch ) set(BUILD_WITH_CONTRIB_FLAG "-DOPENCV_EXTRA_MODULES_PATH=${CONTRIB_SOURCE_PATH}/modules") From a0c12dcd7483c0a9205f0d58898e632f6c57d429 Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Wed, 16 Dec 2020 14:46:17 +0100 Subject: [PATCH 08/24] Restore CI tests on arm architectures, they will have to work! --- scripts/ci.baseline.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index 4e85866d108431..bc1e107f8ab808 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -1065,8 +1065,6 @@ opencv3:x64-uwp = skip opencv3:x64-windows = skip opencv3:x64-windows-static = skip opencv3:x86-windows = skip -opencv4:arm64-windows = fail -opencv4:arm-uwp = fail opendnp3:x64-uwp=fail opendnp3:arm-uwp=fail openexr:arm64-windows=fail From 68e8bcdae4b72ae5d8e6815ee3a41e2e7c41de07 Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Mon, 21 Dec 2020 22:29:38 +0000 Subject: [PATCH 09/24] adopts hints from #15180 --- .gitignore | 1 + ports/libarchive/portfile.cmake | 13 +++++++++++++ ports/tesseract/portfile.cmake | 8 +------- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index d12fd1363f3bab..1ec30e20520556 100644 --- a/.gitignore +++ b/.gitignore @@ -327,3 +327,4 @@ prefab/ # Codespaces ################### pythonenv3.8/ +.venv/ diff --git a/ports/libarchive/portfile.cmake b/ports/libarchive/portfile.cmake index df7b6ce779d59f..285f48f7a1140f 100644 --- a/ports/libarchive/portfile.cmake +++ b/ports/libarchive/portfile.cmake @@ -64,6 +64,19 @@ vcpkg_configure_cmake( ) vcpkg_install_cmake() + +set(LIBARCHIVE_CONFIG "include(CMakeFindDependencyMacro)\n") +if(FEATURES MATCHES "lz4") + set(LIBARCHIVE_CONFIG "${LIBARCHIVE_CONFIG}find_dependency(lz4)\n") +endif() +if(FEATURES MATCHES "lzma") + set(LIBARCHIVE_CONFIG "${LIBARCHIVE_CONFIG}find_dependency(LibLZMA)\n") +endif() +if(FEATURES MATCHES "zstd") + set(LIBARCHIVE_CONFIG "${LIBARCHIVE_CONFIG}find_dependency(zstd)\n") +endif() +file(WRITE ${CURRENT_PACKAGES_DIR}/share/libarchive/libarchiveConfig.cmake "${LIBARCHIVE_CONFIG}") + vcpkg_copy_pdbs() foreach(_feature IN LISTS FEATURE_OPTIONS) diff --git a/ports/tesseract/portfile.cmake b/ports/tesseract/portfile.cmake index 55ee234e6f8d8f..b52086c11bcb45 100644 --- a/ports/tesseract/portfile.cmake +++ b/ports/tesseract/portfile.cmake @@ -42,13 +42,7 @@ vcpkg_fixup_cmake_targets(CONFIG_PATH cmake) file(READ ${CURRENT_PACKAGES_DIR}/share/tesseract/TesseractConfig.cmake TESSERACT_CONFIG) string(REPLACE "find_package(Leptonica REQUIRED)" "find_package(Leptonica REQUIRED) -find_package(OpenSSL REQUIRED) -find_package(ZLIB REQUIRED) -find_package(BZip2 REQUIRED) -find_package(LibXml2 REQUIRED) -find_package(zstd REQUIRED) -find_package(lz4 REQUIRED) -find_package(LibLZMA REQUIRED)" TESSERACT_CONFIG "${TESSERACT_CONFIG}") +find_package(libarchive REQUIRED)" TESSERACT_CONFIG "${TESSERACT_CONFIG}") file(WRITE ${CURRENT_PACKAGES_DIR}/share/tesseract/TesseractConfig.cmake "${TESSERACT_CONFIG}") vcpkg_copy_tools(TOOL_NAMES tesseract AUTO_CLEAN) From 16e1defe28e68ca6b5f86d833fb4732119e408fd Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Mon, 21 Dec 2020 22:36:28 +0000 Subject: [PATCH 10/24] [libarchive] bump control version --- ports/libarchive/CONTROL | 2 +- ports/libarchive/portfile.cmake | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ports/libarchive/CONTROL b/ports/libarchive/CONTROL index e15f1da44e99cd..a16b6179e27b2f 100644 --- a/ports/libarchive/CONTROL +++ b/ports/libarchive/CONTROL @@ -1,6 +1,6 @@ Source: libarchive Version: 3.4.3 -Port-Version: 2 +Port-Version: 3 Homepage: https://github.com/libarchive/libarchive Description: Library for reading and writing streaming archives Build-Depends: zlib diff --git a/ports/libarchive/portfile.cmake b/ports/libarchive/portfile.cmake index 285f48f7a1140f..22a4c34f8c4940 100644 --- a/ports/libarchive/portfile.cmake +++ b/ports/libarchive/portfile.cmake @@ -75,6 +75,15 @@ endif() if(FEATURES MATCHES "zstd") set(LIBARCHIVE_CONFIG "${LIBARCHIVE_CONFIG}find_dependency(zstd)\n") endif() +if(FEATURES MATCHES "bzip2") + set(LIBARCHIVE_CONFIG "${LIBARCHIVE_CONFIG}find_dependency(BZip2)\n") +endif() +if(FEATURES MATCHES "libxml2") + set(LIBARCHIVE_CONFIG "${LIBARCHIVE_CONFIG}find_dependency(LibXml2)\n") +endif() +if(FEATURES MATCHES "openssl") + set(LIBARCHIVE_CONFIG "${LIBARCHIVE_CONFIG}find_dependency(OpenSSL)\n") +endif() file(WRITE ${CURRENT_PACKAGES_DIR}/share/libarchive/libarchiveConfig.cmake "${LIBARCHIVE_CONFIG}") vcpkg_copy_pdbs() From 69debb5559f41da80aac15adba40fb6d345c92ac Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Wed, 23 Dec 2020 13:44:01 +0100 Subject: [PATCH 11/24] [libarchive] use vcpkg-cmake-wrapper instead of a custom libarchiveConfig, since it is vcpkg-provided and not port-provided --- ports/libarchive/portfile.cmake | 23 +----------- ...per.cmake => vcpkg-cmake-wrapper.cmake.in} | 37 ++++++++++++++----- 2 files changed, 29 insertions(+), 31 deletions(-) rename ports/libarchive/{vcpkg-cmake-wrapper.cmake => vcpkg-cmake-wrapper.cmake.in} (80%) diff --git a/ports/libarchive/portfile.cmake b/ports/libarchive/portfile.cmake index 22a4c34f8c4940..e9ed4232e6d998 100644 --- a/ports/libarchive/portfile.cmake +++ b/ports/libarchive/portfile.cmake @@ -65,27 +65,6 @@ vcpkg_configure_cmake( vcpkg_install_cmake() -set(LIBARCHIVE_CONFIG "include(CMakeFindDependencyMacro)\n") -if(FEATURES MATCHES "lz4") - set(LIBARCHIVE_CONFIG "${LIBARCHIVE_CONFIG}find_dependency(lz4)\n") -endif() -if(FEATURES MATCHES "lzma") - set(LIBARCHIVE_CONFIG "${LIBARCHIVE_CONFIG}find_dependency(LibLZMA)\n") -endif() -if(FEATURES MATCHES "zstd") - set(LIBARCHIVE_CONFIG "${LIBARCHIVE_CONFIG}find_dependency(zstd)\n") -endif() -if(FEATURES MATCHES "bzip2") - set(LIBARCHIVE_CONFIG "${LIBARCHIVE_CONFIG}find_dependency(BZip2)\n") -endif() -if(FEATURES MATCHES "libxml2") - set(LIBARCHIVE_CONFIG "${LIBARCHIVE_CONFIG}find_dependency(LibXml2)\n") -endif() -if(FEATURES MATCHES "openssl") - set(LIBARCHIVE_CONFIG "${LIBARCHIVE_CONFIG}find_dependency(OpenSSL)\n") -endif() -file(WRITE ${CURRENT_PACKAGES_DIR}/share/libarchive/libarchiveConfig.cmake "${LIBARCHIVE_CONFIG}") - vcpkg_copy_pdbs() foreach(_feature IN LISTS FEATURE_OPTIONS) @@ -97,7 +76,7 @@ foreach(_feature IN LISTS FEATURE_OPTIONS) list(GET _feature 1 _feature_status) set(${_feature_name} ${_feature_status}) endforeach() -configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY) +configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) foreach(HEADER ${CURRENT_PACKAGES_DIR}/include/archive.h ${CURRENT_PACKAGES_DIR}/include/archive_entry.h) file(READ ${HEADER} CONTENTS) diff --git a/ports/libarchive/vcpkg-cmake-wrapper.cmake b/ports/libarchive/vcpkg-cmake-wrapper.cmake.in similarity index 80% rename from ports/libarchive/vcpkg-cmake-wrapper.cmake rename to ports/libarchive/vcpkg-cmake-wrapper.cmake.in index 006dde98dd5d87..a68b4b96c82cb6 100644 --- a/ports/libarchive/vcpkg-cmake-wrapper.cmake +++ b/ports/libarchive/vcpkg-cmake-wrapper.cmake.in @@ -1,29 +1,50 @@ +include(CMakeFindDependencyMacro) + +if(@ENABLE_ZLIB@) + find_dependency(ZLIB) +endif() +if(@ENABLE_BZip2@) + find_dependency(BZip2) +endif() +if(@ENABLE_LIBXML2@) + find_dependency(LibXml2) +endif() +if(@ENABLE_LZ4@) + find_dependency(lz4) +endif() +if(@ENABLE_LZMA@) + find_dependency(LibLZMA) +endif() +if(@ENABLE_ZSTD@) + find_dependency(zstd) +endif() +if(@ENABLE_OPENSSL@) + find_dependency(OpenSSL) +endif() +if(@ENABLE_LZO@) + find_library(LZO_LIBRARY_DEBUG NAMES lzo2d lzo2 NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" NO_DEFAULT_PATH) + find_library(LZO_LIBRARY_RELEASE NAMES lzo2 NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH) +endif() + _find_package(${ARGS}) if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static") if(@ENABLE_ZLIB@) - find_package(ZLIB REQUIRED) list(APPEND LibArchive_LIBRARIES ZLIB::ZLIB) endif() if(@ENABLE_BZip2@) - find_package(BZip2 REQUIRED) list(APPEND LibArchive_LIBRARIES BZip2::BZip2) endif() if(@ENABLE_LIBXML2@) - find_package(LibXml2 REQUIRED) list(APPEND LibArchive_LIBRARIES LibXml2::LibXml2) endif() if(@ENABLE_LZ4@) - find_package(lz4 REQUIRED) list(APPEND LibArchive_LIBRARIES lz4::lz4) endif() if(@ENABLE_LZMA@) - find_package(LibLZMA REQUIRED) list(APPEND LibArchive_LIBRARIES LibLZMA::LibLZMA) endif() if(@ENABLE_LZO@) - find_library(LZO_LIBRARY_DEBUG NAMES lzo2d lzo2 NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" NO_DEFAULT_PATH) - find_library(LZO_LIBRARY_RELEASE NAMES lzo2 NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH) if(LZO_LIBRARY_RELEASE) list(APPEND LibArchive_LIBRARIES optimized ${LZO_LIBRARY_RELEASE}) endif() @@ -32,7 +53,6 @@ if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static") endif() endif() if(@ENABLE_ZSTD@) - find_package(zstd CONFIG REQUIRED) if(TARGET zstd::libzstd_shared) list(APPEND LibArchive_LIBRARIES zstd::libzstd_shared) else(TARGET zstd::libzstd_shared) @@ -40,7 +60,6 @@ if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static") endif(TARGET zstd::libzstd_shared) endif() if(@ENABLE_OPENSSL@) - find_package(OpenSSL REQUIRED) list(APPEND LibArchive_LIBRARIES OpenSSL::Crypto) endif() From 5948420754a3303f3e1f27652aef4e1da9cb375a Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Wed, 23 Dec 2020 15:36:47 +0100 Subject: [PATCH 12/24] enable features to be visible in parent scope --- ports/libarchive/CONTROL | 2 +- ports/libarchive/vcpkg-cmake-wrapper.cmake.in | 4 +- scripts/cmake/vcpkg_check_features.cmake | 44 ++++++++++--------- 3 files changed, 26 insertions(+), 24 deletions(-) diff --git a/ports/libarchive/CONTROL b/ports/libarchive/CONTROL index a16b6179e27b2f..3a76ed1a8446cd 100644 --- a/ports/libarchive/CONTROL +++ b/ports/libarchive/CONTROL @@ -1,6 +1,6 @@ Source: libarchive Version: 3.4.3 -Port-Version: 3 +Port-Version: 4 Homepage: https://github.com/libarchive/libarchive Description: Library for reading and writing streaming archives Build-Depends: zlib diff --git a/ports/libarchive/vcpkg-cmake-wrapper.cmake.in b/ports/libarchive/vcpkg-cmake-wrapper.cmake.in index a68b4b96c82cb6..2e0ef0f9c9a23f 100644 --- a/ports/libarchive/vcpkg-cmake-wrapper.cmake.in +++ b/ports/libarchive/vcpkg-cmake-wrapper.cmake.in @@ -1,3 +1,5 @@ +_find_package(${ARGS}) + include(CMakeFindDependencyMacro) if(@ENABLE_ZLIB@) @@ -26,8 +28,6 @@ if(@ENABLE_LZO@) find_library(LZO_LIBRARY_RELEASE NAMES lzo2 NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH) endif() -_find_package(${ARGS}) - if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static") if(@ENABLE_ZLIB@) list(APPEND LibArchive_LIBRARIES ZLIB::ZLIB) diff --git a/scripts/cmake/vcpkg_check_features.cmake b/scripts/cmake/vcpkg_check_features.cmake index c22903eaaf7764..be4e1265c69bf8 100644 --- a/scripts/cmake/vcpkg_check_features.cmake +++ b/scripts/cmake/vcpkg_check_features.cmake @@ -5,7 +5,7 @@ Check if one or more features are a part of a package installation. ## Usage ```cmake vcpkg_check_features( - OUT_FEATURE_OPTIONS + OUT_FEATURE_OPTIONS [FEATURES [ ] @@ -16,27 +16,27 @@ vcpkg_check_features( ...] ) ``` -`vcpkg_check_features()` accepts these parameters: +`vcpkg_check_features()` accepts these parameters: -* `OUT_FEATURE_OPTIONS`: - An output variable, the function will clear the variable passed to `OUT_FEATURE_OPTIONS` +* `OUT_FEATURE_OPTIONS`: + An output variable, the function will clear the variable passed to `OUT_FEATURE_OPTIONS` and then set it to contain a list of option definitions (`-D=ON|OFF`). - + This should be set to `FEATURE_OPTIONS` by convention. - -* `FEATURES`: - A list of (`FEATURE_NAME`, `OPTION_NAME`) pairs. - For each `FEATURE_NAME` a definition is added to `OUT_FEATURE_OPTIONS` in the form of: - + +* `FEATURES`: + A list of (`FEATURE_NAME`, `OPTION_NAME`) pairs. + For each `FEATURE_NAME` a definition is added to `OUT_FEATURE_OPTIONS` in the form of: + * `-D=ON`, if a feature is specified for installation, - * `-D=OFF`, otherwise. + * `-D=OFF`, otherwise. + +* `INVERTED_FEATURES`: + A list of (`FEATURE_NAME`, `OPTION_NAME`) pairs, uses reversed logic from `FEATURES`. + For each `FEATURE_NAME` a definition is added to `OUT_FEATURE_OPTIONS` in the form of: -* `INVERTED_FEATURES`: - A list of (`FEATURE_NAME`, `OPTION_NAME`) pairs, uses reversed logic from `FEATURES`. - For each `FEATURE_NAME` a definition is added to `OUT_FEATURE_OPTIONS` in the form of: - * `-D=OFF`, if a feature is specified for installation, - * `-D=ON`, otherwise. + * `-D=ON`, otherwise. ## Notes @@ -45,8 +45,8 @@ The `FEATURES` name parameter can be omitted if no `INVERTED_FEATURES` are used. At least one (`FEATURE_NAME`, `OPTION_NAME`) pair must be passed to the function call. -Arguments passed to `FEATURES` and `INVERTED_FEATURES` are not validated to prevent duplication. -If the same (`FEATURE_NAME`, `OPTION_NAME`) pair is passed to both lists, +Arguments passed to `FEATURES` and `INVERTED_FEATURES` are not validated to prevent duplication. +If the same (`FEATURE_NAME`, `OPTION_NAME`) pair is passed to both lists, two conflicting definitions are added to `OUT_FEATURE_OPTIONS`. @@ -114,7 +114,7 @@ vcpkg_configure_cmake( # Expands to "-DWITH_CUDA=ON; -DBUILD_CUDA=ON; -DBUILD_GPU=ON" ${FEATURE_OPTIONS} ) -``` +``` ### Example 4: Use regular and inverted features @@ -136,7 +136,7 @@ vcpkg_configure_cmake( # Expands to "-DWITH_TBB=ON; -DROCKSDB_IGNORE_PACKAGE_TBB=OFF" ${FEATURE_OPTIONS} ) -``` +``` ## Examples in portfiles @@ -172,8 +172,10 @@ function(vcpkg_check_features) set(_vcf_FEATURE_VARIABLE ${_vcf_ARG}) if(${_vcf_FEATURE_NAME} IN_LIST FEATURES) list(APPEND _vcf_FEATURE_OPTIONS "-D${_vcf_FEATURE_VARIABLE}=${_set_if}") + set(${_vcf_FEATURE_VARIABLE} "${_set_if}" PARENT_SCOPE) else() list(APPEND _vcf_FEATURE_OPTIONS "-D${_vcf_FEATURE_VARIABLE}=${_set_else}") + set(${_vcf_FEATURE_VARIABLE} "${_set_else}" PARENT_SCOPE) endif() set(_vcf_IS_FEATURE_NAME_ARG ON) endif() @@ -185,7 +187,7 @@ function(vcpkg_check_features) if (DEFINED _vcf_FEATURES OR DEFINED _vcf_INVERTED_FEATURES) _check_features(_vcf_FEATURES ON OFF) _check_features(_vcf_INVERTED_FEATURES OFF ON) - else() + else() # Skip arguments that correspond to OUT_FEATURE_OPTIONS and its value. list(SUBLIST ARGN 2 -1 _vcf_ARGN) _check_features(_vcf_ARGN ON OFF) From d82d626626dad8a359d3e1b10435a96862422d50 Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Wed, 23 Dec 2020 15:40:38 +0100 Subject: [PATCH 13/24] apply documentation fix from CI --- docs/maintainers/vcpkg_check_features.md | 40 ++++++++++++------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/docs/maintainers/vcpkg_check_features.md b/docs/maintainers/vcpkg_check_features.md index fcf313bfdc6b0b..6024c2a0219b8c 100644 --- a/docs/maintainers/vcpkg_check_features.md +++ b/docs/maintainers/vcpkg_check_features.md @@ -4,7 +4,7 @@ Check if one or more features are a part of a package installation. ## Usage ```cmake vcpkg_check_features( - OUT_FEATURE_OPTIONS + OUT_FEATURE_OPTIONS [FEATURES [ ] @@ -15,27 +15,27 @@ vcpkg_check_features( ...] ) ``` -`vcpkg_check_features()` accepts these parameters: +`vcpkg_check_features()` accepts these parameters: -* `OUT_FEATURE_OPTIONS`: - An output variable, the function will clear the variable passed to `OUT_FEATURE_OPTIONS` +* `OUT_FEATURE_OPTIONS`: + An output variable, the function will clear the variable passed to `OUT_FEATURE_OPTIONS` and then set it to contain a list of option definitions (`-D=ON|OFF`). - + This should be set to `FEATURE_OPTIONS` by convention. - -* `FEATURES`: - A list of (`FEATURE_NAME`, `OPTION_NAME`) pairs. - For each `FEATURE_NAME` a definition is added to `OUT_FEATURE_OPTIONS` in the form of: - + +* `FEATURES`: + A list of (`FEATURE_NAME`, `OPTION_NAME`) pairs. + For each `FEATURE_NAME` a definition is added to `OUT_FEATURE_OPTIONS` in the form of: + * `-D=ON`, if a feature is specified for installation, - * `-D=OFF`, otherwise. + * `-D=OFF`, otherwise. + +* `INVERTED_FEATURES`: + A list of (`FEATURE_NAME`, `OPTION_NAME`) pairs, uses reversed logic from `FEATURES`. + For each `FEATURE_NAME` a definition is added to `OUT_FEATURE_OPTIONS` in the form of: -* `INVERTED_FEATURES`: - A list of (`FEATURE_NAME`, `OPTION_NAME`) pairs, uses reversed logic from `FEATURES`. - For each `FEATURE_NAME` a definition is added to `OUT_FEATURE_OPTIONS` in the form of: - * `-D=OFF`, if a feature is specified for installation, - * `-D=ON`, otherwise. + * `-D=ON`, otherwise. ## Notes @@ -44,8 +44,8 @@ The `FEATURES` name parameter can be omitted if no `INVERTED_FEATURES` are used. At least one (`FEATURE_NAME`, `OPTION_NAME`) pair must be passed to the function call. -Arguments passed to `FEATURES` and `INVERTED_FEATURES` are not validated to prevent duplication. -If the same (`FEATURE_NAME`, `OPTION_NAME`) pair is passed to both lists, +Arguments passed to `FEATURES` and `INVERTED_FEATURES` are not validated to prevent duplication. +If the same (`FEATURE_NAME`, `OPTION_NAME`) pair is passed to both lists, two conflicting definitions are added to `OUT_FEATURE_OPTIONS`. @@ -113,7 +113,7 @@ vcpkg_configure_cmake( # Expands to "-DWITH_CUDA=ON; -DBUILD_CUDA=ON; -DBUILD_GPU=ON" ${FEATURE_OPTIONS} ) -``` +``` ### Example 4: Use regular and inverted features @@ -135,7 +135,7 @@ vcpkg_configure_cmake( # Expands to "-DWITH_TBB=ON; -DROCKSDB_IGNORE_PACKAGE_TBB=OFF" ${FEATURE_OPTIONS} ) -``` +``` ## Examples in portfiles From 8ea2dd0ab258609d94444b564fe98cbdb215d7b0 Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Wed, 23 Dec 2020 18:49:17 +0100 Subject: [PATCH 14/24] [libarchive] remove unnecessary lines in portfile --- ports/libarchive/CONTROL | 2 +- ports/libarchive/portfile.cmake | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/ports/libarchive/CONTROL b/ports/libarchive/CONTROL index 3a76ed1a8446cd..a16b6179e27b2f 100644 --- a/ports/libarchive/CONTROL +++ b/ports/libarchive/CONTROL @@ -1,6 +1,6 @@ Source: libarchive Version: 3.4.3 -Port-Version: 4 +Port-Version: 3 Homepage: https://github.com/libarchive/libarchive Description: Library for reading and writing streaming archives Build-Depends: zlib diff --git a/ports/libarchive/portfile.cmake b/ports/libarchive/portfile.cmake index e9ed4232e6d998..4e6a5fd852d892 100644 --- a/ports/libarchive/portfile.cmake +++ b/ports/libarchive/portfile.cmake @@ -67,17 +67,10 @@ vcpkg_install_cmake() vcpkg_copy_pdbs() -foreach(_feature IN LISTS FEATURE_OPTIONS) - string(REPLACE "-D" "" _feature "${_feature}") - string(REPLACE "=" ";" _feature "${_feature}") - string(REPLACE "ON" "1" _feature "${_feature}") - string(REPLACE "OFF" "0" _feature "${_feature}") - list(GET _feature 0 _feature_name) - list(GET _feature 1 _feature_status) - set(${_feature_name} ${_feature_status}) -endforeach() configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY) + file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + foreach(HEADER ${CURRENT_PACKAGES_DIR}/include/archive.h ${CURRENT_PACKAGES_DIR}/include/archive_entry.h) file(READ ${HEADER} CONTENTS) string(REPLACE "(!defined LIBARCHIVE_STATIC)" "0" CONTENTS "${CONTENTS}") From 4e57d35b3684b8c6836ebe5c44decc485042fb9c Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Sun, 17 Jan 2021 22:39:25 +0100 Subject: [PATCH 15/24] update patches --- ports/opencv3/0002-install-options.patch | 130 ++--- .../0004-add-missing-stdexcept-include.patch | 24 +- ports/opencv3/0005-fix-vtk9.patch | 2 +- ports/opencv3/0009-fix-uwp.patch | 2 +- ports/opencv3/portfile.cmake | 12 +- ports/opencv4/0002-install-options.patch | 14 +- .../0003-force-package-requirements.patch | 12 +- ports/opencv4/0004-fix-policy-CMP0057.patch | 4 +- .../0005-add-missing-stdexcept-include.patch | 24 +- ports/opencv4/0006-jpeg2000_getref.patch | 33 -- ports/opencv4/0007-fix-vtk9-contrib.patch | 470 ------------------ ports/opencv4/0008-fix-vtk9.patch | 41 -- ports/opencv4/0009-fix-uwp.patch | 4 +- ports/opencv4/portfile.cmake | 17 +- 14 files changed, 121 insertions(+), 668 deletions(-) delete mode 100644 ports/opencv4/0006-jpeg2000_getref.patch delete mode 100644 ports/opencv4/0007-fix-vtk9-contrib.patch delete mode 100644 ports/opencv4/0008-fix-vtk9.patch diff --git a/ports/opencv3/0002-install-options.patch b/ports/opencv3/0002-install-options.patch index 4f0197f9d23304..1657579fa76960 100644 --- a/ports/opencv3/0002-install-options.patch +++ b/ports/opencv3/0002-install-options.patch @@ -1,65 +1,65 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 614baa2..1e930a3 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -601,7 +601,7 @@ endif() - ocv_cmake_hook(POST_CMAKE_BUILD_OPTIONS) - - # --- Python Support --- --if(NOT IOS) -+if(0) - include(cmake/OpenCVDetectPython.cmake) - endif() - -diff --git a/cmake/OpenCVCompilerOptions.cmake b/cmake/OpenCVCompilerOptions.cmake -index 476156f..4b27b6a 100644 ---- a/cmake/OpenCVCompilerOptions.cmake -+++ b/cmake/OpenCVCompilerOptions.cmake -@@ -261,7 +261,6 @@ if(MSVC) - #endif() - - if(BUILD_WITH_DEBUG_INFO) -- set(OPENCV_EXTRA_FLAGS_RELEASE "${OPENCV_EXTRA_FLAGS_RELEASE} /Zi") - set(OPENCV_EXTRA_EXE_LINKER_FLAGS_RELEASE "${OPENCV_EXTRA_EXE_LINKER_FLAGS_RELEASE} /debug") - set(OPENCV_EXTRA_SHARED_LINKER_FLAGS_RELEASE "${OPENCV_EXTRA_SHARED_LINKER_FLAGS_RELEASE} /debug") - endif() -diff --git a/cmake/OpenCVGenConfig.cmake b/cmake/OpenCVGenConfig.cmake -index c7f9fc2..84bd302 100644 ---- a/cmake/OpenCVGenConfig.cmake -+++ b/cmake/OpenCVGenConfig.cmake -@@ -109,11 +109,11 @@ function(ocv_gen_config TMP_DIR NESTED_PATH ROOT_NAME) - endif() - endfunction() - --if((CMAKE_HOST_SYSTEM_NAME MATCHES "Linux" OR UNIX) AND NOT ANDROID) -+if(TRUE) - ocv_gen_config("${CMAKE_BINARY_DIR}/unix-install" "" "") - endif() - --if(ANDROID) -+if(FALSE) - ocv_gen_config("${CMAKE_BINARY_DIR}/unix-install" "abi-${ANDROID_NDK_ABI_NAME}" "OpenCVConfig.root-ANDROID.cmake.in") - install(FILES "${OpenCV_SOURCE_DIR}/platforms/android/android.toolchain.cmake" DESTINATION "${OPENCV_CONFIG_INSTALL_PATH}" COMPONENT dev) - endif() -@@ -121,7 +121,7 @@ endif() - # -------------------------------------------------------------------------------------------- - # Part 3/3: ${BIN_DIR}/win-install/OpenCVConfig.cmake -> For use within binary installers/packages - # -------------------------------------------------------------------------------------------- --if(WIN32) -+if(0) - if(CMAKE_HOST_SYSTEM_NAME MATCHES Windows AND NOT OPENCV_SKIP_CMAKE_ROOT_CONFIG) - ocv_gen_config("${CMAKE_BINARY_DIR}/win-install" - "${OPENCV_INSTALL_BINARIES_PREFIX}${OPENCV_INSTALL_BINARIES_SUFFIX}" -diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt -index 1f0d720..0bb1ff7 100644 ---- a/data/CMakeLists.txt -+++ b/data/CMakeLists.txt -@@ -1,8 +1,6 @@ - file(GLOB HAAR_CASCADES haarcascades/*.xml) - file(GLOB LBP_CASCADES lbpcascades/*.xml) - --install(FILES ${HAAR_CASCADES} DESTINATION ${OPENCV_OTHER_INSTALL_PATH}/haarcascades COMPONENT libs) --install(FILES ${LBP_CASCADES} DESTINATION ${OPENCV_OTHER_INSTALL_PATH}/lbpcascades COMPONENT libs) - - if(INSTALL_TESTS AND OPENCV_TEST_DATA_PATH) - install(DIRECTORY "${OPENCV_TEST_DATA_PATH}/" DESTINATION "${OPENCV_TEST_DATA_INSTALL_PATH}" COMPONENT "tests") +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d143a7a..15eb053 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -602,7 +602,7 @@ endif() + ocv_cmake_hook(POST_CMAKE_BUILD_OPTIONS) + + # --- Python Support --- +-if(NOT IOS) ++if(FALSE) + include(cmake/OpenCVDetectPython.cmake) + endif() + +diff --git a/cmake/OpenCVCompilerOptions.cmake b/cmake/OpenCVCompilerOptions.cmake +index 9ac671d..b14ce09 100644 +--- a/cmake/OpenCVCompilerOptions.cmake ++++ b/cmake/OpenCVCompilerOptions.cmake +@@ -263,7 +263,6 @@ if(MSVC) + #endif() + + if(BUILD_WITH_DEBUG_INFO) +- set(OPENCV_EXTRA_FLAGS_RELEASE "${OPENCV_EXTRA_FLAGS_RELEASE} /Zi") + set(OPENCV_EXTRA_EXE_LINKER_FLAGS_RELEASE "${OPENCV_EXTRA_EXE_LINKER_FLAGS_RELEASE} /debug") + set(OPENCV_EXTRA_SHARED_LINKER_FLAGS_RELEASE "${OPENCV_EXTRA_SHARED_LINKER_FLAGS_RELEASE} /debug") + endif() +diff --git a/cmake/OpenCVGenConfig.cmake b/cmake/OpenCVGenConfig.cmake +index c7f9fc2..a1f657b 100644 +--- a/cmake/OpenCVGenConfig.cmake ++++ b/cmake/OpenCVGenConfig.cmake +@@ -109,11 +109,11 @@ function(ocv_gen_config TMP_DIR NESTED_PATH ROOT_NAME) + endif() + endfunction() + +-if((CMAKE_HOST_SYSTEM_NAME MATCHES "Linux" OR UNIX) AND NOT ANDROID) ++if(TRUE) + ocv_gen_config("${CMAKE_BINARY_DIR}/unix-install" "" "") + endif() + +-if(ANDROID) ++if(FALSE) + ocv_gen_config("${CMAKE_BINARY_DIR}/unix-install" "abi-${ANDROID_NDK_ABI_NAME}" "OpenCVConfig.root-ANDROID.cmake.in") + install(FILES "${OpenCV_SOURCE_DIR}/platforms/android/android.toolchain.cmake" DESTINATION "${OPENCV_CONFIG_INSTALL_PATH}" COMPONENT dev) + endif() +@@ -121,7 +121,7 @@ endif() + # -------------------------------------------------------------------------------------------- + # Part 3/3: ${BIN_DIR}/win-install/OpenCVConfig.cmake -> For use within binary installers/packages + # -------------------------------------------------------------------------------------------- +-if(WIN32) ++if(FALSE) + if(CMAKE_HOST_SYSTEM_NAME MATCHES Windows AND NOT OPENCV_SKIP_CMAKE_ROOT_CONFIG) + ocv_gen_config("${CMAKE_BINARY_DIR}/win-install" + "${OPENCV_INSTALL_BINARIES_PREFIX}${OPENCV_INSTALL_BINARIES_SUFFIX}" +diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt +index 1f0d720..0bb1ff7 100644 +--- a/data/CMakeLists.txt ++++ b/data/CMakeLists.txt +@@ -1,8 +1,6 @@ + file(GLOB HAAR_CASCADES haarcascades/*.xml) + file(GLOB LBP_CASCADES lbpcascades/*.xml) + +-install(FILES ${HAAR_CASCADES} DESTINATION ${OPENCV_OTHER_INSTALL_PATH}/haarcascades COMPONENT libs) +-install(FILES ${LBP_CASCADES} DESTINATION ${OPENCV_OTHER_INSTALL_PATH}/lbpcascades COMPONENT libs) + + if(INSTALL_TESTS AND OPENCV_TEST_DATA_PATH) + install(DIRECTORY "${OPENCV_TEST_DATA_PATH}/" DESTINATION "${OPENCV_TEST_DATA_INSTALL_PATH}" COMPONENT "tests") diff --git a/ports/opencv3/0004-add-missing-stdexcept-include.patch b/ports/opencv3/0004-add-missing-stdexcept-include.patch index 4f0df7d06615e5..2a7d90ce071cf8 100644 --- a/ports/opencv3/0004-add-missing-stdexcept-include.patch +++ b/ports/opencv3/0004-add-missing-stdexcept-include.patch @@ -1,12 +1,12 @@ -diff --git a/modules/cvv/src/util/observer_ptr.hpp b/modules/cvv/src/util/observer_ptr.hpp -index fef3fea..68d1a80 100644 ---- a/modules/cvv/src/util/observer_ptr.hpp -+++ b/modules/cvv/src/util/observer_ptr.hpp -@@ -11,6 +11,7 @@ - #include //size_t - #include // [u]intXX_t - #include // since some people like to forget that one -+#include - - namespace cvv - { +diff --git a/modules/cvv/src/util/observer_ptr.hpp b/modules/cvv/src/util/observer_ptr.hpp +index fef3fea..68d1a80 100644 +--- a/modules/cvv/src/util/observer_ptr.hpp ++++ b/modules/cvv/src/util/observer_ptr.hpp +@@ -11,6 +11,7 @@ + #include //size_t + #include // [u]intXX_t + #include // since some people like to forget that one ++#include + + namespace cvv + { diff --git a/ports/opencv3/0005-fix-vtk9.patch b/ports/opencv3/0005-fix-vtk9.patch index 137302ee37150e..2dfdee8f651ff7 100644 --- a/ports/opencv3/0005-fix-vtk9.patch +++ b/ports/opencv3/0005-fix-vtk9.patch @@ -1,5 +1,5 @@ diff --git a/cmake/OpenCVDetectVTK.cmake b/cmake/OpenCVDetectVTK.cmake -index 1495688..4c83504 100644 +index 1495688..e5c6049 100644 --- a/cmake/OpenCVDetectVTK.cmake +++ b/cmake/OpenCVDetectVTK.cmake @@ -1,12 +1,30 @@ diff --git a/ports/opencv3/0009-fix-uwp.patch b/ports/opencv3/0009-fix-uwp.patch index 73cac14531af2a..9968d869170e53 100644 --- a/ports/opencv3/0009-fix-uwp.patch +++ b/ports/opencv3/0009-fix-uwp.patch @@ -1,5 +1,5 @@ diff --git a/cmake/OpenCVModule.cmake b/cmake/OpenCVModule.cmake -index 634b5b2..07a96fb 100644 +index 10ee406..73f4af2 100644 --- a/cmake/OpenCVModule.cmake +++ b/cmake/OpenCVModule.cmake @@ -1183,7 +1183,7 @@ function(ocv_add_perf_tests) diff --git a/ports/opencv3/portfile.cmake b/ports/opencv3/portfile.cmake index 2cce2118b30d77..6223f15d2b80b5 100644 --- a/ports/opencv3/portfile.cmake +++ b/ports/opencv3/portfile.cmake @@ -15,11 +15,11 @@ vcpkg_from_github( SHA512 e69ff4869a8128b7d2a0537d198ec7f287fb821a8965df26339bec662da1888860941f50a269db7693309b9861f986c219288bb5856de76a6c7bc4c0a7026bee HEAD_REF master PATCHES - #0001-disable-downloading.patch - #0002-install-options.patch - #0003-force-package-requirements.patch - #0005-fix-vtk9.patch - #0009-fix-uwp.patch + 0001-disable-downloading.patch + 0002-install-options.patch + 0003-force-package-requirements.patch + 0005-fix-vtk9.patch + 0009-fix-uwp.patch ) file(REMOVE "${SOURCE_PATH}/cmake/FindCUDNN.cmake") @@ -104,7 +104,7 @@ if("contrib" IN_LIST FEATURES) SHA512 0191b1d49d5a50195ed94951c570da03dc33677b682e61a65b34d40f355c36a58441034730ea7eca78dcb4af4c821983754250f93fdf3adb2b4a20e71806eb03 HEAD_REF master PATCHES - #0004-add-missing-stdexcept-include.patch + 0004-add-missing-stdexcept-include.patch ) set(BUILD_WITH_CONTRIB_FLAG "-DOPENCV_EXTRA_MODULES_PATH=${CONTRIB_SOURCE_PATH}/modules") diff --git a/ports/opencv4/0002-install-options.patch b/ports/opencv4/0002-install-options.patch index 9707a6a323695c..533dd8354e4db5 100644 --- a/ports/opencv4/0002-install-options.patch +++ b/ports/opencv4/0002-install-options.patch @@ -1,8 +1,8 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt -index 4c0b388..16c0ede 100644 +index 4350b2f..89521b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -594,7 +594,7 @@ endif() +@@ -603,7 +603,7 @@ endif() ocv_cmake_hook(POST_CMAKE_BUILD_OPTIONS) # --- Python Support --- @@ -12,10 +12,10 @@ index 4c0b388..16c0ede 100644 endif() diff --git a/cmake/OpenCVCompilerOptions.cmake b/cmake/OpenCVCompilerOptions.cmake -index 87b2161..5192875 100644 +index 080c78c..616ce64 100644 --- a/cmake/OpenCVCompilerOptions.cmake +++ b/cmake/OpenCVCompilerOptions.cmake -@@ -263,7 +263,6 @@ if(MSVC) +@@ -265,7 +265,6 @@ if(MSVC) #endif() if(BUILD_WITH_DEBUG_INFO) @@ -24,10 +24,10 @@ index 87b2161..5192875 100644 set(OPENCV_EXTRA_SHARED_LINKER_FLAGS_RELEASE "${OPENCV_EXTRA_SHARED_LINKER_FLAGS_RELEASE} /debug") endif() diff --git a/cmake/OpenCVGenConfig.cmake b/cmake/OpenCVGenConfig.cmake -index 6991289..3a691c5 100644 +index 838852c..04906b3 100644 --- a/cmake/OpenCVGenConfig.cmake +++ b/cmake/OpenCVGenConfig.cmake -@@ -109,11 +109,11 @@ function(ocv_gen_config TMP_DIR NESTED_PATH ROOT_NAME) +@@ -114,11 +114,11 @@ function(ocv_gen_config TMP_DIR NESTED_PATH ROOT_NAME) endif() endfunction() @@ -41,7 +41,7 @@ index 6991289..3a691c5 100644 ocv_gen_config("${CMAKE_BINARY_DIR}/unix-install" "abi-${ANDROID_NDK_ABI_NAME}" "OpenCVConfig.root-ANDROID.cmake.in") install(FILES "${OpenCV_SOURCE_DIR}/platforms/android/android.toolchain.cmake" DESTINATION "${OPENCV_CONFIG_INSTALL_PATH}" COMPONENT dev) endif() -@@ -121,7 +121,7 @@ endif() +@@ -126,7 +126,7 @@ endif() # -------------------------------------------------------------------------------------------- # Part 3/3: ${BIN_DIR}/win-install/OpenCVConfig.cmake -> For use within binary installers/packages # -------------------------------------------------------------------------------------------- diff --git a/ports/opencv4/0003-force-package-requirements.patch b/ports/opencv4/0003-force-package-requirements.patch index b25668b38325ee..c28dd5d9fe89b4 100644 --- a/ports/opencv4/0003-force-package-requirements.patch +++ b/ports/opencv4/0003-force-package-requirements.patch @@ -1,5 +1,5 @@ diff --git a/cmake/OpenCVFindLibsGrfmt.cmake b/cmake/OpenCVFindLibsGrfmt.cmake -index 0beaf19..3ba1ebd 100644 +index 22e20b6..5d1431c 100644 --- a/cmake/OpenCVFindLibsGrfmt.cmake +++ b/cmake/OpenCVFindLibsGrfmt.cmake @@ -6,7 +6,7 @@ @@ -38,7 +38,7 @@ index 0beaf19..3ba1ebd 100644 if(WEBP_FOUND) set(HAVE_WEBP 1) endif() -@@ -173,7 +173,7 @@ if(WITH_JASPER AND NOT HAVE_OPENJPEG) +@@ -186,7 +186,7 @@ if(WITH_JASPER AND NOT HAVE_OPENJPEG) if(BUILD_JASPER) ocv_clear_vars(JASPER_FOUND) else() @@ -47,7 +47,7 @@ index 0beaf19..3ba1ebd 100644 endif() if(NOT JASPER_FOUND) -@@ -197,7 +197,7 @@ if(WITH_PNG) +@@ -210,7 +210,7 @@ if(WITH_PNG) if(BUILD_PNG) ocv_clear_vars(PNG_FOUND) else() @@ -56,7 +56,7 @@ index 0beaf19..3ba1ebd 100644 if(PNG_FOUND) include(CheckIncludeFile) check_include_file("${PNG_PNG_INCLUDE_DIR}/libpng/png.h" HAVE_LIBPNG_PNG_H) -@@ -228,7 +228,7 @@ endif() +@@ -241,7 +241,7 @@ endif() if(WITH_OPENEXR) ocv_clear_vars(HAVE_OPENEXR) if(NOT BUILD_OPENEXR) @@ -65,7 +65,7 @@ index 0beaf19..3ba1ebd 100644 endif() if(OPENEXR_FOUND) -@@ -246,7 +246,7 @@ endif() +@@ -259,7 +259,7 @@ endif() # --- GDAL (optional) --- if(WITH_GDAL) @@ -74,7 +74,7 @@ index 0beaf19..3ba1ebd 100644 if(NOT GDAL_FOUND) set(HAVE_GDAL NO) -@@ -258,7 +258,7 @@ if(WITH_GDAL) +@@ -271,7 +271,7 @@ if(WITH_GDAL) endif() if (WITH_GDCM) diff --git a/ports/opencv4/0004-fix-policy-CMP0057.patch b/ports/opencv4/0004-fix-policy-CMP0057.patch index 7f0f0c0271ba01..8bff4f88b7be1b 100644 --- a/ports/opencv4/0004-fix-policy-CMP0057.patch +++ b/ports/opencv4/0004-fix-policy-CMP0057.patch @@ -1,9 +1,9 @@ diff --git a/modules/videoio/CMakeLists.txt b/modules/videoio/CMakeLists.txt -index c1c6754..360aa6b 100644 +index 12ff992..afd56eb 100644 --- a/modules/videoio/CMakeLists.txt +++ b/modules/videoio/CMakeLists.txt @@ -1,3 +1,4 @@ +cmake_minimum_required(VERSION 3.3) - set(VIDEOIO_PLUGIN_LIST "" CACHE STRING "List of videoio backends to be compiled as plugins (ffmpeg, gstreamer)") + set(VIDEOIO_PLUGIN_LIST "" CACHE STRING "List of videoio backends to be compiled as plugins (ffmpeg, gstreamer, mfx, msmf or special value 'all')") set(VIDEOIO_ENABLE_PLUGINS "ON" CACHE BOOL "Allow building videoio plugin support") set(VIDEOIO_ENABLE_STRICT_PLUGIN_CHECK "ON" CACHE BOOL "Make sure OpenCV version is the same in plugin and host code") diff --git a/ports/opencv4/0005-add-missing-stdexcept-include.patch b/ports/opencv4/0005-add-missing-stdexcept-include.patch index 4f0df7d06615e5..2a7d90ce071cf8 100644 --- a/ports/opencv4/0005-add-missing-stdexcept-include.patch +++ b/ports/opencv4/0005-add-missing-stdexcept-include.patch @@ -1,12 +1,12 @@ -diff --git a/modules/cvv/src/util/observer_ptr.hpp b/modules/cvv/src/util/observer_ptr.hpp -index fef3fea..68d1a80 100644 ---- a/modules/cvv/src/util/observer_ptr.hpp -+++ b/modules/cvv/src/util/observer_ptr.hpp -@@ -11,6 +11,7 @@ - #include //size_t - #include // [u]intXX_t - #include // since some people like to forget that one -+#include - - namespace cvv - { +diff --git a/modules/cvv/src/util/observer_ptr.hpp b/modules/cvv/src/util/observer_ptr.hpp +index fef3fea..68d1a80 100644 +--- a/modules/cvv/src/util/observer_ptr.hpp ++++ b/modules/cvv/src/util/observer_ptr.hpp +@@ -11,6 +11,7 @@ + #include //size_t + #include // [u]intXX_t + #include // since some people like to forget that one ++#include + + namespace cvv + { diff --git a/ports/opencv4/0006-jpeg2000_getref.patch b/ports/opencv4/0006-jpeg2000_getref.patch deleted file mode 100644 index 7b0fc09c0cb1ef..00000000000000 --- a/ports/opencv4/0006-jpeg2000_getref.patch +++ /dev/null @@ -1,33 +0,0 @@ -diff --git a/modules/imgcodecs/src/grfmt_jpeg2000.cpp b/modules/imgcodecs/src/grfmt_jpeg2000.cpp ---- a/modules/imgcodecs/src/grfmt_jpeg2000.cpp -+++ b/modules/imgcodecs/src/grfmt_jpeg2000.cpp -@@ -375,13 +375,13 @@ - int lshift = MAX(0, -rshift); - rshift = MAX(0, rshift); - int delta = (rshift > 0 ? 1 << (rshift - 1) : 0) + offset; - - for( y = 0; y < yend - ystart; ) - { -- jas_seqent_t* pix_row = &jas_matrix_get( buffer, y / ystep, 0 ); -+ jas_seqent_t* pix_row = jas_matrix_getref( buffer, y / ystep, 0 ); - uchar* dst = data + (y - yoffset) * step - xoffset; - - if( xstep == 1 ) - { - if( maxval == 256 && offset == 0 ) - for( x = 0; x < xend - xstart; x++ ) -@@ -441,13 +441,13 @@ - int lshift = MAX(0, -rshift); - rshift = MAX(0, rshift); - int delta = (rshift > 0 ? 1 << (rshift - 1) : 0) + offset; - - for( y = 0; y < yend - ystart; ) - { -- jas_seqent_t* pix_row = &jas_matrix_get( buffer, y / ystep, 0 ); -+ jas_seqent_t* pix_row = jas_matrix_getref( buffer, y / ystep, 0 ); - ushort* dst = data + (y - yoffset) * step - xoffset; - - if( xstep == 1 ) - { - if( maxval == 65536 && offset == 0 ) - for( x = 0; x < xend - xstart; x++ ) diff --git a/ports/opencv4/0007-fix-vtk9-contrib.patch b/ports/opencv4/0007-fix-vtk9-contrib.patch deleted file mode 100644 index 1db18f1c640611..00000000000000 --- a/ports/opencv4/0007-fix-vtk9-contrib.patch +++ /dev/null @@ -1,470 +0,0 @@ -diff --git a/modules/viz/CMakeLists.txt b/modules/viz/CMakeLists.txt -index 89a9c3e098..3426e1dd26 100644 ---- a/modules/viz/CMakeLists.txt -+++ b/modules/viz/CMakeLists.txt -@@ -3,7 +3,9 @@ if(NOT HAVE_VTK) - endif() - - set(the_description "Viz") --include(${VTK_USE_FILE}) -+if(VTK_VERSION VERSION_LESS 8.90) -+ include(${VTK_USE_FILE}) -+endif() - - if(NOT BUILD_SHARED_LIBS) - # We observed conflict between builtin 3rdparty libraries and -diff --git a/modules/viz/src/precomp.hpp b/modules/viz/src/precomp.hpp -index f92fdb6ac2..4c4bf7c599 100644 ---- a/modules/viz/src/precomp.hpp -+++ b/modules/viz/src/precomp.hpp -@@ -133,7 +133,8 @@ - #include - #include - #include --#include "vtkCallbackCommand.h" -+#include -+#include - - #if !defined(_WIN32) || defined(__CYGWIN__) - # include /* unlink */ -@@ -149,6 +150,11 @@ - #include "vtk/vtkTrajectorySource.h" - #include "vtk/vtkImageMatSource.h" - -+#if VTK_MAJOR_VERSION >= 9 -+typedef vtkIdType const * CellIterT; -+#else -+typedef vtkIdType * CellIterT; -+#endif - - #include - #include -diff --git a/modules/viz/src/types.cpp b/modules/viz/src/types.cpp -index 65571a192e..0e14477891 100644 ---- a/modules/viz/src/types.cpp -+++ b/modules/viz/src/types.cpp -@@ -100,7 +100,8 @@ cv::viz::Mesh cv::viz::Mesh::load(const String& file, int type) - int* poly_ptr = mesh.polygons.ptr(); - - polygons->InitTraversal(); -- vtkIdType nr_cell_points, *cell_points; -+ vtkIdType nr_cell_points; -+ CellIterT cell_points; - while (polygons->GetNextCell(nr_cell_points, cell_points)) - { - *poly_ptr++ = nr_cell_points; -diff --git a/modules/viz/src/vizimpl.cpp b/modules/viz/src/vizimpl.cpp -index 2c291c0569..2c7ce997a4 100644 ---- a/modules/viz/src/vizimpl.cpp -+++ b/modules/viz/src/vizimpl.cpp -@@ -55,8 +55,17 @@ cv::viz::Viz3d::VizImpl::VizImpl(const String &name) : spin_once_state_(false), - - // Create render window - window_ = vtkSmartPointer::New(); -- cv::Vec2i window_size = cv::Vec2i(window_->GetScreenSize()) / 2; -- window_->SetSize(window_size.val); -+ int * sz = window_->GetScreenSize(); -+ if (sz) -+ { -+ cv::Vec2i window_size = cv::Vec2i(sz) / 2; -+ window_->SetSize(window_size.val); -+ } -+ else -+ { -+ int new_sz[2] = { 640, 480 }; -+ window_->SetSize(new_sz); -+ } - window_->AddRenderer(renderer_); - - // Create the interactor style -diff --git a/modules/viz/src/vtk/vtkOBJWriter.cpp b/modules/viz/src/vtk/vtkOBJWriter.cpp -index 296b6eb065..2e5764fc27 100644 ---- a/modules/viz/src/vtk/vtkOBJWriter.cpp -+++ b/modules/viz/src/vtk/vtkOBJWriter.cpp -@@ -72,7 +72,7 @@ void cv::viz::vtkOBJWriter::WriteData() - } - - vtkDebugMacro(<<"Opening vtk file for writing..."); -- ostream *outfilep = new ofstream(this->FileName, ios::out); -+ std::ostream *outfilep = new std::ofstream(this->FileName, ios::out); - if (outfilep->fail()) - { - vtkErrorMacro(<< "Unable to open file: "<< this->FileName); -@@ -127,7 +127,8 @@ void cv::viz::vtkOBJWriter::WriteData() - // write out verts if any - if (input->GetNumberOfVerts() > 0) - { -- vtkIdType npts = 0, *index = 0; -+ vtkIdType npts = 0; -+ CellIterT index = 0; - vtkCellArray *cells = input->GetVerts(); - for (cells->InitTraversal(); cells->GetNextCell(npts, index); ) - { -@@ -141,7 +142,8 @@ void cv::viz::vtkOBJWriter::WriteData() - // write out lines if any - if (input->GetNumberOfLines() > 0) - { -- vtkIdType npts = 0, *index = 0; -+ vtkIdType npts = 0; -+ CellIterT index = 0; - vtkCellArray *cells = input->GetLines(); - for (cells->InitTraversal(); cells->GetNextCell(npts, index); ) - { -@@ -162,7 +164,8 @@ void cv::viz::vtkOBJWriter::WriteData() - // write out polys if any - if (input->GetNumberOfPolys() > 0) - { -- vtkIdType npts = 0, *index = 0; -+ vtkIdType npts = 0; -+ CellIterT index = 0; - vtkCellArray *cells = input->GetPolys(); - for (cells->InitTraversal(); cells->GetNextCell(npts, index); ) - { -@@ -191,7 +194,8 @@ void cv::viz::vtkOBJWriter::WriteData() - // write out tstrips if any - if (input->GetNumberOfStrips() > 0) - { -- vtkIdType npts = 0, *index = 0; -+ vtkIdType npts = 0; -+ CellIterT index = 0; - vtkCellArray *cells = input->GetStrips(); - for (cells->InitTraversal(); cells->GetNextCell(npts, index); ) - { -diff --git a/modules/viz/src/vtk/vtkXYZReader.cpp b/modules/viz/src/vtk/vtkXYZReader.cpp -index 57726eae9b..3b9265fed6 100644 ---- a/modules/viz/src/vtk/vtkXYZReader.cpp -+++ b/modules/viz/src/vtk/vtkXYZReader.cpp -@@ -77,7 +77,7 @@ int cv::viz::vtkXYZReader::RequestData(vtkInformation*, vtkInformationVector**, - } - - // Open the input file. -- ifstream fin(this->FileName); -+ std::ifstream fin(this->FileName); - if(!fin) - { - vtkErrorMacro("Error opening file " << this->FileName); -diff --git a/modules/viz/src/vtk/vtkXYZWriter.cpp b/modules/viz/src/vtk/vtkXYZWriter.cpp -index cf95e3c6a0..56a26b38a0 100644 ---- a/modules/viz/src/vtk/vtkXYZWriter.cpp -+++ b/modules/viz/src/vtk/vtkXYZWriter.cpp -@@ -69,7 +69,7 @@ void cv::viz::vtkXYZWriter::WriteData() - } - - vtkDebugMacro(<<"Opening vtk file for writing..."); -- ostream *outfilep = new ofstream(this->FileName, ios::out); -+ std::ostream *outfilep = new std::ofstream(this->FileName, ios::out); - if (outfilep->fail()) - { - vtkErrorMacro(<< "Unable to open file: "<< this->FileName); - -diff --git a/modules/viz/test/test_tutorial2.cpp b/modules/viz/test/test_tutorial2.cpp -index 6b2972f0af..a4b5b99582 100644 ---- a/modules/viz/test/test_tutorial2.cpp -+++ b/modules/viz/test/test_tutorial2.cpp -@@ -28,7 +28,7 @@ static void tutorial2() - /// Rodrigues vector - Vec3d rot_vec = Vec3d::all(0); - double translation_phase = 0.0, translation = 0.0; -- while(!myWindow.wasStopped()) -+ for(unsigned num = 0; num < 50; ++num) - { - /* Rotation using rodrigues */ - /// Rotate around (1,1,1) -@@ -45,7 +45,7 @@ static void tutorial2() - - myWindow.setWidgetPose("Cube Widget", pose); - -- myWindow.spinOnce(1, true); -+ myWindow.spinOnce(100, true); - } - } - -diff --git a/modules/viz/test/test_tutorial3.cpp b/modules/viz/test/test_tutorial3.cpp -index 232130f0a6..32e33b1902 100644 ---- a/modules/viz/test/test_tutorial3.cpp -+++ b/modules/viz/test/test_tutorial3.cpp -@@ -48,7 +48,7 @@ static void tutorial3(bool camera_pov) - myWindow.setViewerPose(camera_pose); - - /// Start event loop. -- myWindow.spin(); -+ myWindow.spinOnce(500, true); - } - - TEST(Viz, tutorial3_global_view) -diff --git a/modules/viz/test/test_viz3d.cpp b/modules/viz/test/test_viz3d.cpp -index cdf8a00ad7..4ab05c3e0a 100644 ---- a/modules/viz/test/test_viz3d.cpp -+++ b/modules/viz/test/test_viz3d.cpp -@@ -59,7 +59,7 @@ TEST(Viz_viz3d, DISABLED_develop) - //cv::Mat cloud = cv::viz::readCloud(get_dragon_ply_file_path()); - //---->>>>> - -- viz.spin(); -+ viz.spinOnce(500, true); - } - - }} // namespace -diff --git a/modules/viz/test/tests_simple.cpp b/modules/viz/test/tests_simple.cpp -index 12d696dfba..5584483f4f 100644 ---- a/modules/viz/test/tests_simple.cpp -+++ b/modules/viz/test/tests_simple.cpp -@@ -56,7 +56,7 @@ TEST(Viz, show_cloud_bluberry) - viz.showWidget("dragon", WCloud(dragon_cloud, Color::bluberry()), pose); - - viz.showWidget("text2d", WText("Bluberry cloud", Point(20, 20), 20, Color::green())); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - TEST(Viz, show_cloud_random_color) -@@ -73,7 +73,7 @@ TEST(Viz, show_cloud_random_color) - viz.showWidget("coosys", WCoordinateSystem()); - viz.showWidget("dragon", WCloud(dragon_cloud, colors), pose); - viz.showWidget("text2d", WText("Random color cloud", Point(20, 20), 20, Color::green())); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - TEST(Viz, show_cloud_masked) -@@ -91,7 +91,7 @@ TEST(Viz, show_cloud_masked) - viz.showWidget("coosys", WCoordinateSystem()); - viz.showWidget("dragon", WCloud(dragon_cloud), pose); - viz.showWidget("text2d", WText("Nan masked cloud", Point(20, 20), 20, Color::green())); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - TEST(Viz, show_cloud_collection) -@@ -109,7 +109,7 @@ TEST(Viz, show_cloud_collection) - viz.showWidget("coosys", WCoordinateSystem()); - viz.showWidget("ccol", ccol); - viz.showWidget("text2d", WText("Cloud collection", Point(20, 20), 20, Color::green())); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - TEST(Viz, show_painted_clouds) -@@ -124,7 +124,7 @@ TEST(Viz, show_painted_clouds) - viz.showWidget("cloud3", WPaintedCloud(cloud, Vec3d(0.0, 0.0, -1.0), Vec3d(0.0, 0.0, 1.0), Color::blue(), Color::red())); - viz.showWidget("arrow", WArrow(Vec3d(0.0, 1.0, -1.0), Vec3d(0.0, 1.0, 1.0), 0.009, Color::raspberry())); - viz.showWidget("text2d", WText("Painted clouds", Point(20, 20), 20, Color::green())); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - TEST(Viz, show_mesh) -@@ -137,7 +137,7 @@ TEST(Viz, show_mesh) - viz.showWidget("coosys", WCoordinateSystem()); - viz.showWidget("mesh", WMesh(mesh), pose); - viz.showWidget("text2d", WText("Just mesh", Point(20, 20), 20, Color::green())); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - TEST(Viz, show_mesh_random_colors) -@@ -152,7 +152,7 @@ TEST(Viz, show_mesh_random_colors) - viz.showWidget("mesh", WMesh(mesh), pose); - viz.setRenderingProperty("mesh", SHADING, SHADING_PHONG); - viz.showWidget("text2d", WText("Random color mesh", Point(20, 20), 20, Color::green())); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - TEST(Viz, show_widget_merger) -@@ -173,7 +173,7 @@ TEST(Viz, show_widget_merger) - viz.showWidget("coo", WCoordinateSystem()); - viz.showWidget("merger", merger); - viz.showWidget("text2d", WText("Widget merger", Point(20, 20), 20, Color::green())); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - TEST(Viz, show_textured_mesh) -@@ -210,7 +210,7 @@ TEST(Viz, show_textured_mesh) - viz.showWidget("mesh", WMesh(mesh)); - viz.setRenderingProperty("mesh", SHADING, SHADING_PHONG); - viz.showWidget("text2d", WText("Textured mesh", Point(20, 20), 20, Color::green())); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - TEST(Viz, show_polyline) -@@ -229,7 +229,7 @@ TEST(Viz, show_polyline) - viz.showWidget("polyline", WPolyLine(polyline, colors)); - viz.showWidget("coosys", WCoordinateSystem()); - viz.showWidget("text2d", WText("Polyline", Point(20, 20), 20, Color::green())); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - TEST(Viz, show_sampled_normals) -@@ -244,7 +244,7 @@ TEST(Viz, show_sampled_normals) - viz.showWidget("normals", WCloudNormals(mesh.cloud, mesh.normals, 30, 0.1f, Color::green()), pose); - viz.setRenderingProperty("normals", LINE_WIDTH, 2.0); - viz.showWidget("text2d", WText("Cloud or mesh normals", Point(20, 20), 20, Color::green())); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - TEST(Viz, show_cloud_shaded_by_normals) -@@ -260,7 +260,7 @@ TEST(Viz, show_cloud_shaded_by_normals) - Viz3d viz("show_cloud_shaded_by_normals"); - viz.showWidget("cloud", cloud, pose); - viz.showWidget("text2d", WText("Cloud shaded by normals", Point(20, 20), 20, Color::green())); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - TEST(Viz, show_trajectories) -@@ -287,15 +287,15 @@ TEST(Viz, show_trajectories) - viz.showWidget("text2d", WText("Different kinds of supported trajectories", Point(20, 20), 20, Color::green())); - - int i = 0; -- while(!viz.wasStopped()) -+ for(unsigned num = 0; num < 50; ++num) - { - double a = --i % 360; - Vec3d pose(sin(a * CV_PI/180), 0.7, cos(a * CV_PI/180)); - viz.setViewerPose(makeCameraPose(pose * 7.5, Vec3d(0.0, 0.5, 0.0), Vec3d(0.0, 0.1, 0.0))); -- viz.spinOnce(20, true); -+ viz.spinOnce(100, true); - } - viz.resetCamera(); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - TEST(Viz, show_trajectory_reposition) -@@ -306,7 +306,7 @@ TEST(Viz, show_trajectory_reposition) - viz.showWidget("coos", WCoordinateSystem()); - viz.showWidget("sub3", WTrajectory(Mat(path).rowRange(0, (int)path.size()/3), WTrajectory::BOTH, 0.2, Color::brown()), path.front().inv()); - viz.showWidget("text2d", WText("Trajectory resposition to origin", Point(20, 20), 20, Color::green())); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - TEST(Viz, show_camera_positions) -@@ -330,7 +330,7 @@ TEST(Viz, show_camera_positions) - viz.showWidget("pos3", WCameraPosition(0.75), poses[1]); - viz.showWidget("pos4", WCameraPosition(K, gray, 3, Color::indigo()), poses[1]); - viz.showWidget("text2d", WText("Camera positions with images", Point(20, 20), 20, Color::green())); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - TEST(Viz, show_overlay_image) -@@ -353,16 +353,16 @@ TEST(Viz, show_overlay_image) - viz.showWidget("text2d", WText("Overlay images", Point(20, 20), 20, Color::green())); - - int i = 0; -- while(!viz.wasStopped()) -+ for(unsigned num = 0; num < 50; ++num) - { - double a = ++i % 360; - Vec3d pose(sin(a * CV_PI/180), 0.7, cos(a * CV_PI/180)); - viz.setViewerPose(makeCameraPose(pose * 3, Vec3d(0.0, 0.5, 0.0), Vec3d(0.0, 0.1, 0.0))); - viz.getWidget("img1").cast().setImage(lena * pow(sin(i*10*CV_PI/180) * 0.5 + 0.5, 1.0)); -- viz.spinOnce(1, true); -+ viz.spinOnce(100, true); - } - viz.showWidget("text2d", WText("Overlay images (stopped)", Point(20, 20), 20, Color::green())); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - -@@ -376,7 +376,7 @@ TEST(Viz, show_image_method) - viz.showImage(lena, lena.size()); - viz.spinOnce(1500, true); - -- cv::viz::imshow("show_image_method", make_gray(lena)).spin(); -+ cv::viz::imshow("show_image_method", make_gray(lena)).spinOnce(500, true); - } - - TEST(Viz, show_image_3d) -@@ -398,13 +398,13 @@ TEST(Viz, show_image_3d) - viz.showWidget("text2d", WText("Images in 3D", Point(20, 20), 20, Color::green())); - - int i = 0; -- while(!viz.wasStopped()) -+ for(unsigned num = 0; num < 50; ++num) - { - viz.getWidget("img0").cast().setImage(lena * pow(sin(i++*7.5*CV_PI/180) * 0.5 + 0.5, 1.0)); -- viz.spinOnce(1, true); -+ viz.spinOnce(100, true); - } - viz.showWidget("text2d", WText("Images in 3D (stopped)", Point(20, 20), 20, Color::green())); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - TEST(Viz, show_simple_widgets) -@@ -431,10 +431,10 @@ TEST(Viz, show_simple_widgets) - - viz.showWidget("grid1", WGrid(Vec2i(7,7), Vec2d::all(0.75), Color::gray()), Affine3d().translate(Vec3d(0.0, 0.0, -1.0))); - -- viz.spin(); -+ viz.spinOnce(500, true); - viz.getWidget("text2d").cast().setText("Different simple widgets (updated)"); - viz.getWidget("text3d").cast().setText("Updated text 3D"); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - TEST(Viz, show_follower) -@@ -446,9 +446,9 @@ TEST(Viz, show_follower) - viz.showWidget("t3d_2", WText3D("Simple 3D follower", Point3d(-0.5, -0.5, 0.5), 0.125, true, Color::green())); - viz.showWidget("text2d", WText("Follower: text always facing camera", Point(20, 20), 20, Color::green())); - viz.setBackgroundMeshLab(); -- viz.spin(); -+ viz.spinOnce(500, true); - viz.getWidget("t3d_2").cast().setText("Updated follower 3D"); -- viz.spin(); -+ viz.spinOnce(500, true); - } - - }} // namespace - -diff --git a/modules/viz/CMakeLists.txt b/modules/viz/CMakeLists.txt -index 3426e1dd26..cd225960ce 100644 ---- a/modules/viz/CMakeLists.txt -+++ b/modules/viz/CMakeLists.txt -@@ -3,9 +3,6 @@ if(NOT HAVE_VTK) - endif() - - set(the_description "Viz") --if(VTK_VERSION VERSION_LESS 8.90) -- include(${VTK_USE_FILE}) --endif() - - if(NOT BUILD_SHARED_LIBS) - # We observed conflict between builtin 3rdparty libraries and -@@ -37,7 +34,14 @@ ocv_add_accuracy_tests() - ocv_add_perf_tests() - ocv_add_samples(opencv_imgproc opencv_calib3d opencv_features2d opencv_flann) - --ocv_target_link_libraries(${the_module} PRIVATE ${VTK_LIBRARIES}) -+ -+if (VTK_VERSION VERSION_LESS "8.90.0") -+ include(${VTK_USE_FILE}) -+ ocv_target_link_libraries(${the_module} PRIVATE ${VTK_LIBRARIES}) -+else () -+ ocv_target_link_libraries(${the_module} PRIVATE ${VTK_LIBRARIES}) -+ vtk_module_autoinit(TARGETS ${the_module} MODULES ${VTK_LIBRARIES}) -+endif() - - if(APPLE AND BUILD_opencv_viz) - ocv_target_link_libraries(${the_module} PRIVATE "-framework Cocoa") -diff --git a/modules/viz/src/types.cpp b/modules/viz/src/types.cpp -index 0e14477891..e9a470cf83 100644 ---- a/modules/viz/src/types.cpp -+++ b/modules/viz/src/types.cpp -@@ -97,6 +97,7 @@ cv::viz::Mesh cv::viz::Mesh::load(const String& file, int type) - // Now handle the polygons - vtkSmartPointer polygons = polydata->GetPolys(); - mesh.polygons.create(1, polygons->GetSize(), CV_32SC1); -+ mesh.polygons = 0; - int* poly_ptr = mesh.polygons.ptr(); - - polygons->InitTraversal(); diff --git a/ports/opencv4/0008-fix-vtk9.patch b/ports/opencv4/0008-fix-vtk9.patch deleted file mode 100644 index 7942b0aa4d8b43..00000000000000 --- a/ports/opencv4/0008-fix-vtk9.patch +++ /dev/null @@ -1,41 +0,0 @@ -diff --git a/cmake/OpenCVDetectVTK.cmake b/cmake/OpenCVDetectVTK.cmake -index 0f2b958..4c83504 100644 ---- a/cmake/OpenCVDetectVTK.cmake -+++ b/cmake/OpenCVDetectVTK.cmake -@@ -1,12 +1,30 @@ -+# VTK 9.0 -+if(NOT VTK_FOUND) -+ find_package(VTK 9 QUIET NAMES vtk COMPONENTS -+ FiltersExtraction -+ FiltersSources -+ FiltersTexture -+ IOExport -+ IOGeometry -+ IOPLY -+ InteractionStyle -+ RenderingCore -+ RenderingLOD -+ RenderingOpenGL2 -+ NO_MODULE) -+endif() -+ - # VTK 6.x components --find_package(VTK QUIET COMPONENTS vtkInteractionStyle vtkRenderingLOD vtkIOPLY vtkFiltersTexture vtkRenderingFreeType vtkIOExport NO_MODULE) --IF(VTK_FOUND) -- IF(VTK_RENDERING_BACKEND) #in vtk 7, the rendering backend is exported as a var. -+if(NOT VTK_FOUND) -+ find_package(VTK QUIET COMPONENTS vtkInteractionStyle vtkRenderingLOD vtkIOPLY vtkFiltersTexture vtkRenderingFreeType vtkIOExport NO_MODULE) -+ IF(VTK_FOUND) -+ IF(VTK_RENDERING_BACKEND) #in vtk 7, the rendering backend is exported as a var. - find_package(VTK QUIET COMPONENTS vtkRendering${VTK_RENDERING_BACKEND} vtkInteractionStyle vtkRenderingLOD vtkIOPLY vtkFiltersTexture vtkRenderingFreeType vtkIOExport vtkIOGeometry NO_MODULE) -- ELSE(VTK_RENDERING_BACKEND) -+ ELSE(VTK_RENDERING_BACKEND) - find_package(VTK QUIET COMPONENTS vtkRenderingOpenGL vtkInteractionStyle vtkRenderingLOD vtkIOPLY vtkFiltersTexture vtkRenderingFreeType vtkIOExport NO_MODULE) -- ENDIF(VTK_RENDERING_BACKEND) --ENDIF(VTK_FOUND) -+ ENDIF(VTK_RENDERING_BACKEND) -+ ENDIF(VTK_FOUND) -+endif() - - # VTK 5.x components - if(NOT VTK_FOUND) diff --git a/ports/opencv4/0009-fix-uwp.patch b/ports/opencv4/0009-fix-uwp.patch index 1c40cf1e17d4aa..9ace8e2147333e 100644 --- a/ports/opencv4/0009-fix-uwp.patch +++ b/ports/opencv4/0009-fix-uwp.patch @@ -1,8 +1,8 @@ diff --git a/cmake/OpenCVModule.cmake b/cmake/OpenCVModule.cmake -index 9053957..d2b6412 100644 +index bd14aa2..58cd11e 100644 --- a/cmake/OpenCVModule.cmake +++ b/cmake/OpenCVModule.cmake -@@ -1196,7 +1196,7 @@ function(ocv_add_perf_tests) +@@ -1197,7 +1197,7 @@ function(ocv_add_perf_tests) set_target_properties(${the_target} PROPERTIES FOLDER "tests performance") endif() diff --git a/ports/opencv4/portfile.cmake b/ports/opencv4/portfile.cmake index 6c66e7bad1a2b7..597d797cd5d4be 100644 --- a/ports/opencv4/portfile.cmake +++ b/ports/opencv4/portfile.cmake @@ -15,14 +15,12 @@ vcpkg_from_github( SHA512 c34100f3f3fe45f2115975350d23288a3badb32864ba0cbd32512387416d1cf10d16d3ef5f3d089d6a1c2be587d788d33997513fc015dbf7d774a622f2d3811f HEAD_REF master PATCHES - #0001-disable-downloading.patch - #0002-install-options.patch - #0003-force-package-requirements.patch - #0004-fix-policy-CMP0057.patch - #0006-jpeg2000_getref.patch - #0008-fix-vtk9.patch - #0009-fix-uwp.patch - #0010-fix-interface_link_libraries.patch # Remove this patch when the next update + 0001-disable-downloading.patch + 0002-install-options.patch + 0003-force-package-requirements.patch + 0004-fix-policy-CMP0057.patch + 0009-fix-uwp.patch + 0010-fix-interface_link_libraries.patch # Remove this patch when the next update ) file(REMOVE "${SOURCE_PATH}/cmake/FindCUDNN.cmake") @@ -138,8 +136,7 @@ if("contrib" IN_LIST FEATURES) SHA512 b2ae72e920c78472fd677281b8dd6f25872399d8ade97b0d3b0fc50bbabea8c00ea849d87bfb311ac148cef663481d0c89c0f6875578c052c1cc7ddcd70e6e17 HEAD_REF master PATCHES - #0005-add-missing-stdexcept-include.patch - #0007-fix-vtk9-contrib.patch + 0005-add-missing-stdexcept-include.patch ) set(BUILD_WITH_CONTRIB_FLAG "-DOPENCV_EXTRA_MODULES_PATH=${CONTRIB_SOURCE_PATH}/modules") From 425c393f5b3d3c8d8ce3441831ca8aefce6c92dd Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Sun, 17 Jan 2021 22:40:08 +0100 Subject: [PATCH 16/24] restore ci tests for all opencv4 configs --- scripts/ci.baseline.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index 95241f5e70cc9e..7734e72f2349a8 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -368,7 +368,7 @@ gdal:x64-windows-static-md=fail geos:arm-uwp=fail geos:x64-uwp=fail -# Port geotrans source ftp://ftp.nga.mil server +# Port geotrans source ftp://ftp.nga.mil server # extremely slow may take several hours to download geotrans:x64-linux = skip geotrans:x64-windows = skip @@ -895,9 +895,9 @@ memorymodule:arm-uwp=fail memorymodule:x64-linux=fail memorymodule:x64-osx=fail memorymodule:x64-uwp=fail -# Due to static crt. +# Due to static crt. mesa:x64-windows-static=fail -# Missing dependent libraries. +# Missing dependent libraries. mesa:x64-linux=fail mesa:x64-osx=fail meschach:arm-uwp=fail @@ -1138,8 +1138,6 @@ opencv3:x64-windows = skip opencv3:x64-windows-static = skip opencv3:x64-windows-static-md=skip opencv3:x86-windows = skip -opencv4:arm64-windows = fail -opencv4:arm-uwp = fail opendnp3:x64-uwp=fail opendnp3:arm-uwp=fail openexr:arm64-windows=fail From e7f40e80885788b066230f1d687153f15895a2f8 Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Mon, 18 Jan 2021 00:40:30 +0100 Subject: [PATCH 17/24] add port versions to baseline --- port_versions/baseline.json | 8 ++++---- port_versions/o-/opencv3.json | 5 +++++ port_versions/o-/opencv4.json | 5 +++++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/port_versions/baseline.json b/port_versions/baseline.json index 250f6157cf862c..354e2c9c2683a2 100644 --- a/port_versions/baseline.json +++ b/port_versions/baseline.json @@ -4209,12 +4209,12 @@ "port-version": 5 }, "opencv3": { - "baseline": "3.4.10", - "port-version": 5 + "baseline": "3.4.12", + "port-version": 0 }, "opencv4": { - "baseline": "4.3.0", - "port-version": 5 + "baseline": "4.5.0", + "port-version": 0 }, "opendnp3": { "baseline": "3.1.0", diff --git a/port_versions/o-/opencv3.json b/port_versions/o-/opencv3.json index 31859a5aa8ee6f..107d32df3557d8 100644 --- a/port_versions/o-/opencv3.json +++ b/port_versions/o-/opencv3.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "19822566635835b16f11adbba8207d42ebeca6fc", + "version-string": "3.4.12", + "port-version": 0 + }, { "git-tree": "a761625dd5d17548aaa9611295ace23ca8bc27fc", "version-string": "3.4.10", diff --git a/port_versions/o-/opencv4.json b/port_versions/o-/opencv4.json index b326830fb5f9d0..8558a156c5e2fc 100644 --- a/port_versions/o-/opencv4.json +++ b/port_versions/o-/opencv4.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "63e97428d5de866ddecffc24ef537a0a709034d6", + "version-string": "4.5.0", + "port-version": 0 + }, { "git-tree": "f6fbdfab1e9ac01652b51f2251715c2be05a6567", "version-string": "4.3.0", From 000e45d688f86715aca685f853c20c152955e45f Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Tue, 19 Jan 2021 08:35:02 +0100 Subject: [PATCH 18/24] [OpenCV contrib] fix glog integration --- .../opencv4/0006-fix-glog-abbreviated-severity.patch | 12 ++++++++++++ ports/opencv4/portfile.cmake | 1 + 2 files changed, 13 insertions(+) create mode 100644 ports/opencv4/0006-fix-glog-abbreviated-severity.patch diff --git a/ports/opencv4/0006-fix-glog-abbreviated-severity.patch b/ports/opencv4/0006-fix-glog-abbreviated-severity.patch new file mode 100644 index 00000000000000..aafe61b1a5eb98 --- /dev/null +++ b/ports/opencv4/0006-fix-glog-abbreviated-severity.patch @@ -0,0 +1,12 @@ +diff --git a/modules/sfm/CMakeLists.txt b/modules/sfm/CMakeLists.txt +index 53a8d43..8809c88 100644 +--- a/modules/sfm/CMakeLists.txt ++++ b/modules/sfm/CMakeLists.txt +@@ -20,6 +20,7 @@ if((gflags_FOUND OR GFLAGS_FOUND OR GFLAGS_INCLUDE_DIRS) AND (glog_FOUND OR GLOG + ) + file(REMOVE "${_fname}") + message(STATUS "Checking SFM deps... ${SFM_DEPS_OK}") ++ add_definitions(-DGLOG_NO_ABBREVIATED_SEVERITIES) + else() + set(SFM_DEPS_OK FALSE) + endif() diff --git a/ports/opencv4/portfile.cmake b/ports/opencv4/portfile.cmake index 597d797cd5d4be..d200bfc2c09ee3 100644 --- a/ports/opencv4/portfile.cmake +++ b/ports/opencv4/portfile.cmake @@ -137,6 +137,7 @@ if("contrib" IN_LIST FEATURES) HEAD_REF master PATCHES 0005-add-missing-stdexcept-include.patch + 0006-fix-glog-abbreviated-severity.patch ) set(BUILD_WITH_CONTRIB_FLAG "-DOPENCV_EXTRA_MODULES_PATH=${CONTRIB_SOURCE_PATH}/modules") From 15e7edbe5fc22f1c559c642693651234f383fca8 Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Tue, 19 Jan 2021 10:52:26 +0100 Subject: [PATCH 19/24] [OpenCV4] fix target processor detection --- ports/opencv4/portfile.cmake | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ports/opencv4/portfile.cmake b/ports/opencv4/portfile.cmake index d200bfc2c09ee3..61ea201c6d25d8 100644 --- a/ports/opencv4/portfile.cmake +++ b/ports/opencv4/portfile.cmake @@ -23,6 +23,16 @@ vcpkg_from_github( 0010-fix-interface_link_libraries.patch # Remove this patch when the next update ) +if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64") + set(TARGET_IS_AARCH64 1) +elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm") + set(TARGET_IS_ARM 1) +elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64") + set(TARGET_IS_X86_64 1) +else() + set(TARGET_IS_X86 1) +endif() + file(REMOVE "${SOURCE_PATH}/cmake/FindCUDNN.cmake") string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" BUILD_WITH_STATIC_CRT) @@ -287,6 +297,12 @@ vcpkg_configure_cmake( PREFER_NINJA SOURCE_PATH ${SOURCE_PATH} OPTIONS + ###### opencv cpu recognition is broken, always using host and not target: here we bypass that + -DOPENCV_SKIP_SYSTEM_PROCESSOR_DETECTION=TRUE + -DAARCH64=${TARGET_IS_AARCH64} + -DX86_64=${TARGET_IS_X86_64} + -DX86=${TARGET_IS_X86} + -DARM=${TARGET_IS_ARM} ###### ocv_options -DOpenCV_INSTALL_BINARIES_PREFIX= -DOPENCV_BIN_INSTALL_PATH=bin From c0aade0745d0a39c92eafc7a66c643bd125da18a Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Tue, 19 Jan 2021 10:54:30 +0100 Subject: [PATCH 20/24] update version refs --- port_versions/o-/opencv4.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/port_versions/o-/opencv4.json b/port_versions/o-/opencv4.json index 8558a156c5e2fc..1c87188cc19581 100644 --- a/port_versions/o-/opencv4.json +++ b/port_versions/o-/opencv4.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "63e97428d5de866ddecffc24ef537a0a709034d6", + "git-tree": "d42377b98802444698ecb0b3313a95f83f5d4fe3", "version-string": "4.5.0", "port-version": 0 }, From 5635a41fbb1e9c2584b5264bd58a68f6a3095c23 Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Tue, 19 Jan 2021 11:06:25 +0100 Subject: [PATCH 21/24] [OpenCV3] fix target processor detection --- ports/opencv3/portfile.cmake | 16 ++++++++++++++++ ports/opencv4/portfile.cmake | 18 +++++++----------- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/ports/opencv3/portfile.cmake b/ports/opencv3/portfile.cmake index 6223f15d2b80b5..c65792bf00029d 100644 --- a/ports/opencv3/portfile.cmake +++ b/ports/opencv3/portfile.cmake @@ -22,6 +22,16 @@ vcpkg_from_github( 0009-fix-uwp.patch ) +if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64") + set(TARGET_IS_AARCH64 1) +elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm") + set(TARGET_IS_ARM 1) +elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64") + set(TARGET_IS_X86_64 1) +else() + set(TARGET_IS_X86 1) +endif() + file(REMOVE "${SOURCE_PATH}/cmake/FindCUDNN.cmake") string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" BUILD_WITH_STATIC_CRT) @@ -242,6 +252,12 @@ vcpkg_configure_cmake( PREFER_NINJA SOURCE_PATH ${SOURCE_PATH} OPTIONS + ###### opencv cpu recognition is broken, always using host and not target: here we bypass that + -DOPENCV_SKIP_SYSTEM_PROCESSOR_DETECTION=TRUE + -DAARCH64=${TARGET_IS_AARCH64} + -DX86_64=${TARGET_IS_X86_64} + -DX86=${TARGET_IS_X86} + -DARM=${TARGET_IS_ARM} ###### ocv_options -DOpenCV_INSTALL_BINARIES_PREFIX= -DOPENCV_BIN_INSTALL_PATH=bin diff --git a/ports/opencv4/portfile.cmake b/ports/opencv4/portfile.cmake index 61ea201c6d25d8..21f6e227868e17 100644 --- a/ports/opencv4/portfile.cmake +++ b/ports/opencv4/portfile.cmake @@ -74,13 +74,6 @@ if("dnn" IN_LIST FEATURES) endif() endif() -#OpenCV on arm on windows platform (non UWP) has serious problems right now. Disabling this module is not enough (remember to put the definition in vcpkg_configure_cmake) -#set(BUILD_opencv_surface_matching ON) -#if(VCPKG_TARGET_ARCHITECTURE MATCHES "arm") -# set(BUILD_opencv_surface_matching OFF) -# message(WARNING "The surface_matching module cannot be enabled on ARM architectures") -#endif() - set(BUILD_opencv_gapi ON) if(VCPKG_TARGET_IS_UWP) set(BUILD_opencv_gapi OFF) @@ -365,13 +358,15 @@ vcpkg_configure_cmake( ###### customized properties ## Options from vcpkg_check_features() ${FEATURE_OPTIONS} - -DHALIDE_ROOT_DIR=${CURRENT_INSTALLED_DIR} -DCMAKE_DISABLE_FIND_PACKAGE_Halide=ON + -DHALIDE_ROOT_DIR=${CURRENT_INSTALLED_DIR} -DWITH_GTK=OFF -DWITH_IPP=${WITH_IPP} + -DWITH_MATLAB=OFF -DWITH_MSMF=${WITH_MSMF} -DWITH_OPENMP=${WITH_OPENMP} -DWITH_PROTOBUF=${BUILD_opencv_dnn} + -DWITH_OPENCLAMDBLAS=OFF -DWITH_TBB=${WITH_TBB} -DWITH_OPENJPEG=OFF ###### BUILD_options (mainly modules which require additional libraries) @@ -435,12 +430,12 @@ find_dependency(Tesseract)") if("eigen" IN_LIST FEATURES) string(APPEND DEPS_STRING "\nfind_dependency(Eigen3 CONFIG)") endif() - if("openexr" IN_LIST FEATURES) - string(APPEND DEPS_STRING "\nfind_dependency(OpenEXR CONFIG)") - endif() if("lapack" IN_LIST FEATURES) string(APPEND DEPS_STRING "\nfind_dependency(LAPACK)") endif() + if("openexr" IN_LIST FEATURES) + string(APPEND DEPS_STRING "\nfind_dependency(OpenEXR CONFIG)") + endif() if(WITH_OPENMP) string(APPEND DEPS_STRING "\nfind_dependency(OpenMP)") endif() @@ -478,6 +473,7 @@ find_dependency(Qt5 COMPONENTS OpenGL Concurrent Test)") file(WRITE ${CURRENT_PACKAGES_DIR}/share/opencv/OpenCVModules.cmake "${OPENCV_MODULES}") + file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) endif() From 6fccd8a56deadef808fe3ecfb8696c3b047a2d09 Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Tue, 19 Jan 2021 11:06:51 +0100 Subject: [PATCH 22/24] fix also ocv3 --- port_versions/o-/opencv3.json | 2 +- port_versions/o-/opencv4.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/port_versions/o-/opencv3.json b/port_versions/o-/opencv3.json index 107d32df3557d8..33d47557a84388 100644 --- a/port_versions/o-/opencv3.json +++ b/port_versions/o-/opencv3.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "19822566635835b16f11adbba8207d42ebeca6fc", + "git-tree": "a0dfe03c4db4fb9532b888399deee675750eef61", "version-string": "3.4.12", "port-version": 0 }, diff --git a/port_versions/o-/opencv4.json b/port_versions/o-/opencv4.json index 1c87188cc19581..5a2934e9d49f23 100644 --- a/port_versions/o-/opencv4.json +++ b/port_versions/o-/opencv4.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "d42377b98802444698ecb0b3313a95f83f5d4fe3", + "git-tree": "cdf704950d37ce677508db67c081f9aeda18b9cd", "version-string": "4.5.0", "port-version": 0 }, From e06d90d96e5c4095ac1d67439160cb37ed595247 Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Tue, 19 Jan 2021 23:32:02 +0100 Subject: [PATCH 23/24] remove vtk feature from opencv-ci testing --- scripts/test_ports/vcpkg-ci-opencv/CONTROL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test_ports/vcpkg-ci-opencv/CONTROL b/scripts/test_ports/vcpkg-ci-opencv/CONTROL index 46e451828aad6e..cb33c36a72dcd9 100644 --- a/scripts/test_ports/vcpkg-ci-opencv/CONTROL +++ b/scripts/test_ports/vcpkg-ci-opencv/CONTROL @@ -3,4 +3,4 @@ Version: 1 Port-Version: 2 Homepage: https://github.com/microsoft/vcpkg Description: Port to force features of certain ports within CI -Build-Depends: opencv[core,nonfree,ade,contrib,dnn,eigen,ffmpeg,gdcm,ipp,jasper,jpeg,lapack,openexr,opengl,openmp,png,qt,sfm,tiff,vtk,webp](!uwp&!(windows&(arm|arm64))), opencv[core,nonfree,ade,contrib,dnn,eigen,ffmpeg,jpeg,png,tiff,webp](uwp|(windows&(arm|arm64))) +Build-Depends: opencv[core,nonfree,ade,contrib,dnn,eigen,ffmpeg,gdcm,ipp,jasper,jpeg,lapack,openexr,opengl,openmp,png,qt,sfm,tiff,vtk,webp](!uwp&!(windows&(arm|arm64))&!static), opencv[core,nonfree,ade,contrib,dnn,eigen,ffmpeg,jpeg,png,tiff,webp](uwp|(windows&(arm|arm64))|static) From 410a2d2ecaa0ee968d98408f2f3dff425414b72c Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Wed, 20 Jan 2021 08:26:11 +0100 Subject: [PATCH 24/24] remove qt5-tools from baseline, it works locally --- scripts/ci.baseline.txt | 1 - scripts/test_ports/vcpkg-ci-opencv/CONTROL | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index 7734e72f2349a8..8db2f7026520c9 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -1809,7 +1809,6 @@ open62541:x64-windows-static-md=fail pngpp:x64-windows-static-md=fail portmidi:x64-windows-static-md=fail pthreads:x64-windows-static-md=fail -qt5-tools:x64-windows-static-md=fail quantlib:x64-windows-static-md=fail readosm:x64-windows-static-md=fail sentencepiece:x64-windows-static-md=fail diff --git a/scripts/test_ports/vcpkg-ci-opencv/CONTROL b/scripts/test_ports/vcpkg-ci-opencv/CONTROL index cb33c36a72dcd9..46e451828aad6e 100644 --- a/scripts/test_ports/vcpkg-ci-opencv/CONTROL +++ b/scripts/test_ports/vcpkg-ci-opencv/CONTROL @@ -3,4 +3,4 @@ Version: 1 Port-Version: 2 Homepage: https://github.com/microsoft/vcpkg Description: Port to force features of certain ports within CI -Build-Depends: opencv[core,nonfree,ade,contrib,dnn,eigen,ffmpeg,gdcm,ipp,jasper,jpeg,lapack,openexr,opengl,openmp,png,qt,sfm,tiff,vtk,webp](!uwp&!(windows&(arm|arm64))&!static), opencv[core,nonfree,ade,contrib,dnn,eigen,ffmpeg,jpeg,png,tiff,webp](uwp|(windows&(arm|arm64))|static) +Build-Depends: opencv[core,nonfree,ade,contrib,dnn,eigen,ffmpeg,gdcm,ipp,jasper,jpeg,lapack,openexr,opengl,openmp,png,qt,sfm,tiff,vtk,webp](!uwp&!(windows&(arm|arm64))), opencv[core,nonfree,ade,contrib,dnn,eigen,ffmpeg,jpeg,png,tiff,webp](uwp|(windows&(arm|arm64)))