Skip to content

Arm64 windows use opencv_core:1.4.3 build error, about opencv path config #389

@zhponng

Description

@zhponng

Describe the bug

  1. OS: Windows 11 Arm 64
  2. flutter version: 3.35.3
  3. use opencv_core:1.4.3, and build target is windows,it will throw error:
CMake Warning at C:/Users/xxxx/Desktop/xxxx/xxxx/example/build/windows/x64/_deps/libopencv-src/OpenCVConfig.cmake:190 (message):
  Found OpenCV Windows Pack but it has no binaries compatible with your
  configuration.

  You should manually point CMake variable OpenCV_DIR to your build of OpenCV
  library.
Call Stack (most recent call first):
  C:/Users/xxxx/Desktop/xxxx/xxxx/example/build/windows/x64/_deps/libdartcv-src/CMakeLists.txt:60 (find_package)


CMake Error at C:/Users/xxxx/Desktop/xxxx/xxxx/example/build/windows/x64/_deps/libdartcv-src/CMakeLists.txt:60 (find_package):
  Found package configuration file:

    C:/Users/xxxx/Desktop/xxxx/xxxx/example/build/windows/x64/_deps/libopencv-src/OpenCVConfig.cmake

  but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
  NOT FOUND.

There is a related issue with the opencv path in the log information, but everything works normally when using it on a Mac and building for Android or iOS, and no additional opencv path settings have been made. Are there any extra configuration parameters needed on Windows?

To Reproduce
None

Expected behavior
Build success

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 11 24H2 Arm64

Smartphone (please complete the following information):
None

Additional context
flutter doctor result:

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.35.3, on Microsoft Windows [Version 10.0.26100.6584],
    locale zh-CN)
[√] Windows Version (Windows 11 or higher, 24H2, 2009)
[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/to/windows-android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.14.15
    (September 2025))
[!] Android Studio (not installed)
[√] VS Code (version 1.104.1)
[!] Proxy Configuration
    ! NO_PROXY is not set
[√] Connected device (3 available)
[√] Network resources

! Doctor found issues in 3 categories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions