<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jan 6, 2017 at 9:18 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-">On Fri, Jan 6, 2017 at 8:27 AM, Ben Boeckel <span dir="ltr"><<a href="mailto:ben.boeckel@kitware.com" target="_blank">ben.boeckel@kitware.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-m_6985188591937727796gmail-">
<br>
</span>Do you remember what version of Qt4? 4.8.6 definitely doesn't like even<br>
10.10's SDK.</blockquote><div><br></div></span><div>It was qt-opensource-mac-4.8.6-1.dmg (I wasn't building Qt from source). I was using this on a 10.12 system with the "xcode 8.1 command line tools" rather than the full Xcode, though that shouldn't make a difference. CMake settings were as follows:<br></div><div><br></div><div>CMAKE_OSX_DEPLOYMENT_TARGET:<wbr>STRING=10.6<br></div><div>CMAKE_OSX_SYSROOT:STRING=/<br></div><div><br></div><div>The use of such an ancient target meant that "libstdc++" was used instead of the modern "libc++". This might be the reason that it worked.</div></div></div></div></blockquote><div><br></div><div>I also explicitly added "-stdlib=libstdc++" to the CMAKE_CXX_FLAGS. In retrospect I don't think this was necessary for a target of 10.6, but it probably is necessary for a target of 10.9 when building against Qt 4.8.</div><div><br></div><div> - David </div></div><br></div></div>