Create OpenCV applications on Windows on Arm
Introduction
OpenCV and Compilers for Windows on Arm
Setup
Build OpenCV Applications with Clang
Build OpenCV Applications with MSVC
Next Steps
Create OpenCV applications on Windows on Arm
Who is this for?
This is an advanced topic for software developers who want to build and develop applications on Windows on Arm devices using OpenCV.
What will you learn?
Upon completion of this Learning Path, you will be able to:
- Build the OpenCV library for Windows on Arm devices.
- Develop applications using OpenCV.
Prerequisites
Before starting, you will need the following:
- A Windows on Arm machine such as the Lenovo Thinkpad X13s, or an Azure virtual machine .
Summary
This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
You’ll build OpenCV from source on Windows on Arm and create a minimal C++ application. First, you’ll clone the OpenCV repository, check out the validated
4.10.0 tag, and configure CMake with either MSVC or Clang. Then, you’ll compile OpenCV and a test program that links against its generated libraries to validate your toolchain and environment.Frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Add the directory containing the OpenCV DLLs to your
PATH, or place the DLLs beside the executable. This lets the test application find the required libraries at runtime.Use tag
4.10.0. You might be able to use a later version, but if you run into issues, switch back to 4.10.0.Use CMake
3.28.1 and run the commands from Windows PowerShell using the CMake command-line interface.A successful run shows CMake configuration and compilation completing without errors. The build produces OpenCV libraries and a test application in the build directory that you created. Building the test program against OpenCV confirms the environment is set up correctly.
Yes. Use Visual Studio 2022 or later for the MSVC flow. The instructions were tested with Visual Studio 2022. If you choose Clang, follow the Clang section and its tool setup.