-
Notifications
You must be signed in to change notification settings - Fork 463
Build Media SDK on CentOS
This build documentation was tested under clear CentOS 7.4 (with gcc-6.3.1 compiler) but it should work on another OS distributions with various versions of gcc and clang.
sudo yum install git cmake3 pkgconfigsudo yum install libdrm libdrm-devel automake autoconf libtool
yum install centos-release-scl
yum install devtoolset-6
#Take the recommended working version libva: https://github.com/intel/libva/releases/tag/2.3.0
#For that do the following:
git clone https://github.com/intel/libva.git
cd libva
git checkout tag/2.6.0.pre1
scl enable devtoolset-6 bash
./autogen.sh
make
#To install it on your system:
sudo make installEnable epel repository:
sudo yum install epel-releasePackages needed for test_monitor:
sudo yum install libpciaccess libpciaccess-develPackages needed for rotate_opencl plugin:
sudo yum install ocl-icd ocl-icd-devel
#Compile OpenCL from these cources: https://github.com/intel/compute-runtime/releases/tag/18.24.10921
#By using these instructions: https://github.com/intel/compute-runtime/blob/master/documentation/BUILD_Centos.md
sudo rpm -ihv intel-opencl-1.0-0.x86_64-igdrcl.rpm
Packages needed for wayland:
yum install libffi libffi-devel expat expat-devel
#Install package:
wget https://wayland.freedesktop.org/releases/wayland-1.8.93.tar.xz
tar xf wayland-1.8.93.tar.xz
cd wayland-1.8.93
./configure --disable-documentation
# If wayland-client can't be found while cmake try this:
./configure --disable-documentation --prefix=/usr --libdir=/usr/lib64
make
make install
Packages needed for X11:
yum install libX11 libXext libXfixes libGL libGL-devel libX11-devel
#After that rebuild libva
Packages needed for Googletest:
#Version of googletest must be at least 1.7
git clone https://github.com/google/googletest
cd googletest
mkdir build
cd ./builld
cmake3 -DCMAKE_CXX_FLAGS="-fPIC -pthread" ..
make
make install
Use the following Git* command (pay attention that to get full Media SDK sources bundle it is required to have Git* with LFS support):
git clone https://github.com/Intel-Media-SDK/MediaSDK msdk
cd msdkUse cmake version 3.6.1 or later
scl enable devtoolset-6 bash
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/usr/local/lib/pkgconfig
mkdir build && cd build
cmake3 ..
makeProTip: Output of
cmake3will have full information about the configuration in which Media SDK will be built. Read it carefully.
ProTip: Use following command to speed up the build:
make -j12where 12 - is number of cores on your host
After that you will have all Media SDK binaries in the folder build.
In addition to all previous steps install clang and configure cmake to use clang during the build:
yum install clang-6.0
mkdir build && cd build
cmake3 .. -DCMAKE_C_COMPILER=clang-6.0 -DCMAKE_CXX_COMPILER=clang++-6.0
makemake install- Media SDK for Linux
- Media SDK for Windows
- FFmpeg QSV
- GStreamer MSDK
- Docker
- Usage guides
- Building Media SDK
- Running Media SDK CI tests
- Additional information
- Multi-Frame Encode