[FFmpeg-user] Problems Compiling on CentOS 7

Larry Apolonio ffmpeg at apolonio.com
Fri Dec 28 19:42:47 EET 2018


This is a repost from the ffmpeg-devel list, apologize in advance for 
cross-posting, but was informed this would be the appropriate list to 
post to

All,

I am trying to compile ffmpeg with x265 libs

Details of how I did it are here (without the x265 support)

https://www.apolonio.com/node/138

but I get an error when I add x265.

ERROR: x265 not found using pkg-config

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this 
will help
solve the problem.

Here is the tail end of the config.log file (pastebin if you want 
everything https://pastebin.com/Vq8GFaui)

BEGIN /tmp/ffconf.3qUgZlye/test.c
     1   #include <x264.h>
     2   #if !(X264_MPEG2)
     3   #error "unsatisfied condition: X264_MPEG2"
     4   #endif
END /tmp/ffconf.3qUgZlye/test.c
/usr/bin/gcc44 -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC 
-std=c99 -fomit-frame-pointer -fPIC -pthread -I/usr/include/p11-kit-1 
-I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/freetype2 
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include 
-I/usr/include/uuid -I/usr/include/libpng15 -I/usr/include/freetype2 
-I/usr/include/libpng15 -I/usr/include/openjpeg-2.3 -D_REENTRANT -E -o 
/tmp/ffconf.3qUgZlye/test.o /tmp/ffconf.3qUgZlye/test.c
In file included from /tmp/ffconf.3qUgZlye/test.c:1:
/usr/local/include/x264.h:40:4: warning: #warning You must include 
stdint.h or inttypes.h before x264.h
/tmp/ffconf.3qUgZlye/test.c:3:2: error: #error "unsatisfied condition: 
X264_MPEG2"
require_pkg_config libx265 x265 x265.h x265_api_get
check_pkg_config libx265 x265 x265.h x265_api_get
test_pkg_config libx265 x265 x265.h x265_api_get
pkg-config --exists --print-errors x265
Package x265 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x265.pc'
to the PKG_CONFIG_PATH environment variable
No package 'x265' found
ERROR: x265 not found using pkg-config

What is not in the document is how I installed x265, here is what I did

cd ~/src/ffmpeg

git clone https://github.com/videolan/x265.git

cd x265/build

cmake ../source/

make

sudo make install

It seems to install fine, I can run the command x265, and it did run 
ldconfig prior to compiling ffmpeg, but I still get the error.

If I remove --enable-libx265 from the ./configure command, it does 
complete with the following warnings

WARNING: using libx264 without pkg-config
WARNING: Building with deprecated library libavresample

and I am able to make and sudo make install ffmpeg and it does what 
transcode some files like I need it to.

Any thoughts, pointers, is there more information I can provide?

Thanks,

Larry Apolonio





More information about the ffmpeg-user mailing list