- Notifications
You must be signed in to change notification settings - Fork900
add support for building windows/arm64 package#644
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
CI failures look unrelated to this patch. Any idea? |
asenyaev commentedApr 1, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 docssaid:
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 |
asenyaev commentedApr 8, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 ithere) Thanks a lot to @nsait-linaro! |
sid0710 commentedJun 14, 2023
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. |
sid0710 commentedJun 14, 2023
Sorry about that, here is the error -
|
alexwan7 commentedMar 18, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@asenyaev,@sid0710 Hi, I am wondering if you can successfully get it built? I see the same error message as you did. Sorry to bump the archive post, just In case you have any thoughts@asmorkalov . I am building with py311(latest pip and wheel) on win11 ARM64 (WIN11 SDK 10.0.26100.0 installed) |
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