[x265] Problem with linking x265 and ffmpeg

宮村 公男 xanadu at apost.plala.or.jp
Tue Apr 22 19:13:19 CEST 2014


2014/04/23 1:00、Derek Buitenhuis <derek.buitenhuis <at> gmail.com> のメール:

> On 4/22/2014 4:49 PM, 宮村 公男 wrote:
>> No package '—static' found
>> ERROR: x265 not found
> 
> Uhhhhhhhhhhhhh wtf?
> 
> Why the heck are you passing a '—', (em-dash) instead of two '-' (en-dash). That
> is seriously wrong. This is user error on your end.

OK I found that it’s my mistake.

But with "--pkg-config-flags=—static” option, I encountered “x265 not found” error.  This time, 
config.log tells "ld: library not found for -l/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/5.1/lib/darwin/libclang_rt.osx.a”.  The line is written in Libs.private: of x265.pc.
By comment outing "-l/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/5.1/lib/darwin/libclang_rt.osx.a” line in Libs.private: of x265.pc, I can configure and build ffmpeg successfully.  

I have 2 question.
1.Why x265.pc have line which is not need?  Or in other word, why there is a line which may cause an error?
2.Even though other third party libraries does not require to be add "--pkg-config-flags=—static” option, why x265 only need to be added?

> Incorrect on two levels for you.
> 
> 1. Your compiler is using libc++, not libstdc++. This is the C++ runtime that
>   it uses. Using libstdc++ is *incorrect*.
> 2. pkg-config should only report -lc++ or -lstdc++ with --cflags when --static
>   is given. This is correct behavior. The runtime only needs to be given explicitly
>   when statically linking, and if you are statically linking, pkg-config needs the
>   --static argument. End of story.

OK, may be I can understand.

Attached file is x265.pc for checking Libs.private:

// Miya

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20140423/b3659865/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265.pc
Type: application/octet-stream
Size: 1024 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20140423/b3659865/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20140423/b3659865/attachment-0001.html>


More information about the x265-devel mailing list