Skip to content

[opencv] build failure #14171

@issdn

Description

@issdn

Host Environment

  • OS: Windows 10
  • Compiler: revision

To Reproduce
Steps to reproduce the behavior:
.\vcpkg install opencv[core,dnn,ffmpeg,jpeg,opengl,png,tiff,webp] --triplet x64-windows
.\vcpkg install darknet[full]:x64-windows
.\vcpkg install darknet[opencv-base,cuda,cudnn] --triplet x64-windows

Failure logs
Computing installation plan...
The following packages will be built and installed:
darknet[core,cuda,cudnn,opencv-base]:x64-windows

  • opencv[core,dnn,ffmpeg,jpeg,opengl,png,tiff,webp]:x64-windows
  • opencv4[core,dnn,ffmpeg,jpeg,opengl,png,tiff,webp]:x64-windows
    Additional packages (*) will be modified to complete this operation.
    Detecting compiler hash for triplet x64-windows...
    Starting package 1/3: opencv4:x64-windows
    Building package opencv4[core,dnn,ffmpeg,jpeg,opengl,png,tiff,webp]:x64-windows...
    Could not locate cached archive: C:\Users\runji\AppData\Local\vcpkg\archives\95\953199745b91131c12e335bfdb55eefe7d7b784c.zip
    -- Using cached C:/vcpkg/downloads/opencv-opencv-4.3.0.tar.gz
    -- Cleaning sources at C:/vcpkg/buildtrees/opencv4/src/4.3.0-1e84697c4a.clean. Use --editable to skip cleaning for the packages you specify.
    -- Extracting source C:/vcpkg/downloads/opencv-opencv-4.3.0.tar.gz
    -- Applying patch 0001-disable-downloading.patch
    -- Applying patch 0002-install-options.patch
    -- Applying patch 0003-force-package-requirements.patch
    -- Applying patch 0004-fix-policy-CMP0057.patch
    -- Applying patch 0006-jpeg2000_getref.patch
    -- Applying patch 0009-fix-uwp.patch
    -- Using source at C:/vcpkg/buildtrees/opencv4/src/4.3.0-1e84697c4a.clean
    -- Using cached C:/vcpkg/downloads/opencv-cache/tiny_dnn/adb1c512e09ca2c7a6faef36f9c53e59-v1.0.0a3.tar.gz
    -- Configuring x64-windows
    CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:85 (message):
    Command failed: ninja -v
    Working Directory: C:/vcpkg/buildtrees/opencv4/x64-windows-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
    C:\vcpkg\buildtrees\opencv4\config-x64-windows-out.log

Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:312 (vcpkg_execute_required_process)
ports/opencv4/portfile.cmake:280 (vcpkg_configure_cmake)
scripts/ports.cmake:79 (include)

Error: Building package opencv4:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: opencv4:x64-windows
Vcpkg version: 2020.06.15-nohash

Additionally, attach any relevant sections from the log files above.
config-x64-windows-out.log

Additional context
Add any other context about the problem here, such as what you have already tried to resolve the issue.

I tried updating vcpkg and cmake, reinstalling everything.

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions