[FFmpeg-user] Problem building with libx265

Andrew Sinclair ajsinclair at gmail.com
Sat Aug 30 07:29:02 CEST 2014


Hi,

This used to build for me OK but for some reason it no longer builds with
./configure --enable-libx265

I am using latest git pull from today from both repos but I think this may
be specific to my machine for reasons I can't work out. So if anyone has
pointers please let me know? Details below

Error from configure:
check_pkg_config x265 x265.h x265_encoder_encode
pkg-config --exists --print-errors x265
check_func_headers x265.h x265_encoder_encode -I/usr/local/include
-L/usr/local/lib -lx265 -lstdc++ -lm -lrt
check_ld cc -I/usr/local/include -L/usr/local/lib -lx265 -lstdc++ -lm -lrt
check_cc -I/usr/local/include -L/usr/local/lib
BEGIN /var/folders/nn/kj_w5jr90dd2dbbqrp8qz_n00000gn/T//ffconf.2xqpnbUx.c
    1   #include <x265.h>
    2   long check_x265_encoder_encode(void) { return (long)
x265_encoder_encode; }
    3   int main(void) { return 0; }
END /var/folders/nn/kj_w5jr90dd2dbbqrp8qz_n00000gn/T//ffconf.2xqpnbUx.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC
-std=c99 -mdynamic-no-pic -fomit-frame-pointer -fPIC -pthread
-I/usr/local/Cellar/freetype/2.5.3_1/include/freetype2 -I/usr/local/include
-L/usr/local/lib -c -o
/var/folders/nn/kj_w5jr90dd2dbbqrp8qz_n00000gn/T//ffconf.jTubeMUC.o
/var/folders/nn/kj_w5jr90dd2dbbqrp8qz_n00000gn/T//ffconf.2xqpnbUx.c
clang: warning: argument unused during compilation: '-L/usr/local/lib'
gcc -Wl,-dynamic,-search_paths_first -I/usr/local/include -L/usr/local/lib
-o /var/folders/nn/kj_w5jr90dd2dbbqrp8qz_n00000gn/T//ffconf.pkLBt7Lk
/var/folders/nn/kj_w5jr90dd2dbbqrp8qz_n00000gn/T//ffconf.jTubeMUC.o -lx265
-lstdc++ -lm -lrt -lx264 -L/usr/local/Cellar/freetype/2.5.3_1/lib
-lfreetype -lfdk-aac -lm -lbz2 -lz -pthread
clang: warning: argument unused during compilation: '-pthread'
ld: library not found for -lrt
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
ERROR: x265 not found

Note that package config for x265 is there:
cat /usr/local/lib/pkgconfig/x265.pc
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: x265
Description: H.265/HEVC video encoder
Version: 0.8
Libs: -L${libdir} -lx265 -lstdc++ -lm -lrt
Libs.private: -lc++
-l/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/5.1/lib/darwin/libclang_rt.osx.a
Cflags: -I${includedir}

Headers are there:
ls /usr/local/include/x*
/usr/local/include/x264.h /usr/local/include/x265.h
/usr/local/include/x264_config.h /usr/local/include/x265_config.h

Libs are there:
ls /usr/local/lib/libx*
/usr/local/lib/libx264.125.dylib /usr/local/lib/libx264.dylib
/usr/local/lib/libx264.142.dylib /usr/local/lib/libx265.0.8.dylib
/usr/local/lib/libx264.a /usr/local/lib/libx265.a


More information about the ffmpeg-user mailing list