[Development] Standard options & deploying on Mac OS X 10.6 while building on 10.7

Thiago Macieira thiago.macieira at intel.com
Fri Jun 7 17:38:11 CEST 2013

On sexta-feira, 7 de junho de 2013 14.40.41, Vincent wrote:
> However, when looking at the clang++ option run during configure step, it
> seems MacOSX10.8 sdk is used (see -isysroot argument):
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolcha
> in/usr/bin/clang++ -c -o qcore_mac.o -pipe -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develop
> er/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -g -gdwarf-2

Min 10.6 and SDK 10.8 is weird, but not entirely wrong. But this command-line 
here is not relevant. You're looking at the qmake build. Host tools like 
qmake, moc and uic are never run on the target and are never deployed to 10.6.

You need to look at the build of the libraries.

> and the configure step ends up with an error (here 10.6 sdk seems at work):
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolcha
> in/usr/bin/clang++ -headerpad_max_install_names
> -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.
> platform/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -o stl
> stltest.o
> ld: library not found for -lstdc++

So it looks like the build is correct. The stltest is done with the same flags 
as the libraries would be built.

Now, it seems your 10.6 SDK is broken. Can you compile regular C++ 
applications with it?

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130607/da66ac1c/attachment.sig>

More information about the Development mailing list