-
Notifications
You must be signed in to change notification settings - Fork 856
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
add support for building windows/arm64 package #644
Conversation
CI failures look unrelated to this patch. Any idea? |
Hi, @nsait-linaro! It was a network issue on a runner. I've restarted jobs. In addition, I'm going to test your changes on ARM Windows. |
Thanks. Looks like passing now ! Can this be merged please ? |
asenyaev is working on ARM Windows setup right now to check the new platform. We will merge the patch soon, if it works well on our side too. |
Hi @nsait-linaro! I've tried to build opencv-python package on a Virtual Machine with Windows ARM with your changes, and a wheel was built as In addition, Visual Studio docs said:
Could you tell me please, what is your workaround? |
Thanks, @asenyaev for trying! Visual Studio doesn't yet have native ARM64 toolchain but that is okay as we can run in emulation and target ARM64. You will need to install few ARM64 specific components in visual studio. I have used the following but other versions probably would work as well.
Also just make sure you are using a Python (Arm64) rather than Amd64 version. Otherwise, it will generate AMD64 wheels. |
Thank you for the explanation! I've also faced an issue with building |
Did you try |
Yes, I tried it, it has been broken. Thanks for the suggestion, it works and a build started. I'll let you know the result when the build is complete. |
@nsait-linaro, it's finally was built successfully! Thank you for the contribution and support! |
No worries ! Thanks for trying out the patch |
I want to summarize the current status how to build opencv-python package on Windows ARM. You need to follow steps:
If you need install OpenCV python package with opencv_contrib or without UI, you have to define environment variables (check it here) Thanks a lot to @nsait-linaro! |
I tried these steps and finally on the "pip wheel . --verbose" step, its failing -
Any guidance on how to proceed from here would be really appreciated. |
Actual issue is above in the console log. It's not visible in your message. |
Sorry about that, here is the error -
|
This patch adds support for building windows/arm64 python package.
Python binary wheels can be created successfully with
python setup.py bdist_wheel
and passes all tests.Test Results