Building and installing rocCV from source code#
2025-08-12
1 min read time
ROCm must be installed before building and installing rocCV from source code.
The rocCV source code is available from ROCm/rocCV. Use the rocCV version that corresponds to the installed version of ROCm.
You can use the rocCV-setup.py
setup script to install most prerequisites:
python3 rocCV-setup.py [-h] [--rocm_path ROCM_PATH; default /opt/rocm]
Note
OpenCv and DLPack must be installed manually on SLES and RHEL.
To build and install rocCV, create the build
directory under the rocCV
root directory:
mkdir build
Change directory to build
and use the cmake
command to generate a makefile:
cd build
cmake ../
Build rocCV using cmake
:
cmake --build . --parallel
Use make
to install rocCV:
sudo make install
You can optionally create deb, rpm, and gzip packages for distribution:
sudo make package
Run ctest
in the build
directory to verify the installation.