ERROR: x265 not found using pkg-config

question

After compiling x265 by

hg clone http://hg.videolan.org/x265
cd x265/build
cmake ../source
make -j8;make install

I encountered the following error when compiling ffmpeg --enable-libx265:

ERROR: x265 not found using pkg-config
解决

Here it is because pkg-config is not installed; install pkg-config:

  • Download the installation package
    Download the required version at https://www.freedesktop.org/wiki/Software/pkg-config/, here is 0.29.2:
wget https://pkg-config.freedesktop.org/releases/pkg-config-0.29.2.tar.gz
  • compile
tar -xvf pkg-config-0.29.2.tar.gz
cd pkg-config-0.29.2
./configure  --with-internal-glib
make -j9
make install

Then

pkg-config --list-all|grep x265

can be seen

x265                  x265 - H.265/HEVC video encoder

Then recompile ffmpeg and it will succeed.

おすすめ

転載: blog.csdn.net/BigerBang/article/details/106649566