Install MIVisionX using the Linux package installer#
Note
Prebuilt MIVisionX packages are available for ROCm 7.2.x and below. For ROCm 7.13 and later, build and install from source on top of the ROCm Core SDK.
Three MIVisionX packages are available on Linux:
mivisionx: The MIVisionX runtime package. It provides the dynamic libraries and executables. It must always be installed.mivisionx-dev: The MIVisionX development package. This package installs a full suite of libraries, header files, and samples. This package needs to be installed to use samples.mivisionx-test: A test package that provides a CTest to verify the installation.All the required prerequisites are installed when the package installation method is used.
Note
The package installation only supports the HIP backend. Build and install from source to use the OpenCL backend.
Basic installation#
Use the following commands to install only the MIVisionX runtime package:
sudo apt install mivisionx
sudo yum install mivisionx
sudo zypper install mivisionx
Complete installation#
Use the following commands to install mivisionx, mivisionx-dev, and mivisionx-test:
sudo apt-get install mivisionx mivisionx-dev mivisionx-test
sudo yum install mivisionx mivisionx-devel mivisionx-test
sudo zypper install mivisionx mivisionx-devel mivisionx-test
The test package installs a ctest module to verify MIVisionX. Run the following commands to test the installation:
mkdir mivisionx-test && cd mivisionx-test
cmake /opt/rocm/share/mivisionx/test/
ctest -VV