[FFmpeg-user] building ffmpeg on Oracle Linux 7.9 with libx265

Jack Sinclair tekspirit at gmail.com
Wed Mar 24 07:40:10 EET 2021


Hi,

I am compiling ffmpeg for the Fedora-similar OS Oracle Linux, and following
the Centos instructions at
https://trac.ffmpeg.org/wiki/CompilationGuide/Centos I compile x265 as per
the instructions there:
It builds fine.

git clone https://bitbucket.org/multicoreware/x265_git
cd ~/ffmpeg_sources/x265_git/build/linux
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build"
-DENABLE_SHARED:bool=off ../../source
make
make install

I can run x265.
When I move to the ffmpeg build, untar the file and run configure with
these options:
./configure \
--extra-libs=-lpthread \
--pkg-config-flags="--static" \
--extra-cflags=-I/usr/local/include \
--extra-cflags=-I/usr/local/cuda/include \
--extra-ldflags=-L/usr/local/cuda/lib64 \
--extra-ldflags=-L/usr/local/lib \
--extra-libs=-lm \
--bindir=/usr/local/bin \
--enable-cuda \
--enable-cuvid \
--enable-nvdec \
--enable-gpl \
--enable-librtmp \
--enable-libfdk_aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libdav1d \
--enable-libvorbis \
--enable-libzimg \
--enable-opengl \
--enable-opencl \
--enable-libvpx \
--enable-libx264 \
--enable-libx265 \
--enable-nonfree

It reports that x265 was not found:
ERROR: x265 not found using pkg-config

I have PKG_CONFIG_PATH=/usr/local/lib/:/usr/local/lib/pkgconfig
and see there is x265.pc file there.
headers are in /usr/local/include x265.h
and libraries are in /usr/local/lib:

-rw-r--r--.  1 root root   7087176 Mar 24 04:37 libx265.a

lrwxrwxrwx.  1 root root        14 Mar 12 16:35 libx265.so -> libx265.so.199

Any ideas why it cannot find/configure x265?

Thanks in advance for any suggestions.

Jack


More information about the ffmpeg-user mailing list