Skip to content

[Build] Error building opencv on Windows-Arm #24006

@mwangistan

Description

@mwangistan

Expected behaviour

I'm building opencv-python-headless-4.8.0.74 on Windows ARM. The aim is to generate a .whl file after running
python setup.py bdist_wheel

Actual behaviour

The build fails with an error

opencv-python-headless-4.8.0.74\opencv\modules\dnn\src\layers\cpu_kernels\conv_block.simd.hpp(461,9): error C2678: binary '+=': n
o operator found which takes a left-hand operand of type 'float32x4_t' (or there is no acceptable conversion) (compiling source file C:\Users\snjoroge\AppData\Local\Temp\easy_install-uowrh
x5q\opencv-python-headless-4.8.0.74\opencv\modules\dnn\src\layers\cpu_kernels\convolution.cpp) [C:\Users\s\AppData\Local\Temp\easy_install-uowrhx5q\opencv-python-headless-4.8.0.74\_
skbuild\win-arm64-3.11\cmake-build\modules\dnn\opencv_dnn.vcxproj]

Steps to reproduce

I've installed:

1. MSVC v143 - VS 2022 C++ ARM64/ARM64EC build tools (latest)
2. MSVC v143 - VS 2022 C++ ARM64/ARM64EC Spectre-mitigated libs (Latest)
3. Windows 11 SDK (10.0.22621.0)
4. C++ ATL for latest v143 build tools with SPectre Mitigations (ARM64/ARM64EC)
5. C++ ATL for latest v143 build tools (ARM64/ARM64EC)

Command ran:
python setup.py bdist_wheel

Issue submission checklist
  • This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
  • I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
  • The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
  • I'm using the latest version of opencv-python

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions