![]() |
OpenCV 5.0.0
Open Source Computer Vision
|
Prev Tutorial: Installation in Windows
Next Tutorial: Installation in Linux
| | | | -: | :- |
This tutorial explains how to build OpenCV on Windows (AArch64) with ARM Performance Libraries (ARMPL) as a math backend. ARMPL provides optimized BLAS and LAPACK routines for Arm-based hardware and can significantly accelerate OpenCV operations such as DFT and DCT.
| File | Architecture | Size |
|---|---|---|
| arm-performance-libraries_26.01_Windows.msi | AArch64 | ~240 MiB |
OpenCV's CMake scripts (and the ARMPL runtime itself) need to find the library files at both build time and run time. Add the following entries to the System PATH variable:
Add the two paths below (adjust the version number if yours differs):
If you also need the extra modules:
Create a build directory and run CMake with ARMPL support enabled.
Without OpenMP (single-threaded ARMPL):
With OpenMP (multi-threaded ARMPL):
ARMPL ships both serial and OpenMP-enabled library variants. To use the multi-threaded variant, enable OpenMP in CMake:
Open the generated .sln file in Visual Studio and build the Release configuration, or build from the command line:
After a successful build, confirm that OpenCV detects ARMPL by running:
You should see a line similar to:
Alternatively, check the CMake configuration log for the line:
CMake cannot find ARMPL:
Make sure ARMPL_ROOT_DIR points to the folder that contains both include\ and lib\ sub-directories:
Runtime error: DLL not found:
Ensure that both the lib\ and bin\ directories are on the system PATH and that you opened a new Command Prompt after adding them (changes are not picked up by already-open sessions).
Linker errors with OpenMP:
If you see duplicate symbol errors when WITH_OPENMP=ON, make sure you are not also linking against the serial ARMPL library. Pass -DWITH_OPENMP=ON consistently and clean the build directory before re-running CMake.