-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
opencv_rgbd - Windows ARM64 / ARM64EC - Build issue - 4.10.0 #3767
Comments
Fix ideas:
Current work around:
|
Hello, I'm not friendly to "ARM64EC", so I'm sorry if I have mistake. On OpenCV code, cnt is used only for zlib-ng and hal. kmtr@kmtr-VMware-Virtual-Platform:~/work/opencv4/modules$ git reset --hard
HEAD is now at 15783d6598 Merge pull request #25792 from asmorkalov:as/HAL_fast_GaussianBlur
kmtr@kmtr-VMware-Virtual-Platform:~/work/opencv4/modules$ git grep tzcnt
core/include/opencv2/core/hal/intrin.hpp: // clang-cl doesn't export _tzcnt_u32 for non BMI systems
core/include/opencv2/core/hal/intrin.hpp: return _tzcnt_u32(value); I think we have to add condition for ARM64EC to stop using Microsoft document is https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170 For ARM64EC target, "_M_ARM" and "_M_ARM64" is undefined. So OpenCV try to use
So I think we should add condition for M_ARM64 . - #if (_MSC_VER < 1700) || defined(_M_ARM) || defined(_M_ARM64)
+ #if (_MSC_VER < 1700) || defined(_M_ARM) || defined(_M_ARM64) || defined(_M_ARM64EC)
unsigned long index = 0;
_BitScanForward(&index, value);
return (unsigned int)index; |
Yeah that should fix it! |
Thank you for your report ! I'll change pull request status to remove draft ! |
System information (version)
Visual Studio 17 2022
Detailed description
Compile for VS2022 - MSVC - CMakeList - ARM64 / ARM64EC
Steps to reproduce
Error:
https://github.com/openframeworks/apothecary/actions/runs/9874992463/job/27270618800?pr=390
buildarm64ec.log
Issue submission checklist
I report the issue, it's not a question
I checked the problem with documentation, FAQ, open issues,
forum.opencv.org, Stack Overflow, etc and have not found any solution
I updated to the latest OpenCV version and the issue is still there
There is reproducer code and related data files: videos, images, onnx, etc
The text was updated successfully, but these errors were encountered: