<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>2014/04/23 1:00、Derek Buitenhuis <derek.buitenhuis <at> <a href="http://gmail.com">gmail.com</a>> のメール:</div><br class="Apple-interchange-newline"><blockquote type="cite">On 4/22/2014 4:49 PM, 宮村 公男 wrote:<br><blockquote type="cite">No package '—static' found<br>ERROR: x265 not found<br></blockquote><br>Uhhhhhhhhhhhhh wtf?<br><br>Why the heck are you passing a '—', (em-dash) instead of two '-' (en-dash). That<br>is seriously wrong. This is user error on your end.<br></blockquote><div><br></div><span style="font-family: Menlo-Regular; font-size: 13px;">OK I found that it’s my mistake.</span><br style="font-family: Menlo-Regular; font-size: 13px;"><br style="font-family: Menlo-Regular; font-size: 13px;"><span style="font-family: Menlo-Regular; font-size: 13px;">But with "--pkg-config-flags=—static” option, I encountered “x265 not found” error. This time, </span><br style="font-family: Menlo-Regular; font-size: 13px;"><span style="font-family: Menlo-Regular; font-size: 13px;">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.</span><br style="font-family: Menlo-Regular; font-size: 13px;"><span style="font-family: Menlo-Regular; font-size: 13px;">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. </span><br style="font-family: Menlo-Regular; font-size: 13px;"><br style="font-family: Menlo-Regular; font-size: 13px;"><span style="font-family: Menlo-Regular; font-size: 13px;">I have 2 question.</span><br style="font-family: Menlo-Regular; font-size: 13px;"><span style="font-family: Menlo-Regular; font-size: 13px;">1.Why x265.pc have line which is not need? Or in other word, why there is a line which may cause an error?</span><br style="font-family: Menlo-Regular; font-size: 13px;"><span style="font-family: Menlo-Regular; font-size: 13px;">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?</span></div><div><br><blockquote type="cite">Incorrect on two levels for you.<br><br>1. Your compiler is using libc++, not libstdc++. This is the C++ runtime that<br> it uses. Using libstdc++ is *incorrect*.<br>2. pkg-config should only report -lc++ or -lstdc++ with --cflags when --static<br> is given. This is correct behavior. The runtime only needs to be given explicitly<br> when statically linking, and if you are statically linking, pkg-config needs the<br> --static argument. End of story.</blockquote><br></div><div><span style="font-family: Menlo-Regular; font-size: 13px;">OK, may be I can understand.</span><br style="font-family: Menlo-Regular; font-size: 13px;"><br style="font-family: Menlo-Regular; font-size: 13px;"><span style="font-family: Menlo-Regular; font-size: 13px;">Attached file is x265.pc for checking Libs.private:</span><br style="font-family: Menlo-Regular; font-size: 13px;"><br style="font-family: Menlo-Regular; font-size: 13px;"><span style="font-family: Menlo-Regular; font-size: 13px;">// Miya</span></div><div><span style="font-family: Menlo-Regular; font-size: 13px;"><br></span></div><div></div></body></html>