sudo apt install ninja-build yasm pandoc cmake libpng-dev libjpeg-dev
Установка libaom
Download the releasewget https://storage.googleapis.com/aom-releases/libaom-3.9.1.tar.gz
Uncompress ittar xzf libaom-3.9.1.tar.gz
Create a temporary directory for the buildmkdir libaom-3.9.1/aom-build
Move into itpushd libaom-3.9.1/aom-build
Configure the build
cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_SHARED_LIBS=1 \ -DENABLE_DOCS=no \ -G Ninja ..
Установка libavif
Download the release (for some reason I get a 403 when I use wget)curl -Lo libavif-1.1.1.tar.gz https://github.com/AOMediaCodec/libavif/archive/refs/tags/v1.1.1.tar.gz
Uncompress ittar xzf libavif-1.1.1.tar.gz
Create a temporary directory for the buildmkdir libavif-1.1.1/build
Move into itpushd libavif-1.1.1/build
Configure the build.
If you don’t want to install the manpage, remove -DAVIF_BUILD_MAN_PAGES=ON
cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DAVIF_CODEC_AOM=ON \ -DAVIF_BUILD_GDK_PIXBUF=ON \ -DAVIF_BUILD_MAN_PAGES=ON \ -DAVIF_BUILD_APPS=ON \ -G Ninja ..
Если возникает ошибка связанная с отсутствием libyuv . Устанавливаем:
apt install libyuv-dev
Buildninja
Installsudo ninja install
Exit the temporary directorypopd
Clean uprm -rf libavif-1.1.1*