[x265] Problem with linking x265 and ffmpeg

宮村 公男 xanadu at apost.plala.or.jp
Mon Apr 21 06:37:50 CEST 2014


2014/04/21 10:20、Derek Buitenhuis <derek.buitenhuis at gmail.com> のメール:

> On 4/20/2014 7:51 AM, 宮村 公男 wrote:
>> I have upload part of config.log of ffmpeg which related with this error at http://www10.plala.or.jp/pipedream/config_log.html
> 
> Run FFmpeg's configure with --pkg-config-flags=—static

This does not helps to solve problem.

We, me and he who send me environment of his ffmpeg, found the cause of problem.  That might be a bug with x265.

Here’s his comment:
“In order to be able to link libx265 to ffmpeg it requires -lstdc++ as a compiler flag yet it does not provide it via pkg-config when ffmpeg asks for the -cflags of libx265. It should add -lstdc++ to its Libs: line of the x265.pc file.”

So x265.pc should be 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}

Note that this solves the problem using x265 static library.  Miss linked shard library problem still remain...  

// Miya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20140421/1ba6a629/attachment.html>


More information about the x265-devel mailing list