[FFmpeg-user] Enabling libx265

宮村 公男 xanadu at apost.plala.or.jp
Wed Apr 23 16:35:03 CEST 2014


2014/04/21 13:54、宮村 公男 <xanadu at apost.plala.or.jp> のメール:

> 
> 2014/04/18 1:26、宮村 公男 <xanadu at apost.plala.or.jp> のメール:
> 
>> then ffmpeg configure script exits with "ERROR: x265 not found" error.
> 
> The cause of this issue might be a bug with x265.  It can be solved by:
> 1.Add -lstdc++ into CFLAGS
> or
> 2.Edit x265.pc as follows:
> --- a/x265.pc	2014-04-16 14:50:20.000000000 +0900
> +++ b/x265.pc	2014-04-21 10:54:32.000000000 +0900
> @@ -6,6 +6,6 @@
> Name: x265
> Description: H.265/HEVC video encoder
> Version: 0.9
> -Libs: -L${libdir} -lx265
> +Libs: -L${libdir} -lx265 -lstdc++
> 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}

After talking with x265 development team, adding "-lstdc++" flags should not be the corrective action.  
Instead, configure ffmpeg with --pkg-config-flags=--static option, this issue is solved.
By adding --static, x265.pc gives -lc++ or -lstdc++ with --cflags to ffmpeg.  

In addition, x265.pc’s Libs.private line contains absolute path of libclang_rt.osx.a (Mac) to be linked.  This was minor bug in x265.  I confirmed “-l” is removed today.


// Miya


More information about the ffmpeg-user mailing list