-
Notifications
You must be signed in to change notification settings - Fork 460
Build Media SDK on Ubuntu
This build documentation was tested under clear Ubuntu Server 18.04 (with gcc-7.3.0, gcc-8.1.0 and clang-6.0 compilers) but it should work on another OS distributions with various versions of gcc and clang.
sudo apt-get install git cmake pkg-configThe minimum required meson version is 0.37.0 or later
sudo apt-get install meson libdrm-dev automake
#Take the recommended working version libva: https://github.com/intel/libva/releases/tag/2.1.1.pre1-20180601
#For that do the following:
git clone https://github.com/intel/libva.git
git checkout tags/2.1.1.pre1-20180601
cd libva
meson build
ninja -C build
#To install it on your system:
cd build
sudo ninja installPackages needed for test_monitor:
sudo apt-get install googletest libgtest-dev libgtest-dev libpciaccess0 libpciaccess-devPackages needed for rotate_opencl plugin:
sudo apt-get install opencl-headers ocl-icd-dev
#Download package from https://github.com/intel/compute-runtime/releases/tag/18.24.10921
dpkg -i intel-opencl_18.24.10921_amd64.debUse 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 2.8.5 or later
mkdir build && cd build
cmake ..
makeProTip: Output of
cmakewill 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:
sudo apt-get install clang-6.0
mkdir build && cd build
cmake .. -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