tce-load -i compiletc cmake libva2-dev intel-gmmlib-dev wget https://github.com/intel/media-driver/archive/refs/tags/intel-media-21.2.3.tar.gz cd media-driver-intel-media-21.2.3 mkdir build cd build cmake -LAH -DCMAKE_C_FLAGS_RELEASE="-flto -mtune=generic -Os -pipe" -DCMAKE_CXX_FLAGS_RELEASE="-flto -mtune=generic -Os -pipe -DNDEBUG" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -Wno-dev -DCMAKE_VERBOSE_MAKEFILE=TRUE -DCMAKE_INSTALL_LIBDIR=lib ../ [-fno-rtti] fails find . -name flags.make -type f -exec sed -i 's/-O2//g' {} \; find . -name flags.make -type f -exec sed -i 's/-g //g' {} \; make [22m 48.51s] sudo make install