Building and installing rocDecode from source code#
If you will be contributing to the rocDecode code base, or if you want to preview new features, build rocDecode from its source code.
If you will not be previewing features or contributing to the code base, use the package installers to install rocDecode.
Before building rocDecode, use rocDecode-setup.py to install all the required prerequisites:
python3 rocDecode-setup.py [--rocm_path ROCM_INSTALLATION_PATH; default=/opt/rocm]
[--runtime {ON|OFF}; default=ON]
[--developer {ON|OFF}; default=OFF]
Note
Never run rocDecode-setup.py
with --runtime OFF
.
--developer ON
is required to use the code samples.
Build and install rocDecode using the following commands:
git clone https://github.com/ROCm/rocDecode.git
cd rocDecode
mkdir build && cd build
cmake ../
make -j8
sudo make install
After installation, the rocDecode libraries will be copied to /opt/rocm/lib
and the rocDecode header files will be copied to /opt/rocm/include/rocdecode
.
Build and install the rocDecode test module. This module is required if you’ll be using the rocDecode samples, and can only be installed if rocDecode-setup.py
was run with --developer ON
.
mkdir rocdecode-test && cd rocdecode-test
cmake /opt/rocm/share/rocdecode/test/
ctest -VV
Run make test
to test your build. To run the test with the verbose option, run make test ARGS="-VV"
.
To create a package installer for rocDecode, run:
sudo make package