conan-center-index icon indicating copy to clipboard operation
conan-center-index copied to clipboard

opencv: Fix lack of config verification

Open connorsmacd opened this issue 1 year ago • 4 comments

Specify library name and version: opencv/4.x

This PR modifies the OpenCV 4.x recipe to enable the configuration option ENABLE_CONFIG_VERIFICATION.

According the OpenCV documentation, ENABLE_CONFIG_VERIFICATION does the following:

For each enabled dependency (WITH_ option) verify that it has been found and enabled (HAVE_ variable). By default feature will be silently turned off if dependency was not found, but with this option enabled cmake configuration will fail. Convenient for packaging systems which require stable library configuration not depending on environment fluctuations.

The recipe did not enable this option, so it was possible for the build to succeed even though an explicitly enabled dependency was not found. I noticed this issue while I was playing around with my own fork of the FFmpeg recipe -- despite WITH_FFMPEG being passed, I would see this in the build output:

--   Video I/O:
--     FFMPEG:                      NO (find_package)

While find_package failed due to my own error in the FFmpeg recipe, I would have expected the build to fail as well, but it succeeded due to the error passing silently. With the change in this PR, the build now fails as expected.


connorsmacd avatar Feb 20 '24 20:02 connorsmacd

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Feb 20 '24 20:02 CLAassistant

I detected other pull requests that are modifying opencv/4.x recipe:

  • #23242
  • #21204

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there.

ericLemanissierBot avatar Feb 20 '24 20:02 ericLemanissierBot

Conan v1 pipeline :x:

Failure in build 2 (a1f7dd295ede037cfee5702277ee656f0fea564a):

  • opencv/4.8.1: CI failed to create some packages (All logs)

    Logs for packageID f461467d2ff87edb5359a5769813a5aa971283f1:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=5
    os=Linux
    [options]
    opencv:shared=False
    
    [...]
    dpkg-query: no packages found matching libxi-dev
    dpkg-query: no packages found matching libxinerama-dev
    dpkg-query: no packages found matching libxkbfile-dev
    dpkg-query: no packages found matching libxmu-dev
    dpkg-query: no packages found matching libxmuu-dev
    dpkg-query: no packages found matching libxpm-dev
    dpkg-query: no packages found matching libxrandr-dev
    dpkg-query: no packages found matching libxrender-dev
    dpkg-query: no packages found matching libxres-dev
    dpkg-query: no packages found matching libxss-dev
    dpkg-query: no packages found matching libxt-dev
    dpkg-query: no packages found matching libxtst-dev
    dpkg-query: no packages found matching libxv-dev
    dpkg-query: no packages found matching libxxf86vm-dev
    dpkg-query: no packages found matching libxcb-render0-dev
    dpkg-query: no packages found matching libxcb-render-util0-dev
    dpkg-query: no packages found matching libxcb-xkb-dev
    dpkg-query: no packages found matching libxcb-icccm4-dev
    dpkg-query: no packages found matching libxcb-image0-dev
    dpkg-query: no packages found matching libxcb-keysyms1-dev
    dpkg-query: no packages found matching libxcb-randr0-dev
    dpkg-query: no packages found matching libxcb-shape0-dev
    dpkg-query: no packages found matching libxcb-sync-dev
    dpkg-query: no packages found matching libxcb-xfixes0-dev
    dpkg-query: no packages found matching libxcb-xinerama0-dev
    dpkg-query: no packages found matching libxcb-dri3-dev
    dpkg-query: no packages found matching uuid-dev
    dpkg-query: no packages found matching libxcb-cursor-dev
    debconf: delaying package configuration, since apt-utils is not installed
    dpkg-query: no packages found matching libxcb-util-dev
    debconf: delaying package configuration, since apt-utils is not installed
    WARN: protobuf/3.21.12: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.8.1 to zlib/1.3.1 
    WARN: libxml2/2.12.3: requirement zlib/[>=1.2.11 <2] overridden by xkbcommon/1.6.0 to zlib/1.3.1 
    WARN: libpng/1.6.40: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.8.1 to zlib/1.3.1 
    WARN: openexr/3.2.1: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.8.1 to zlib/1.3.1 
    WARN: libtiff/4.6.0: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.8.1 to zlib/1.3.1 
    WARN: ffmpeg/4.4.4: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.8.1 to zlib/1.3.1 
    WARN: freetype/2.13.2: requirement libpng/1.6.42 overridden by ffmpeg/4.4.4 to libpng/1.6.40 
    WARN: freetype/2.13.2: requirement zlib/[>=1.2.10 <2] overridden by ffmpeg/4.4.4 to zlib/1.3.1 
    WARN: openssl/3.2.1: requirement zlib/[>=1.2.11 <2] overridden by ffmpeg/4.4.4 to zlib/1.3.1 
    WARN: pulseaudio/14.2: requirement openssl/[>=1.1 <4] overridden by ffmpeg/4.4.4 to openssl/3.2.1 
    opencv/4.8.1: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    opencv/4.8.1: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    opencv/4.8.1: ERROR: Package 'f461467d2ff87edb5359a5769813a5aa971283f1' build failed
    opencv/4.8.1: WARN: Build folder /home/conan/w/prod-v1/bsr/109275/eacee/.conan/data/opencv/4.8.1/_/_/build/f461467d2ff87edb5359a5769813a5aa971283f1/build/Release
    ERROR: opencv/4.8.1: Error in build() method, line 1557
    	self._patch_sources()
    while calling '_patch_sources', line 1284
    	pkgdatadir = os.path.join(self.dependencies["wayland-protocols"].package_folder, "res", "wayland-protocols")
    	KeyError: {'ref': wayland-protocols/unknown@unknown/unknown, 'build': False, 'direct': True, 'test': False, 'visible': True}
    
  • opencv/4.5.3: Didn't run or was cancelled before finishing

  • opencv/4.1.2: Didn't run or was cancelled before finishing

  • opencv/4.5.5: Didn't run or was cancelled before finishing


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline :x:

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Failure in build 2 (a1f7dd295ede037cfee5702277ee656f0fea564a):

  • opencv/4.5.5: Error running command conan graph info --requires opencv/4.5.5@#be7560d6c78bf1d8ddf95f8b94645884 -f json -pr:h /home/conan/w/prod-v2/bsr/94585/fbfed/profile_linux_11_libstdcpp11_17_gcc_release_64.-shared-False.txt -pr:b /home/conan/w/prod-v2/bsr/94585/fbfed/profile_linux_11_libstdcpp11_17_gcc_release_64..txt:

    ======== Computing dependency graph ========
    zlib/1.3.1: Not found in local cache, looking in remotes...
    zlib/1.3.1: Checking remote: conan-center
    zlib/1.3.1: Downloaded recipe revision af8f2ef3d8e0fddf1975281d7fe43bf6
    eigen/3.4.0: Not found in local cache, looking in remotes...
    eigen/3.4.0: Checking remote: conan-center
    eigen/3.4.0: Downloaded recipe revision 2e192482a8acff96fe34766adca2b24c
    protobuf/3.21.12: Not found in local cache, looking in remotes...
    protobuf/3.21.12: Checking remote: conan-center
    protobuf/3.21.12: Downloaded recipe revision ff413e7c6d81724e872661875af83e68
    ade/0.1.2d: Not found in local cache, looking in remotes...
    ade/0.1.2d: Checking remote: conan-center
    ade/0.1.2d: Downloaded recipe revision f225d0a218a7c9fbb81746806c7de53d
    gtk/system: Not found in local cache, looking in remotes...
    gtk/system: Checking remote: conan-center
    gtk/system: Downloaded recipe revision 3671596ecc796ec65f881b2cad66ce26
    libjpeg/9e: Not found in local cache, looking in remotes...
    libjpeg/9e: Checking remote: conan-center
    libjpeg/9e: Downloaded recipe revision 68269859e4325ddc3f995d1fd3fc9187
    jasper/4.1.0: Not found in local cache, looking in remotes...
    jasper/4.1.0: Checking remote: conan-center
    jasper/4.1.0: Downloaded recipe revision 8a06747f049d0ec600d7d53ab0aea2a3
    libpng/1.6.40: Not found in local cache, looking in remotes...
    libpng/1.6.40: Checking remote: conan-center
    libpng/1.6.40: Downloaded recipe revision 06f726bd4bfd83f5cdc10587826093f0
    openexr/3.2.1: Not found in local cache, looking in remotes...
    openexr/3.2.1: Checking remote: conan-center
    openexr/3.2.1: Downloaded recipe revision a9e64aac9c884e23955ca7e0c3fc573e
    imath/3.1.9: Not found in local cache, looking in remotes...
    imath/3.1.9: Checking remote: conan-center
    imath/3.1.9: Downloaded recipe revision ff1999f4d4a6885b68a84d0b039a5847
    libtiff/4.6.0: Not found in local cache, looking in remotes...
    libtiff/4.6.0: Checking remote: conan-center
    libtiff/4.6.0: Downloaded recipe revision 26284ca6514a94f6f4905e76708c2155
    libdeflate/1.19: Not found in local cache, looking in remotes...
    libdeflate/1.19: Checking remote: conan-center
    libdeflate/1.19: Downloaded recipe revision 3ea74a4549efc14d4b1202dc4bfbf602
    xz_utils/5.4.5: Not found in local cache, looking in remotes...
    xz_utils/5.4.5: Checking remote: conan-center
    xz_utils/5.4.5: Downloaded recipe revision a26a2d42ab9c3dabc151bbe1bf898e53
    jbig/20160605: Not found in local cache, looking in remotes...
    jbig/20160605: Checking remote: conan-center
    jbig/20160605: Downloaded recipe revision 2d29fa02aacd76902e0d2cbbc24631ef
    zstd/1.5.5: Not found in local cache, looking in remotes...
    zstd/1.5.5: Checking remote: conan-center
    zstd/1.5.5: Downloaded recipe revision b87dc3b185caa4b122979ac4ae8ef7e8
    libwebp/1.3.2: Not found in local cache, looking in remotes...
    libwebp/1.3.2: Checking remote: conan-center
    libwebp/1.3.2: Downloaded recipe revision 52f69c4a31c5cf033fdd9230d77a8e38
    cmake/3.28.1: Not found in local cache, looking in remotes...
    cmake/3.28.1: Checking remote: conan-center
    cmake/3.28.1: Downloaded recipe revision 92f79424d7b65b12a84a2180866c3a78
    quirc/1.2: Not found in local cache, looking in remotes...
    quirc/1.2: Checking remote: conan-center
    quirc/1.2: Downloaded recipe revision 92179dd521786aea0729f2c859cbbcb9
    ffmpeg/4.4.4: Not found in local cache, looking in remotes...
    ffmpeg/4.4.4: Checking remote: conan-center
    ffmpeg/4.4.4: Downloaded recipe revision 0e4bd98a7a3303ae108adb9940f9ec3f
    bzip2/1.0.8: Not found in local cache, looking in remotes...
    bzip2/1.0.8: Checking remote: conan-center
    bzip2/1.0.8: Downloaded recipe revision 457c272f7da34cb9c67456dd217d36c4
    libiconv/1.17: Not found in local cache, looking in remotes...
    libiconv/1.17: Checking remote: conan-center
    libiconv/1.17: Downloaded recipe revision 73fefc1b696e069df90fd1d18aa63edd
    freetype/2.13.2: Not found in local cache, looking in remotes...
    freetype/2.13.2: Checking remote: conan-center
    freetype/2.13.2: Downloaded recipe revision fa35264c88edc6421a850d08c67630f4
    Graph root
        cli
    Requirements
        ade/0.1.2d#f225d0a218a7c9fbb81746806c7de53d - Downloaded (conan-center)
        bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4 - Downloaded (conan-center)
        eigen/3.4.0#2e192482a8acff96fe34766adca2b24c - Downloaded (conan-center)
        ffmpeg/4.4.4#0e4bd98a7a3303ae108adb9940f9ec3f - Downloaded (conan-center)
        freetype/2.13.2#fa35264c88edc6421a850d08c67630f4 - Downloaded (conan-center)
        gtk/system#3671596ecc796ec65f881b2cad66ce26 - Downloaded (conan-center)
        imath/3.1.9#ff1999f4d4a6885b68a84d0b039a5847 - Downloaded (conan-center)
        jasper/4.1.0#8a06747f049d0ec600d7d53ab0aea2a3 - Downloaded (conan-center)
        jbig/20160605#2d29fa02aacd76902e0d2cbbc24631ef - Downloaded (conan-center)
        libdeflate/1.19#3ea74a4549efc14d4b1202dc4bfbf602 - Downloaded (conan-center)
        libiconv/1.17#73fefc1b696e069df90fd1d18aa63edd - Downloaded (conan-center)
        libjpeg/9e#68269859e4325ddc3f995d1fd3fc9187 - Downloaded (conan-center)
        libpng/1.6.40#06f726bd4bfd83f5cdc10587826093f0 - Downloaded (conan-center)
        libtiff/4.6.0#26284ca6514a94f6f4905e76708c2155 - Downloaded (conan-center)
        libwebp/1.3.2#52f69c4a31c5cf033fdd9230d77a8e38 - Downloaded (conan-center)
        opencv/4.5.5#be7560d6c78bf1d8ddf95f8b94645884 - Cache
        openexr/3.2.1#a9e64aac9c884e23955ca7e0c3fc573e - Downloaded (conan-center)
        protobuf/3.21.12#ff413e7c6d81724e872661875af83e68 - Downloaded (conan-center)
        quirc/1.2#92179dd521786aea0729f2c859cbbcb9 - Downloaded (conan-center)
        xz_utils/5.4.5#a26a2d42ab9c3dabc151bbe1bf898e53 - Downloaded (conan-center)
        zlib/1.3.1#af8f2ef3d8e0fddf1975281d7fe43bf6 - Downloaded (conan-center)
        zstd/1.5.5#b87dc3b185caa4b122979ac4ae8ef7e8 - Downloaded (conan-center)
    Build requirements
        cmake/3.28.1#92f79424d7b65b12a84a2180866c3a78 - Downloaded (conan-center)
    Resolved version ranges
        cmake/[>=3.18 <4]: cmake/3.28.1
        zlib/[>=1.2.11 <2]: zlib/1.3.1
    Graph error
        Version conflict: Conflict between libpng/1.6.42 and libpng/1.6.40 in the graph.
    Conflict originates from freetype/2.13.2
    
    Run conan graph info with your recipe and add --format=html to inspect the graph errors in an easier to visualize way.
    ERROR: Version conflict: Conflict between libpng/1.6.42 and libpng/1.6.40 in the graph.
    Conflict originates from freetype/2.13.2
    
    Run conan graph info with your recipe and add --format=html to inspect the graph errors in an easier to visualize way.
    
  • opencv/4.8.1: Didn't run or was cancelled before finishing

  • opencv/4.5.3: Didn't run or was cancelled before finishing

  • opencv/4.1.2: Didn't run or was cancelled before finishing


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

conan-center-bot avatar Feb 20 '24 20:02 conan-center-bot

Conan v1 pipeline :x:

Failure in build 3 (418384e556a103ae8967b70cd134895a74baf161):

  • opencv/4.8.1: Didn't run or was cancelled before finishing

  • opencv/4.5.5: CI failed to create some packages (All logs)

    Logs for packageID ab641d1fb9b50f311e67a70070b8751d2bac3ec0:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=5
    os=Linux
    [options]
    opencv:shared=False
    
    [...]
    dpkg-query: no packages found matching libxcb-xinerama0-dev
    dpkg-query: no packages found matching libxcb-dri3-dev
    dpkg-query: no packages found matching uuid-dev
    dpkg-query: no packages found matching libxcb-cursor-dev
    dpkg-query: no packages found matching libxcb-dri2-0-dev
    dpkg-query: no packages found matching libxcb-dri3-dev
    dpkg-query: no packages found matching libxcb-present-dev
    dpkg-query: no packages found matching libxcb-composite0-dev
    dpkg-query: no packages found matching libxcb-ewmh-dev
    dpkg-query: no packages found matching libxcb-res0-dev
    debconf: delaying package configuration, since apt-utils is not installed
    dpkg-query: no packages found matching libxcb-util-dev
    debconf: delaying package configuration, since apt-utils is not installed
    CMake Warning at cmake/OpenCVUtils.cmake:790 (message):
      Option WITH_QUIRC is disabled or unset but corresponding dependency have
      been explicitly turned on: "HAVE_QUIRC" is TRUE
    Call Stack (most recent call first):
      CMakeLists.txt:1730 (ocv_verify_config)
    
    
    CMake Error at cmake/OpenCVUtils.cmake:797 (message):
      Some dependencies have not been found or have been forced, unset
      ENABLE_CONFIG_VERIFICATION option to ignore these failures or change
      following options:
    
      WITH_QUIRC
    Call Stack (most recent call first):
      CMakeLists.txt:1730 (ocv_verify_config)
    
    
    CMake Warning:
      Value of OPENCV_BUILD_INFO_STR contained a newline; truncating
    
    
    WARN: protobuf/3.21.12: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.5.5 to zlib/1.3.1 
    WARN: libpng/1.6.40: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.5.5 to zlib/1.3.1 
    WARN: openexr/3.2.1: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.5.5 to zlib/1.3.1 
    WARN: libtiff/4.6.0: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.5.5 to zlib/1.3.1 
    WARN: ffmpeg/4.4.4: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.5.5 to zlib/1.3.1 
    WARN: freetype/2.13.2: requirement libpng/[>=1.6 <2] overridden by ffmpeg/4.4.4 to libpng/1.6.40 
    WARN: freetype/2.13.2: requirement zlib/[>=1.2.10 <2] overridden by ffmpeg/4.4.4 to zlib/1.3.1 
    WARN: openssl/3.2.1: requirement zlib/[>=1.2.11 <2] overridden by ffmpeg/4.4.4 to zlib/1.3.1 
    WARN: pulseaudio/14.2: requirement openssl/[>=1.1 <4] overridden by ffmpeg/4.4.4 to openssl/3.2.1 
    opencv/4.5.5: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    opencv/4.5.5: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    opencv/4.5.5: ERROR: Package 'ab641d1fb9b50f311e67a70070b8751d2bac3ec0' build failed
    opencv/4.5.5: WARN: Build folder /home/conan/w/prod-v1/bsr/118068/ffeaf/.conan/data/opencv/4.5.5/_/_/build/ab641d1fb9b50f311e67a70070b8751d2bac3ec0/build/Release
    ERROR: opencv/4.5.5: Error in build() method, line 1559
    	cmake.configure()
    	ConanException: Error 1 while executing cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/conan/w/prod-v1/bsr/118068/ffeaf/.conan/data/opencv/4.5.5/_/_/build/ab641d1fb9b50f311e67a70070b8751d2bac3ec0/build/Release/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/conan/w/prod-v1/bsr/118068/ffeaf/.conan/data/opencv/4.5.5/_/_/package/ab641d1fb9b50f311e67a70070b8751d2bac3ec0" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/conan/w/prod-v1/bsr/118068/ffeaf/.conan/data/opencv/4.5.5/_/_/build/ab641d1fb9b50f311e67a70070b8751d2bac3ec0/src"
    
  • opencv/4.5.3: Didn't run or was cancelled before finishing

  • opencv/4.1.2: Didn't run or was cancelled before finishing


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline :x:

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Failure in build 3 (418384e556a103ae8967b70cd134895a74baf161):

  • opencv/4.5.3: Didn't run or was cancelled before finishing

  • opencv/4.8.1: Didn't run or was cancelled before finishing

  • opencv/4.5.5: CI failed to create some packages (All logs)

    Logs for packageID ca885855d61c6aca84e2f4286a35192a74be4c3c:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.cppstd=17
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    [...]
    -- Verifying WITH_OPENCL_D3D11_NV= => 'HAVE_OPENCL_D3D11_NV'=FALSE
    -- Verifying WITH_LIBREALSENSE=OFF => 'HAVE_LIBREALSENSE'=FALSE
    -- Verifying WITH_VA=OFF => 'HAVE_VA'=FALSE
    -- Verifying WITH_VA_INTEL=OFF => 'HAVE_VA_INTEL'=FALSE
    -- Verifying WITH_MFX=OFF => 'HAVE_MFX'=FALSE
    -- Verifying WITH_GDAL=False => 'HAVE_GDAL'=FALSE
    -- Verifying WITH_GPHOTO2=OFF => 'HAVE_GPHOTO2'=FALSE
    -- Verifying WITH_LAPACK=OFF => 'HAVE_LAPACK'=FALSE
    -- Verifying WITH_ITT=OFF => 'HAVE_ITT'=FALSE
    -- Verifying WITH_PROTOBUF=True => 'HAVE_PROTOBUF'=TRUE
    -- Verifying WITH_IMGCODEC_HDR=False => 'HAVE_IMGCODEC_HDR'=FALSE
    -- Verifying WITH_IMGCODEC_SUNRASTER=False => 'HAVE_IMGCODEC_SUNRASTER'=FALSE
    -- Verifying WITH_IMGCODEC_PXM=False => 'HAVE_IMGCODEC_PXM'=FALSE
    -- Verifying WITH_IMGCODEC_PFM=False => 'HAVE_IMGCODEC_PFM'=FALSE
    -- Verifying WITH_QUIRC=OFF => 'HAVE_QUIRC'=TRUE
    CMake Warning at cmake/OpenCVUtils.cmake:790 (message):
      Option WITH_QUIRC is disabled or unset but corresponding dependency have
      been explicitly turned on: "HAVE_QUIRC" is TRUE
    Call Stack (most recent call first):
      CMakeLists.txt:1730 (ocv_verify_config)
    
    
    -- Verifying WITH_ANDROID_MEDIANDK= => 'HAVE_ANDROID_MEDIANDK'=FALSE
    -- Verifying WITH_ANDROID_NATIVE_CAMERA= => 'HAVE_ANDROID_NATIVE_CAMERA'=FALSE
    -- Verifying WITH_TENGINE= => 'HAVE_TENGINE'=FALSE
    -- Verifying WITH_ONNX=OFF => 'HAVE_ONNX'=FALSE
    CMake Error at cmake/OpenCVUtils.cmake:797 (message):
      Some dependencies have not been found or have been forced, unset
      ENABLE_CONFIG_VERIFICATION option to ignore these failures or change
      following options:
    
      WITH_QUIRC
    Call Stack (most recent call first):
      CMakeLists.txt:1730 (ocv_verify_config)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/conan/w/prod-v2/bsr/102980/feefc/p/b/opencba9746f5b8356/b/build/Release/CMakeFiles/CMakeOutput.log".
    See also "/home/conan/w/prod-v2/bsr/102980/feefc/p/b/opencba9746f5b8356/b/build/Release/CMakeFiles/CMakeError.log".
    CMake Warning:
      Value of OPENCV_BUILD_INFO_STR contained a newline; truncating
    
    
    
    opencv/4.5.5: ERROR: 
    Package 'ca885855d61c6aca84e2f4286a35192a74be4c3c' build failed
    opencv/4.5.5: WARN: Build folder /home/conan/w/prod-v2/bsr/102980/feefc/p/b/opencba9746f5b8356/b/build/Release
    ERROR: opencv/4.5.5: Error in build() method, line 1559
    	cmake.configure()
    	ConanException: Error 1 while executing
    
  • opencv/4.1.2: Didn't run or was cancelled before finishing


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

conan-center-bot avatar Mar 08 '24 12:03 conan-center-bot

Conan v1 pipeline :x:

Failure in build 4 (76e57fcedac8c590fe7cff328451af7de5668524):

  • opencv/4.8.1: CI failed to create some packages (All logs)

    Logs for packageID f461467d2ff87edb5359a5769813a5aa971283f1:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=5
    os=Linux
    [options]
    opencv:shared=False
    
    [...]
    dpkg-query: no packages found matching libxrender-dev
    dpkg-query: no packages found matching libxres-dev
    dpkg-query: no packages found matching libxss-dev
    dpkg-query: no packages found matching libxt-dev
    dpkg-query: no packages found matching libxtst-dev
    dpkg-query: no packages found matching libxv-dev
    dpkg-query: no packages found matching libxxf86vm-dev
    dpkg-query: no packages found matching libxcb-glx0-dev
    dpkg-query: no packages found matching libxcb-render0-dev
    dpkg-query: no packages found matching libxcb-render-util0-dev
    dpkg-query: no packages found matching libxcb-xkb-dev
    dpkg-query: no packages found matching libxcb-icccm4-dev
    dpkg-query: no packages found matching libxcb-image0-dev
    dpkg-query: no packages found matching libxcb-keysyms1-dev
    dpkg-query: no packages found matching libxcb-randr0-dev
    dpkg-query: no packages found matching libxcb-shape0-dev
    dpkg-query: no packages found matching libxcb-sync-dev
    dpkg-query: no packages found matching libxcb-xfixes0-dev
    dpkg-query: no packages found matching libxcb-xinerama0-dev
    dpkg-query: no packages found matching libxcb-dri3-dev
    dpkg-query: no packages found matching uuid-dev
    dpkg-query: no packages found matching libxcb-cursor-dev
    dpkg-query: no packages found matching libxcb-dri2-0-dev
    dpkg-query: no packages found matching libxcb-dri3-dev
    dpkg-query: no packages found matching libxcb-present-dev
    dpkg-query: no packages found matching libxcb-composite0-dev
    dpkg-query: no packages found matching libxcb-ewmh-dev
    dpkg-query: no packages found matching libxcb-res0-dev
    debconf: delaying package configuration, since apt-utils is not installed
    dpkg-query: no packages found matching libxcb-util-dev
    debconf: delaying package configuration, since apt-utils is not installed
    WARN: protobuf/3.21.12: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.8.1 to zlib/1.3.1 
    WARN: libxml2/2.12.3: requirement zlib/[>=1.2.11 <2] overridden by xkbcommon/1.6.0 to zlib/1.3.1 
    WARN: libpng/1.6.40: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.8.1 to zlib/1.3.1 
    WARN: openexr/3.2.1: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.8.1 to zlib/1.3.1 
    WARN: libtiff/4.6.0: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.8.1 to zlib/1.3.1 
    WARN: ffmpeg/4.4.4: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.8.1 to zlib/1.3.1 
    WARN: freetype/2.13.2: requirement libpng/[>=1.6 <2] overridden by ffmpeg/4.4.4 to libpng/1.6.40 
    WARN: freetype/2.13.2: requirement zlib/[>=1.2.10 <2] overridden by ffmpeg/4.4.4 to zlib/1.3.1 
    WARN: openssl/3.2.1: requirement zlib/[>=1.2.11 <2] overridden by ffmpeg/4.4.4 to zlib/1.3.1 
    WARN: pulseaudio/14.2: requirement openssl/[>=1.1 <4] overridden by ffmpeg/4.4.4 to openssl/3.2.1 
    opencv/4.8.1: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    opencv/4.8.1: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    opencv/4.8.1: ERROR: Package 'f461467d2ff87edb5359a5769813a5aa971283f1' build failed
    opencv/4.8.1: WARN: Build folder /home/conan/w/prod-v1/bsr/119724/bfeec/.conan/data/opencv/4.8.1/_/_/build/f461467d2ff87edb5359a5769813a5aa971283f1/build/Release
    ERROR: opencv/4.8.1: Error in build() method, line 1557
    	self._patch_sources()
    while calling '_patch_sources', line 1284
    	pkgdatadir = os.path.join(self.dependencies["wayland-protocols"].package_folder, "res", "wayland-protocols")
    	KeyError: {'ref': wayland-protocols/unknown@unknown/unknown, 'build': False, 'direct': True, 'test': False, 'visible': True}
    
  • opencv/4.1.2: Didn't run or was cancelled before finishing

  • opencv/4.5.3: Didn't run or was cancelled before finishing

  • opencv/4.5.5: Didn't run or was cancelled before finishing


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline :x:

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Failure in build 4 (76e57fcedac8c590fe7cff328451af7de5668524):

  • opencv/4.5.5: CI failed to create some packages (All logs)

    Logs for packageID ca885855d61c6aca84e2f4286a35192a74be4c3c:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.cppstd=17
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    [...]
    -- Verifying WITH_OPENCL_D3D11_NV= => 'HAVE_OPENCL_D3D11_NV'=FALSE
    -- Verifying WITH_LIBREALSENSE=OFF => 'HAVE_LIBREALSENSE'=FALSE
    -- Verifying WITH_VA=OFF => 'HAVE_VA'=FALSE
    -- Verifying WITH_VA_INTEL=OFF => 'HAVE_VA_INTEL'=FALSE
    -- Verifying WITH_MFX=OFF => 'HAVE_MFX'=FALSE
    -- Verifying WITH_GDAL=False => 'HAVE_GDAL'=FALSE
    -- Verifying WITH_GPHOTO2=OFF => 'HAVE_GPHOTO2'=FALSE
    -- Verifying WITH_LAPACK=OFF => 'HAVE_LAPACK'=FALSE
    -- Verifying WITH_ITT=OFF => 'HAVE_ITT'=FALSE
    -- Verifying WITH_PROTOBUF=True => 'HAVE_PROTOBUF'=TRUE
    -- Verifying WITH_IMGCODEC_HDR=False => 'HAVE_IMGCODEC_HDR'=FALSE
    -- Verifying WITH_IMGCODEC_SUNRASTER=False => 'HAVE_IMGCODEC_SUNRASTER'=FALSE
    -- Verifying WITH_IMGCODEC_PXM=False => 'HAVE_IMGCODEC_PXM'=FALSE
    -- Verifying WITH_IMGCODEC_PFM=False => 'HAVE_IMGCODEC_PFM'=FALSE
    -- Verifying WITH_QUIRC=OFF => 'HAVE_QUIRC'=TRUE
    CMake Warning at cmake/OpenCVUtils.cmake:790 (message):
      Option WITH_QUIRC is disabled or unset but corresponding dependency have
      been explicitly turned on: "HAVE_QUIRC" is TRUE
    Call Stack (most recent call first):
      CMakeLists.txt:1730 (ocv_verify_config)
    
    
    -- Verifying WITH_ANDROID_MEDIANDK= => 'HAVE_ANDROID_MEDIANDK'=FALSE
    -- Verifying WITH_ANDROID_NATIVE_CAMERA= => 'HAVE_ANDROID_NATIVE_CAMERA'=FALSE
    -- Verifying WITH_TENGINE= => 'HAVE_TENGINE'=FALSE
    -- Verifying WITH_ONNX=OFF => 'HAVE_ONNX'=FALSE
    CMake Error at cmake/OpenCVUtils.cmake:797 (message):
      Some dependencies have not been found or have been forced, unset
      ENABLE_CONFIG_VERIFICATION option to ignore these failures or change
      following options:
    
      WITH_QUIRC
    Call Stack (most recent call first):
      CMakeLists.txt:1730 (ocv_verify_config)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/conan/w/prod-v2/bsr/104765/baffb/p/b/opencea7e68b6f3583/b/build/Release/CMakeFiles/CMakeOutput.log".
    See also "/home/conan/w/prod-v2/bsr/104765/baffb/p/b/opencea7e68b6f3583/b/build/Release/CMakeFiles/CMakeError.log".
    CMake Warning:
      Value of OPENCV_BUILD_INFO_STR contained a newline; truncating
    
    
    
    opencv/4.5.5: ERROR: 
    Package 'ca885855d61c6aca84e2f4286a35192a74be4c3c' build failed
    opencv/4.5.5: WARN: Build folder /home/conan/w/prod-v2/bsr/104765/baffb/p/b/opencea7e68b6f3583/b/build/Release
    ERROR: opencv/4.5.5: Error in build() method, line 1559
    	cmake.configure()
    	ConanException: Error 1 while executing
    
  • opencv/4.5.3: Didn't run or was cancelled before finishing

  • opencv/4.1.2: Didn't run or was cancelled before finishing

  • opencv/4.8.1: Didn't run or was cancelled before finishing


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

conan-center-bot avatar Mar 13 '24 02:03 conan-center-bot

I've restarted the build now that quirc is properly handled :)

AbrilRBS avatar Mar 22 '24 11:03 AbrilRBS

Conan v1 pipeline :x:

Failure in build 1 (76e57fcedac8c590fe7cff328451af7de5668524):

  • opencv/4.1.2: CI failed to create some packages (All logs)

    Logs for packageID d8a4b92e751f45f155292536ce0dd24458a6bb7f:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=Visual Studio
    compiler.runtime=MD
    compiler.version=16
    os=Windows
    [options]
    opencv:shared=False
    
    [...]
    -- Verifying WITH_GPHOTO2= => 'HAVE_GPHOTO2'=FALSE
    -- Verifying WITH_LAPACK=OFF => 'HAVE_LAPACK'=FALSE
    -- Verifying WITH_ITT=OFF => 'HAVE_ITT'=FALSE
    -- Verifying WITH_PROTOBUF=True => 'HAVE_PROTOBUF'=TRUE
    -- Verifying WITH_IMGCODEC_HDR=False => 'HAVE_IMGCODEC_HDR'=FALSE
    -- Verifying WITH_IMGCODEC_SUNRASTER=False => 'HAVE_IMGCODEC_SUNRASTER'=FALSE
    -- Verifying WITH_IMGCODEC_PXM=False => 'HAVE_IMGCODEC_PXM'=FALSE
    -- Verifying WITH_IMGCODEC_PFM=False => 'HAVE_IMGCODEC_PFM'=FALSE
    -- Verifying WITH_QUIRC=False => 'HAVE_QUIRC'=FALSE
    -- Verifying WITH_ANDROID_MEDIANDK= => 'HAVE_ANDROID_MEDIANDK'=FALSE
    -- Configuring incomplete, errors occurred!
    See also "C:/J/workspace/prod-v1/bsr/7777/bceff/s/46e688/1/build/CMakeFiles/CMakeOutput.log".
    See also "C:/J/workspace/prod-v1/bsr/7777/bceff/s/46e688/1/build/CMakeFiles/CMakeError.log".
    opencv/4.1.2: 
    CMake Warning at cmake/OpenCVUtils.cmake:710 (message):
      Option WITH_OPENCL_D3D11_NV is enabled but corresponding dependency have
      not been found: "HAVE_OPENCL_D3D11_NV" is FALSE
    Call Stack (most recent call first):
      CMakeLists.txt:1552 (ocv_verify_config)
    
    
    CMake Error at cmake/OpenCVUtils.cmake:722 (message):
      Some dependencies have not been found or have been forced, unset
      ENABLE_CONFIG_VERIFICATION option to ignore these failures or change
      following options:
    
      WITH_OPENCL_D3D11_NV
    Call Stack (most recent call first):
      CMakeLists.txt:1552 (ocv_verify_config)
    
    
    CMake Warning:
      Value of OPENCV_BUILD_INFO_STR contained a newline; truncating
    
    
    WARN: protobuf/3.21.12: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.1.2 to zlib/1.3.1 
    WARN: libpng/1.6.43: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.1.2 to zlib/1.3.1 
    WARN: openexr/3.2.3: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.1.2 to zlib/1.3.1 
    WARN: libtiff/4.6.0: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.1.2 to zlib/1.3.1 
    WARN: ffmpeg/4.4.4: requirement zlib/[>=1.2.11 <2] overridden by opencv/4.1.2 to zlib/1.3.1 
    WARN: freetype/2.13.2: requirement libpng/[>=1.6 <2] overridden by ffmpeg/4.4.4 to libpng/1.6.43 
    WARN: freetype/2.13.2: requirement zlib/[>=1.2.10 <2] overridden by ffmpeg/4.4.4 to zlib/1.3.1 
    WARN: openssl/3.2.1: requirement zlib/[>=1.2.11 <2] overridden by ffmpeg/4.4.4 to zlib/1.3.1 
    opencv/4.1.2: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    opencv/4.1.2: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    opencv/4.1.2: ERROR: Package 'd8a4b92e751f45f155292536ce0dd24458a6bb7f' build failed
    opencv/4.1.2: WARN: Build folder C:/J/workspace/prod-v1/bsr/7777/bceff/s\46e688\1\build
    ERROR: opencv/4.1.2: Error in build() method, line 1565
    	cmake.configure()
    	ConanException: Error 1 while executing cmake -G "Visual Studio 16 2019" -DCMAKE_TOOLCHAIN_FILE="C:/J/workspace/prod-v1/bsr/7777/bceff/s/46e688/1/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/J/workspace/prod-v1/bsr/7777/bceff/s/e85fd1/1" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:/J/workspace/prod-v1/bsr/7777/bceff/s\46e688\1\src"
    
  • opencv/4.5.5: Didn't run or was cancelled before finishing

  • opencv/4.5.3: Didn't run or was cancelled before finishing

  • opencv/4.8.1: Didn't run or was cancelled before finishing

  • opencv/4.9.0: Didn't run or was cancelled before finishing


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline :x:

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Failure in build 1 (76e57fcedac8c590fe7cff328451af7de5668524):

  • opencv/4.9.0: Didn't run or was cancelled before finishing

  • opencv/4.8.1: Didn't run or was cancelled before finishing

  • opencv/4.5.5: Didn't run or was cancelled before finishing

  • opencv/4.5.3: Didn't run or was cancelled before finishing

  • opencv/4.1.2: CI failed to create some packages (All logs)

    Logs for packageID 10817ec28d83926b185f1b5fd47f4bd752b5599e:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=msvc
    compiler.cppstd=14
    compiler.runtime=dynamic
    compiler.runtime_type=Release
    compiler.version=192
    os=Windows
    [options]
    */*:shared=False
    
    [...]
    -- Verifying WITH_OPENCLAMDFFT=OFF => 'HAVE_CLAMDFFT'=FALSE
    -- Verifying WITH_OPENCLAMDBLAS=OFF => 'HAVE_CLAMDBLAS'=FALSE
    -- Verifying WITH_DIRECTX=ON => 'HAVE_DIRECTX'=TRUE
    -- Verifying WITH_OPENCL_D3D11_NV=ON => 'HAVE_OPENCL_D3D11_NV'=FALSE
    CMake Warning at cmake/OpenCVUtils.cmake:710 (message):
      Option WITH_OPENCL_D3D11_NV is enabled but corresponding dependency have
      not been found: "HAVE_OPENCL_D3D11_NV" is FALSE
    Call Stack (most recent call first):
      CMakeLists.txt:1552 (ocv_verify_config)
    
    
    -- Verifying WITH_LIBREALSENSE=OFF => 'HAVE_LIBREALSENSE'=FALSE
    -- Verifying WITH_VA=OFF => 'HAVE_VA'=FALSE
    -- Verifying WITH_VA_INTEL=OFF => 'HAVE_VA_INTEL'=FALSE
    -- Verifying WITH_MFX=OFF => 'HAVE_MFX'=FALSE
    -- Verifying WITH_GDAL=False => 'HAVE_GDAL'=FALSE
    -- Verifying WITH_GPHOTO2= => 'HAVE_GPHOTO2'=FALSE
    -- Verifying WITH_LAPACK=OFF => 'HAVE_LAPACK'=FALSE
    -- Verifying WITH_ITT=OFF => 'HAVE_ITT'=FALSE
    -- Verifying WITH_PROTOBUF=True => 'HAVE_PROTOBUF'=TRUE
    -- Verifying WITH_IMGCODEC_HDR=False => 'HAVE_IMGCODEC_HDR'=FALSE
    -- Verifying WITH_IMGCODEC_SUNRASTER=False => 'HAVE_IMGCODEC_SUNRASTER'=FALSE
    -- Verifying WITH_IMGCODEC_PXM=False => 'HAVE_IMGCODEC_PXM'=FALSE
    -- Verifying WITH_IMGCODEC_PFM=False => 'HAVE_IMGCODEC_PFM'=FALSE
    -- Verifying WITH_QUIRC=False => 'HAVE_QUIRC'=FALSE
    -- Verifying WITH_ANDROID_MEDIANDK= => 'HAVE_ANDROID_MEDIANDK'=FALSE
    CMake Error at cmake/OpenCVUtils.cmake:722 (message):
      Some dependencies have not been found or have been forced, unset
      ENABLE_CONFIG_VERIFICATION option to ignore these failures or change
      following options:
    
      WITH_OPENCL_D3D11_NV
    Call Stack (most recent call first):
      CMakeLists.txt:1552 (ocv_verify_config)
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/J/workspace/prod-v2/bsr/6546/accce/p/b/openc1234ec4786d18/b/build/CMakeFiles/CMakeOutput.log".
    See also "C:/J/workspace/prod-v2/bsr/6546/accce/p/b/openc1234ec4786d18/b/build/CMakeFiles/CMakeError.log".
    CMake Warning:
      Value of OPENCV_BUILD_INFO_STR contained a newline; truncating
    
    
    
    opencv/4.1.2: ERROR: 
    Package '10817ec28d83926b185f1b5fd47f4bd752b5599e' build failed
    opencv/4.1.2: WARN: Build folder C:\J\workspace\prod-v2\bsr\6546\accce\p\b\openc1234ec4786d18\b\build
    ERROR: opencv/4.1.2: Error in build() method, line 1565
    	cmake.configure()
    	ConanException: Error 1 while executing
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

conan-center-bot avatar Mar 22 '24 13:03 conan-center-bot

I figured something like this would happen:

  Some dependencies have not been found or have been forced, unset
  ENABLE_CONFIG_VERIFICATION option to ignore these failures or change
  following options:

  WITH_OPENCL_D3D11_NV

It looks like this is getting enabled by default because DirectX support is enabled by default (see: https://github.com/opencv/opencv/blob/f37924796f5e07d14b9011400573a48343a22d26/CMakeLists.txt#L424), so we could either disable WITH_DIRECTX or WITH_OPENCL_D3D11_NV -- I'm not sure about which option to go with.

connorsmacd avatar Apr 09 '24 17:04 connorsmacd