[FFmpeg-user] compiling with libx265
tim nicholson
nichot20 at yahoo.com
Fri Nov 28 10:08:59 CET 2014
Thought I'd have a go at this, but suffered an odd epic fail.
x265 builds and installs fine, and the standalone at least responds to
x265 -h.
there are the expected:-
/usr/local/lib64/x265.a
/usr/local/lib64/pkgconfig/x265.pc
/usr/local/include/x265.h
/usr/local/include/x265_config.h
however ./configure reports:-
"ERROR: x265 not found"
This is a lie as the end of config log shows it is found, but throws up
lots of "undefined reference to " errors:-
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/lib64 -lx265
check_ld cc -I/usr/local/include -L/usr/local/lib64 -lx265
check_cc -I/usr/local/include -L/usr/local/lib64
BEGIN /tmp/ffconf.8IJVvbxA.c
1 #include <x265.h>
2 long check_x265_encoder_encode(void) { return (long)
x265_encoder_encode; }
3 int main(void) { return 0; }
END /tmp/ffconf.8IJVvbxA.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/usr/local/include
-static -std=c99 -fomit-frame-pointer -pthread
-I/mnt/msds-store-0/tims/ffmpeg-tux/usr/local/include/freetype2
-I/mnt/msds-store-0/tims/ffmpeg-tux/usr/local/include
-I/usr/local/include -I/usr/local/include -L/usr/local/lib64 -c -o
/tmp/ffconf.1n1Ue3xn.o /tmp/ffconf.8IJVvbxA.c
gcc -L/usr/local/lib64 -static -ldl -Wl,--as-needed -Wl,-z,noexecstack
-I/usr/local/include -L/usr/local/lib64 -o /tmp/ffconf.QTquSvyv
/tmp/ffconf.1n1Ue3xn.o -lx265 -L/usr/local/lib64 -lx264 -lpthread -lm
-L/mnt/msds-store-0/tims/ffmpeg-tux/usr/local/lib64 -lfreetype -lfdk-aac
-lfaac -lm -lz -pthread
/usr/local/lib64/libx265.a(bitcost.cpp.o): In function
`x265::BitCost::CalculateLogs()':
bitcost.cpp:(.text+0x26): undefined reference to `operator
new[](unsigned long)'
[..... lots more undefined reference to ...]
/usr/local/lib64/libx265.a(wavefront.cpp.o): In function
`x265::WaveFront::~WaveFront()':
wavefront.cpp:(.text+0x4e): undefined reference to `operator delete(void*)'
/usr/local/lib64/libx265.a(wavefront.cpp.o):(.data.rel.ro._ZTIN4x2659WaveFrontE[_ZTIN4x2659WaveFrontE]+0x0):
undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/usr/local/lib64/libx265.a(wavefront.cpp.o):(.data.rel.ro._ZTVN4x2659WaveFrontE[_ZTVN4x2659WaveFrontE]+0x28):
undefined reference to `__cxa_pure_virtual'
/usr/local/lib64/libx265.a(deblock.cpp.o): In function
`x265::Deblock::getBoundaryStrength(x265::CUData const*, int, unsigned
int, unsigned char const*)':
deblock.cpp:(.text+0x488): undefined reference to `__cxa_guard_acquire'
deblock.cpp:(.text+0x502): undefined reference to `__cxa_guard_release'
collect2: error: ld returned 1 exit status
ERROR: x265 not found
all with a fresh clone of x265 and ffmpeg ea38e5a... on gcc 4.8.3
--
Tim.
Key Fingerprint 38CF DB09 3ED0 F607 8B67 6CED 0C0B FC44 8B0B FC83
More information about the ffmpeg-user
mailing list