Building and installing rocJPEG from source code#
These instructions are for building rocJPEG from its source code. If you will not be contributing to the rocJPEG code base or previewing features, package installers are available.
Note
ROCm 6.3.0 or later must be installed before installing rocJPEG. See Quick start installation guide for detailed ROCm installation instructions.
Use rocJPEG-setup.py available from the rocJPEG GitHub repo to install the prerequisites:
python rocJPEG-setup.py --rocm_path [ ROCm Installation Path - optional (default:/opt/rocm)]
Build and install rocJPEG using the following commands:
git clone https://github.com/ROCm/rocJPEG.git
cd rocJPEG
mkdir build && cd build
cmake ../
make -j8
sudo make install
After installation, the rocJPEG libraries will be copied to /opt/rocm/lib
and the rocJPEG header files will be copied to /opt/rocm/include/rocjpeg
.
Install the CTest module:
mkdir rocjpeg-test && cd rocjpeg-test
cmake /opt/rocm/share/rocjpeg/test/
ctest -VV
To test your build, run make test
. To run the test with the verbose option, run make test ARGS=\"-VV\"
.