[FFmpeg-user] Enabling libx265

David Favor david at davidfavor.com
Sat Jul 19 18:26:09 CEST 2014

宮村 公男 wrote:
> 2014/04/24 1:23、Jan Ehrhardt <phpdev at ehrhardt.nl> のメール:
>> ?? ?? in gmane.comp.video.ffmpeg.user (Wed, 23 Apr 2014 23:35:03 +0900):
>>> 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.
> Thanks.  I’ve confirmed that this option also solves the issue with Libs.private.

Or if you'd like to build shared, here's the correct incantation...

    cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix ../../source

You know everything is correct, when the output of otool shows
absolute paths for all objects.

    otool -L $prefix/lib/libx265.dylib

More information about the ffmpeg-user mailing list