building ffmpeg on Oracle Linux 7.9 with libx265

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

building ffmpeg on Oracle Linux 7.9 with libx265

Jack Sinclair

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

git clone
cd ~/ffmpeg_sources/x265_git/build/linux
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build"
-DENABLE_SHARED:bool=off ../../source
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 \

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 ->

Any ideas why it cannot find/configure x265?

Thanks in advance for any suggestions.

ffmpeg-user mailing list
[hidden email]

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".