我尝试按照“如何为 Ubuntu 编译 FFmpeg”中的说明进行操作为 Ubuntu、Debian 或 Mint 编译 FFmpeg。
这些都是:
sudo apt-get update -qq && sudo apt-get -y install \
autoconf \
automake \
build-essential \
cmake \
git-core \
libass-dev \
libfreetype6-dev \
libgnutls28-dev \
libsdl2-dev \
libtool \
libva-dev \
libvdpau-dev \
libvorbis-dev \
libxcb1-dev \
libxcb-shm0-dev \
libxcb-xfixes0-dev \
pkg-config \
texinfo \
wget \
yasm \
zlib1g-dev
然而,我得到:
The following packages have unmet dependencies.
libsdl2-dev : Depends: libsdl2-2.0-0 (= 2.0.8+dfsg1-1ubuntu1.18.04.4) but 2.0.9+dfsg1-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
答案1
解决方法:
sudo apt-get install libsdl2-2.0-0/bionic
...并让它删除 32 位版本的 libsdl2。