diff --git a/CMakeLists.txt b/CMakeLists.txt index 89f13b2879..c32f7197da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -186,11 +186,18 @@ if(HIP_FOUND AND Libva_FOUND AND Libdrm_FOUND) set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}.$ENV{ROCM_LIBPATCH_VERSION}") endif() + # Find Ubuntu 22.04 - Add libstdc++-12-dev package deps for Dev Package + file(READ "/etc/os-release" OS_RELEASE) + string(REGEX MATCH "22.04" UBUNTU_22_FOUND ${OS_RELEASE}) + # Set the dependent packages set(rocDecode_DEBIAN_PACKAGE_LIST "rocm-hip-runtime, mesa-amdgpu-multimedia") set(rocDecode_RPM_PACKAGE_LIST "rocm-hip-runtime, mesa-amdgpu-multimedia") # Set the dev dependent packages - TBD: mesa-amdgpu-multimedia-devel name will be changed to -dev set(rocDecode_DEBIAN_DEV_PACKAGE_LIST "rocm-hip-runtime-dev, mesa-amdgpu-multimedia-devel, pkg-config, ffmpeg, libavcodec-dev, libavformat-dev, libavutil-dev") + if(UBUNTU_22_FOUND) + set(rocDecode_DEBIAN_DEV_PACKAGE_LIST "${rocDecode_DEBIAN_DEV_PACKAGE_LIST}, libstdc++-12-dev") + endif() # TBD - RPM packages need Fusion Packages - "ffmpeg, libavcodec-devel, libavformat-devel, libavutil-devel" set(rocDecode_RPM_DEV_PACKAGE_LIST "rocm-hip-runtime-devel, mesa-amdgpu-multimedia-devel, pkg-config") diff --git a/README.md b/README.md index 12d5130fb7..950d846e56 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,8 @@ sudo yum install rocdecode rocdecode-devel rocdecode-test sudo zypper install rocdecode rocdecode-devel rocdecode-test ``` +**NOTE:** `RHEL`/`SLES` package install requires manual `FFMPEG V4.X` dev install + ### Source build and install ```shell