[FFmpeg-user] Enabling libx265

Jan Ehrhardt phpdev at ehrhardt.nl
Wed Apr 23 18:23:49 CEST 2014


?? ?? in gmane.comp.video.ffmpeg.user (Wed, 23 Apr 2014 23:35:03 +0900):
>
>> 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.  

I did not know the --pkg-config-flags syntax, but this boils down to the
same solution:
http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=5&t=4&start=20#p5338

Put this at the beginning of your ./configure commandline:

pkg_config='pkg-config --static'

This will add the Libs.private to the linker command as well. See man
pkg-config.

Jan



More information about the ffmpeg-user mailing list