Skip to content

Build opencv-rust fail in windows #93

@curly-wei

Description

@curly-wei

Hi:
I sure Vcpkg and opencv4 for Vcpkg has been installed.
(I using vcpkg_cli test)

$ vcpkg_cli probe opencv4
Found library opencv4
Include paths:
  C:\SDKs\vcpkg\installed\x64-windows\include
Library paths:
  C:\SDKs\vcpkg\installed\x64-windows\lib
Runtime Library paths:
  C:\SDKs\vcpkg\installed\x64-windows\bin
Cargo metadata:
...
...
...

Source code and building refer to:
Basic example file: window
but still has error message, looks like I without installed Vcpkg-opencv.

   Compiling cpp v0.5.4
   Compiling opencv v0.29.3
error: failed to run custom build command for `opencv v0.29.3`

Caused by:
  process didn't exit successfully: `C:\Users\curlywei\Downloads\rust-test\opencvrs\target\debug\build\opencv-98c8a72dc5cf55ee\build-script-build` (exit code: 1)
--- stderr
=== Setting up OpenCV library from vcpkg
Error: "Package opencv4 is not found, caused by: Could not find library in Vcpkg tree opencv4"

warning: build failed, waiting for other jobs to finish...
error: build failed

How do I solve it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions