Skip to content

Can not build the project in W11 on ARM64 #1092

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
alexwan7 opened this issue Mar 18, 2025 · 3 comments
Open

Can not build the project in W11 on ARM64 #1092

alexwan7 opened this issue Mar 18, 2025 · 3 comments

Comments

@alexwan7
Copy link

alexwan7 commented Mar 18, 2025

I failed to install the package directly from PIP or manual build.
I found a related issue opened at #644 (comment) from two years ago. I installed all the tools and dependencies mentioned in the comment and repository's Manual Build section. However, I see bunch of error messages related to the cmake building.

I am wondering if ARM64 on W11 is supported? Could you please add the ARM64 on windows wheel to the CI?

@alexwan7 alexwan7 changed the title Can not build the project in ARM64 on Windows11 Can not build the project in W11 on ARM64 Mar 19, 2025
@khmyznikov
Copy link

Please provide native wheel for WoA. GitHub Actions now supports win-arm64 for free.

Due to the library's popularity, a native version for the growing number of Windows on ARM (WoA) devices offers a better user experience

@khmyznikov
Copy link

Latest info about the build process I have:

  • VS22 with v143 toolkits. No success.
  • VS19 with v142 toolkits. No success. Issue with virtual memory. Couldn't make it work.
  • Got back to VS22 to debug those errors. Issues are related to FP16 support or better to say non-support. MSVC++ doesn't support FP16 identifiers used all across opencv-python codebase. Tried replacing them with known data types, but it would take some time considering how deep some of them are inside modules.
  • Had to turn off NEON flag. Take a look at the snippet
  • After carefully examining all problematic paths, turned out they are related to only two files - Winograd convolution and standard convolution. Both part of so-called DNN module.
  • I simply turned DNN modules build off and build it without them.
cmake_args.append("-DBUILD_opencv_dnn=OFF")
cmake_args.append("-DENABLE_NEON=OFF")

@khmyznikov
Copy link

related #806

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants